Contents

shouldDownload(_:)

Determines whether to download an asset pack.

Declaration

func shouldDownload(_ assetPack: AssetPack) -> Bool

Parameters

  • assetPack:

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

Mentioned in

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.