Szerkesztés

Megosztás a következőn keresztül:


IWCSessionDelegate Interface

Definition

Interface representing the required methods (if any) of the protocol WCSessionDelegate.

[Foundation.Protocol(Name="WCSessionDelegate", WrapperType=typeof(WatchConnectivity.WCSessionDelegateWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public interface IWCSessionDelegate : IDisposable, ObjCRuntime.INativeObject
type IWCSessionDelegate = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

This interface contains the required methods (if any) from the protocol defined by WCSessionDelegate.

If developers create classes that implement this interface, the implementation methods will automatically be exported to Objective-C with the matching signature from the method defined in the WCSessionDelegate protocol.

Optional methods (if any) are provided by the WCSessionDelegate_Extensions class as extension methods to the interface, allowing developers to invoke any optional methods on the protocol.

Properties

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Extension 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