WearableDeviceSessionDelegate
public protocol WearableDeviceSessionDelegate : AnyObject
A wearable device session delegate gets notified of connection-related events.
-
Indicates that the session was opened.
Declaration
Swift
func sessionDidOpen(_ session: WearableDeviceSession) -
Indicates that the session failed to open.
Declaration
Swift
func session(_ session: WearableDeviceSession, didFailToOpenWithError error: Error) -
Indicates that the session was closed due to an error.
Declaration
Swift
func session(_ session: WearableDeviceSession, didCloseWithError error: Error) -
Indicates that the session was closed by calling
session.close().Declaration
Swift
func sessionDidClose(_ session: WearableDeviceSession)
WearableDeviceSessionDelegate Protocol Reference