conditionallyBeginAccessingResources(completionHandler:)
Checks whether the resources marked with the tags managed by the request are already on the device. If all of the resources are on the device, you can begin accessing those resources.
Declaration
func conditionallyBeginAccessingResources(completionHandler: @escaping @Sendable (Bool) -> Void)func conditionallyBeginAccessingResources() async -> BoolParameters
- completionHandler:
A block called when the availability of the resources has been checked.
The block takes the following parameter:
Discussion
If the resources marked with the tags managed by the request are already on the device, you can start accessing them as soon as the completion handler is called with resourcesAvailable set to true. If all of the resources are not already available, you need to call beginAccessingResources(completionHandler:) to download them from the App Store.