getLocalStatusOfAssetPackWithIdentifier:completionHandler:
Gets an asset pack’s local status.
Declaration
- (void) getLocalStatusOfAssetPackWithIdentifier:(NSString *) assetPackIdentifier completionHandler:(void (^)(BAAssetPackStatus status)) completionHandler;Parameters
- assetPackIdentifier:
The asset pack’s identifier.
- completionHandler:
A block that receives the asset pack’s local status.
Discussion
This method checks only status values that are determinable offline. It doesn’t induce any network traffic or automatically trigger any downloads, updates, or removals. The following status values are determinable offline:
BAAssetPackStatusOutOfDate (in some situations)
BAAssetPackStatusObsolete (in some situations)
Because this method doesn’t communicate with the server, it can’t determine whether a particular asset pack exists in the first place. Instead, it returns an empty status value when provided a nonexistent asset-pack ID, which is indistinguishable from the situation in which the asset pack does indeed exist but hasn’t yet been downloaded. Use getStatusOfAssetPackWithIdentifier:completionHandler: to get a full view of an asset pack’s status.