Type Property

defaultSession

Returns the singleton session object for the current device.

Declaration

@property(class, readonly) WCSession *defaultSession;

Return Value

The session object for the current device.

Discussion

Call the isSupported method before calling this method to make sure you can use session objects for communication.

See Also

Getting the Default Session

+ isSupported

Returns a Boolean value indicating whether the current iOS device is able to use a session object.