Edytuj

Udostępnij za pośrednictwem


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 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>, WCSessionReplyHandler)

An immediate message was received.

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

An immediate message was received.

DidReceiveMessageData(IWCSessionDelegate, WCSession, NSData, WCSessionReplyDataHandler)

An immediate data message was received.

DidReceiveMessageData(IWCSessionDelegate, WCSession, NSData)

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