Instance Method


Cancels the data transfer.


func cancel()


Use this method to cancel a transfer before it completes. If the data has already been transferred, calling this method has no effect.

See Also

Managing the Transfer Operation

var isTransferring: Bool

A Boolean value indicating whether the data is still being transferred.

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