getStatusOfAssetPackWithIdentifier:completionHandler:
Gets an asset pack’s status.
Declaration
- (void) getStatusOfAssetPackWithIdentifier:(NSString *) assetPackIdentifier completionHandler:(void (^)(BAAssetPackStatus status, NSError *error)) completionHandler;Parameters
- assetPackIdentifier:
The asset pack’s identifier.
- completionHandler:
A block that receives the asset pack’s status or an error if one occurs.
Discussion
If no asset pack with the specified identifier is found, then the block will receive an NSError object with BAManagedErrorCodeAssetPackNotFound as its code for the error parameter. This method attempts to get the latest asset-pack information from the server. It doesn’t automatically trigger any downloads, updates, or removals.