WCSessionDelegate_Extensions Class

Definition

Extension methods to the IWCSessionDelegate interface to support all the methods from the WCSessionDelegate protocol.

public static class WCSessionDelegate_Extensions
type WCSessionDelegate_Extensions = class
Inheritance
WCSessionDelegate_Extensions

Remarks

The extension methods for IWCSessionDelegate interface 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

Name Description
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>)

Method that is called after an application context is received.

DidReceiveFile(IWCSessionDelegate, WCSession, WCSessionFile)

A file was received successfully.

DidReceiveMessage(IWCSessionDelegate, WCSession, NSDictionary<NSString,NSObject>, WCSessionReplyHandler)

Method that is called after a message is received.

DidReceiveMessage(IWCSessionDelegate, WCSession, NSDictionary<NSString,NSObject>)

Method that is called after a message is received.

DidReceiveMessageData(IWCSessionDelegate, WCSession, NSData, WCSessionReplyDataHandler)

An immediate data message was received and requires a response.

DidReceiveMessageData(IWCSessionDelegate, WCSession, NSData)

An immediate data message was received.

DidReceiveUserInfo(IWCSessionDelegate, WCSession, NSDictionary<NSString,NSObject>)

Method that is called when a user info dictionary is received.

SessionReachabilityDidChange(IWCSessionDelegate, WCSession)

The reachability of the companion device has changed.

SessionWatchStateDidChange(IWCSessionDelegate, WCSession)

A feature has been enabled or disabled.

Applies to