Instance Property

activationState

The current activation state of the session.

Declaration

@property(nonatomic, readonly) WCSessionActivationState activationState;

Discussion

Check the value of this property before attempting to transfer data or files using the methods of this object. When the value is WCSessionActivationStateActivated you may initiate the transfer of data and files normally. If it is any other value, do not initiate any transfers.

The value of this property is valid even when the session itself is not activated, so you can access it at any time. Use the sessionDidBecomeInactive: and sessionDidDeactivate: methods of your session delegate to monitor changes in the session’s activation state. You can also use key-value observing to monitor changes to this property.

See Also

Configuring the Session

delegate

The delegate for the session object

- activateSession

Activates the session asynchronously.