localStatus(ofAssetPackWithID:)
Checks an asset pack’s local status.
Declaration
func localStatus(ofAssetPackWithID assetPackID: String) async -> AssetPack.StatusParameters
- assetPackID:
The asset pack’s ID.
Return Value
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:
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 status(ofAssetPackWithID:) to get a full view of an asset pack’s status.