Contents

shouldDownloadAssetPack:

Determines whether to download an asset pack.

Declaration

- (BOOL) shouldDownloadAssetPack:(BAAssetPack *) assetPack;

Parameters

  • assetPack:

    An asset pack that’s being considered as a candidate to be downloaded.

Return Value

Whether the asset pack should be downloaded.

Discussion

By default, the system automatically downloads all applicable asset packs with either “essential” or “prefetch” download policies for the current installation event type. You can optionally implement this method to filter out unwanted asset packs at runtime.