Contents

getAssetPackWithIdentifier:completionHandler:

Gets the asset pack with the given identifier.

Declaration

- (void) getAssetPackWithIdentifier:(NSString *) assetPackIdentifier completionHandler:(void (^)(BAAssetPack *assetPack, NSError *error)) completionHandler;

Parameters

  • assetPackIdentifier:

    The asset pack’s identifier.

  • completionHandler:

    A block that receives the asset pack or an error if one occurs.

Discussion

If no asset pack with the given identifier is found, then the block will receive an NSError object with BAManagedErrorCodeAssetPackNotFound as its code for the error parameter. This method might attempt to get the latest asset-pack information from the server. To force the system to get the latest information from the server unconditionally, send checkForUpdatesWithCompletionHandler: to the shared asset-pack manager.

See Also

Accessing asset packs