Contents

localVersionOfAssetPackWithIdentifier:error:

Returns a locally available asset pack’s version number.

Declaration

- (NSInteger) localVersionOfAssetPackWithIdentifier:(NSString *) assetPackIdentifier error:(NSError **) error;

Parameters

  • assetPackIdentifier:

    The asset pack’s identifier.

  • error:

    A pointer to an error that will be set if an error occurs. If the asset pack isn’t available locally, then error will point to an NSError object with Bamanagederrorcodeassetpacknotfound as its code.

Return Value

The asset pack’s version number. A return value of -1 indicates that an error occurred.