WCSessionDelegate_Extensions Class
In this article
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static class WCSessionDelegate_Extensions
type WCSessionDelegate_Extensions = class
Inheritance
WCSessionDelegate_Extensions
The extension methods for IWCSessionDelegate allow developers to treat instances of the interface as having all the optional methods of the original WCSessionDelegate protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.
Methods
ActivationDidComplete(IWCSessionDelegate, WCSession, WCSessionActivationState, NSError)
Method that is called when session activation completes.
DidBecomeInactive(IWCSessionDelegate, WCSession)
Method that is called when the session becomes inactive.
DidDeactivate(IWCSessionDelegate, WCSession)
Method that is called after the session deactivates.
DidFinishFileTransfer(IWCSessionDelegate, WCSession, WCSessionFileTransfer, NSError)
A file transfer finished, either successfully or with an error.
DidFinishUserInfoTransfer(IWCSessionDelegate, WCSession, WCSessionUserInfoTransfer, NSError)
A data transfer finished, either successfully or with an error.
DidReceiveApplicationContext(IWCSessionDelegate, WCSession, NSDictionary<NSString,NSObject>)
Context data was received from the companion app.
DidReceiveFile(IWCSessionDelegate, WCSession, WCSessionFile)
A file was received successfully.
DidReceiveMessage(IWCSessionDelegate, WCSession, NSDictionary<NSString,NSObject>)
An immediate message was received.
DidReceiveMessage(IWCSessionDelegate, WCSession, NSDictionary<NSString,NSObject>, WCSessionReplyHandler)
An immediate message was received.
DidReceiveMessageData(IWCSessionDelegate, WCSession, NSData)
An immediate data message was received.
DidReceiveMessageData(IWCSessionDelegate, WCSession, NSData, WCSessionReplyDataHandler)
An immediate data message was received.
DidReceiveUserInfo(IWCSessionDelegate, WCSession, NSDictionary<NSString,NSObject>)
A data dictionary was received.
SessionReachabilityDidChange(IWCSessionDelegate, WCSession)
The reachability of the companion device has changed.
SessionWatchStateDidChange(IWCSessionDelegate, WCSession)
A feature has been enabled or disabled.
Applies to