Instance Method

cancelLoading()

Cancels the loading of all values for all observers.

Declaration

func cancelLoading()

Discussion

This method explicitly cancels any pending invocations of the asset’s loadValuesAsynchronously(forKeys:completionHandler:) method. This method should only be used when you are completely done using an asset and you want to terminate any outstanding requests. Deallocation of an instance of the asset implicitly invokes this method if any loading requests are still pending.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software