Instance Method

session:didFinishFileTransfer:error:

Called when a file transfer finished successfully or because of an error.

Declaration

- (void)session:(WCSession *)session didFinishFileTransfer:(WCSessionFileTransfer *)fileTransfer error:(NSError *)error;

Parameters

session

The session object of the current process.

fileTransfer

An object containing information about the file that was transferred.

error

An error object if a problem occurred.

Discussion

The session object calls this method when a file transfer initiated by the current app finished, either successfully or unsuccessfully. Use this method to note that the transfer completed or to respond to errors, perhaps by trying to send the file again at a later time.

This method is called on a background thread of your app.

See Also

Managing File Transfers

- session:didReceiveFile:

Called when a file is received successfully.

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