NIPRnUpdateService Class Reference
Inherits from | NSObject |
---|---|
Declared in | NIPRnUpdateService.h |
+ sharedService
获取单例
+ (instancetype)sharedService
Return Value
obj
Declared In
NIPRnUpdateService.h
requestUrl
请求远程服务的url,用来确定是否升级本地的rn资源包
@property (nonatomic, strong) NSString *requestUrl
Declared In
NIPRnUpdateService.h
– requestRCTAssets:failBlock:
执行远程请求,请参数含有本地sdkversion、localDataVersion 如果服务器的serverVersion==localVersion,则不抛回数据,否则返回服务器上的新包
- (void)requestRCTAssets:(CFRCTUpdateAssetsSuccesBlock)successBlock failBlock:(CFRCTUpdateAssetsFailBlock)failBlock
Parameters
successBlock |
successBlock |
---|---|
failBlock |
failBlock |
Declared In
NIPRnUpdateService.h