PWBundleManager Class Reference
Inherits from | NSObject |
---|---|
Declared in | PWBundleManager.h |
cacheFallbackTimeoutOverride
The timeout for network request to get the bundle before falling back to the cached version. This is only used if a cached bundle exists, for non-cached bundles the default of 60 seconds is used. If this is not set at all, the default of 10 seconds is used.
@property (nonatomic) NSTimeInterval cacheFallbackTimeoutOverride
Declared In
PWBundleManager.h
+ sharedInstance
Shared PWBundleManager
.
+ (PWBundleManager *)sharedInstance
Declared In
PWBundleManager.h
– removeBundleForURL:
Remove the bundle for a specific url.
- (void)removeBundleForURL:(NSURL *)url
Parameters
url |
The specific url for which you want to remove. |
---|
Declared In
PWBundleManager.h
– fetchBundleWithURL:withCompletion:
Fetch an unencrypted bundle from the url, unpack it, and save the necessary JSON files
- (void)fetchBundleWithURL:(NSURL *)url withCompletion:(PWBundleFetchCompletion)completion
Parameters
url |
The url that the manager should load. |
---|---|
completion |
A block that returns the unzipped bundle directory or error. |
Declared In
PWBundleManager.h
– fetchBundleWithURL:decryptionKey:withCompletion:
Fetch an encrypted bundle from the url, decprypt then unpack it, and save the necessary JSON files
- (void)fetchBundleWithURL:(NSURL *)url decryptionKey:(NSString *)decryptionKey withCompletion:(PWBundleFetchCompletion)completion
Parameters
url |
The url that the manager should load. |
---|---|
decryptionKey |
The key used to deprypt the bundle. |
completion |
A block that returns information about the bundle fetch and the unzipped bundle directory or error. |
Declared In
PWBundleManager.h
– fetchBundleWithURL:retryInterval:maxRetry:withCompletion:
Fetch an unencrypted bundle from the url, unpack it, and save the necessary JSON files
- (void)fetchBundleWithURL:(NSURL *)url retryInterval:(NSInteger)retryInterval maxRetry:(NSInteger)maxRetry withCompletion:(PWBundleFetchCompletion)completion
Parameters
url |
The url that the manager should load. |
---|---|
retryInterval |
The interval to attempt retry. |
maxRetry |
The maximum no of times to retry. |
completion |
A block that returns information about the bundle fetch and the unzipped bundle directory or error. |
Declared In
PWBundleManager.h
– fetchBundleWithURL:retryInterval:maxRetry:decryptionKey:withCompletion:
Fetch an encrypted bundle from the url, decprypt then unpack it, and save the necessary JSON files
- (void)fetchBundleWithURL:(NSURL *)url retryInterval:(NSInteger)retryInterval maxRetry:(NSInteger)maxRetry decryptionKey:(NSString *)decryptionKey withCompletion:(PWBundleFetchCompletion)completion
Parameters
url |
The url that the manager should load. |
---|---|
retryInterval |
The interval to attempt retry. |
maxRetry |
The maximum no of times to retry. |
decryptionKey |
The key used to deprypt the bundle. |
completion |
A block that returns information about the bundle fetch and the unzipped bundle directory or error. |
Declared In
PWBundleManager.h
– fetchBuildingBundleById:draft:withCompletion:
Fetch building bundle for the specified building identifier, decprypt then unpack it, and save the necessary JSON files
- (void)fetchBuildingBundleById:(NSInteger)buildingId draft:(BOOL)isDraft withCompletion:(PWBundleFetchCompletion)completion
Parameters
buildingId |
The building identifier. |
---|---|
isDraft |
Tell it’s a draft or live bundle. |
completion |
A block that returns information about the bundle fetch and the unzipped bundle directory or error. |
Declared In
PWBundleManager.h
– fetchCampusBundleById:draft:withCompletion:
Fetch campus bundle for the specified campus identifier, unzip campus bundle, decprypt building bundles then unpack them, and save the necessary JSON files
- (void)fetchCampusBundleById:(NSInteger)campusId draft:(BOOL)isDraft withCompletion:(PWBundleFetchCompletion)completion
Parameters
campusId |
The campus identifier. |
---|---|
isDraft |
Tell it’s a draft or live bundle. |
completion |
A block that returns information about the bundle fetch and the unzipped bundle directory or error. |
Declared In
PWBundleManager.h
– fetchBundleWithURL:completion:
Fetch an unencrypted bundle from the url, unpack it, and save the necessary JSON files
- (void)fetchBundleWithURL:(NSURL *)url completion:(void ( ^ ) ( NSString *bundleDirectory , BOOL bundleChanged , NSError *error ))completion
Parameters
url |
The url that the manager should load. |
---|---|
completion |
A block that returns the unzipped bundle directory or error. |
Declared In
PWBundleManager.h
– fetchBundleWithURL:decryptionKey:completion:
Fetch an encrypted bundle from the url, decprypt then unpack it, and save the necessary JSON files
- (void)fetchBundleWithURL:(NSURL *)url decryptionKey:(NSString *)decryptionKey completion:(void ( ^ ) ( NSString *bundleDirectory , BOOL bundleChanged , NSError *error ))completion
Parameters
url |
The url that the manager should load. |
---|---|
decryptionKey |
The key used to deprypt the bundle. |
completion |
A block that returns the unzipped bundle directory or error. |
Declared In
PWBundleManager.h
– fetchBundleWithURL:retryInterval:maxRetry:completion:
Fetch an unencrypted bundle from the url, unpack it, and save the necessary JSON files
- (void)fetchBundleWithURL:(NSURL *)url retryInterval:(NSInteger)retryInterval maxRetry:(NSInteger)maxRetry completion:(void ( ^ ) ( NSString *bundleDirectory , BOOL bundleChanged , NSError *error ))completion
Parameters
url |
The url that the manager should load. |
---|---|
retryInterval |
The interval to attempt retry. |
maxRetry |
The maximum no of times to retry. |
completion |
A block that returns the unzipped bundle directory or error. |
Declared In
PWBundleManager.h
– fetchBundleWithURL:retryInterval:maxRetry:decryptionKey:completion:
Fetch an encrypted bundle from the url, decprypt then unpack it, and save the necessary JSON files
- (void)fetchBundleWithURL:(NSURL *)url retryInterval:(NSInteger)retryInterval maxRetry:(NSInteger)maxRetry decryptionKey:(NSString *)decryptionKey completion:(void ( ^ ) ( NSString *bundleDirectory , BOOL bundleChanged , NSError *error ))completion
Parameters
url |
The url that the manager should load. |
---|---|
retryInterval |
The interval to attempt retry. |
maxRetry |
The maximum no of times to retry. |
decryptionKey |
The key used to deprypt the bundle. |
completion |
A block that returns the unzipped bundle directory or error. |
Declared In
PWBundleManager.h
– fetchBuildingBundleById:draft:completion:
Fetch building bundle for the specified building identifier, decprypt then unpack it, and save the necessary JSON files
- (void)fetchBuildingBundleById:(NSInteger)buildingId draft:(BOOL)isDraft completion:(void ( ^ ) ( NSString *bundleDirectory , BOOL bundleChanged , NSError *error ))completion
Parameters
buildingId |
The building identifier. |
---|---|
isDraft |
Tell it’s a draft or live bundle. |
completion |
A block that returns the unzipped bundle directory or error. |
Declared In
PWBundleManager.h