Adding comments to CodePush class

This commit is contained in:
Jonathan Carter
2015-11-24 09:50:34 -08:00
parent 6aab2a59c5
commit a20e4a2602
2 changed files with 157 additions and 43 deletions

View File

@@ -1,7 +1,18 @@
#import "RCTBridgeModule.h"
@interface CodePush : NSObject<RCTBridgeModule>
@interface CodePush : NSObject <RCTBridgeModule>
/*
* This method is used to retreive the URL for the most recent
* version of the JavaScript bundle. This could be either the
* bundle that was packaged with the app binary, or the bundle
* that was downloaded as part of a CodePush update. The value returned
* should be used to "bootstrap" the React Native bridge.
*
* This method assumes that your JS bundle is named "main.jsbundle"
* and therefore, if it isn't, you should use either the bundleURLForResource:
* or bundleURLForResource:withExtension: methods to override thsat behavior.
*/
+ (NSURL *)bundleURL;
+ (NSURL *)bundleURLForResource:(NSString *)resourceName;
@@ -25,7 +36,7 @@
@end
@interface CodePushDownloadHandler : NSObject<NSURLConnectionDelegate>
@interface CodePushDownloadHandler : NSObject <NSURLConnectionDelegate>
@property (strong) NSOutputStream *outputFileStream;
@property long expectedContentLength;