Class

WCSessionUserInfoTransfer

Information about in-progress data transfers.

Declaration

class WCSessionUserInfoTransfer : NSObject

Overview

You do not create instances of this class yourself. When you begin a data transfer, the system creates a new instance of this class for you. Use the created object to monitor or cancel the transfer as needed.

o initiate a file transfer operation, call the transferUserInfo(_:) or transferCurrentComplicationUserInfo(_:) method of your app’s WCSession object.

Topics

Getting the Transfer Information

var isCurrentComplicationInfo: Bool

A Boolean indicating whether the data is related to the app’s complication.

var userInfo: [String : Any]

The data being transferred.

Managing the Transfer Operation

var isTransferring: Bool

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

func cancel()

Cancels the data transfer.

Relationships

Inherits From

See Also

Data Objects

class WCSessionFile

Information about a file currently being transferred between an iOS app and WatchKit extension.

class WCSessionFileTransfer

Information about in-progress file transfers.

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