Düzenle

Aracılığıyla paylaş


WCSession.SendMessage Method

Definition

Overloads

SendMessage(NSData, WCSessionReplyDataHandler, Action<NSError>)

Sends data to the companion app.

SendMessage(NSDictionary<NSString,NSObject>, WCSessionReplyHandler, Action<NSError>)

Sends the message to the active paired device.

SendMessage(NSData, WCSessionReplyDataHandler, Action<NSError>)

Sends data to the companion app.

[Foundation.Export("sendMessageData:replyHandler:errorHandler:")]
public virtual void SendMessage (Foundation.NSData data, WatchConnectivity.WCSessionReplyDataHandler replyHandler, Action<Foundation.NSError> errorHandler);
abstract member SendMessage : Foundation.NSData * WatchConnectivity.WCSessionReplyDataHandler * Action<Foundation.NSError> -> unit
override this.SendMessage : Foundation.NSData * WatchConnectivity.WCSessionReplyDataHandler * Action<Foundation.NSError> -> unit

Parameters

data
NSData
replyHandler
WCSessionReplyDataHandler

To be added.

This parameter can be null.

errorHandler
Action<NSError>

To be added.

This parameter can be null.

Attributes

Applies to

SendMessage(NSDictionary<NSString,NSObject>, WCSessionReplyHandler, Action<NSError>)

Sends the message to the active paired device.

[Foundation.Export("sendMessage:replyHandler:errorHandler:")]
public virtual void SendMessage (Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> message, WatchConnectivity.WCSessionReplyHandler replyHandler, Action<Foundation.NSError> errorHandler);
abstract member SendMessage : Foundation.NSDictionary<Foundation.NSString, Foundation.NSObject> * WatchConnectivity.WCSessionReplyHandler * Action<Foundation.NSError> -> unit
override this.SendMessage : Foundation.NSDictionary<Foundation.NSString, Foundation.NSObject> * WatchConnectivity.WCSessionReplyHandler * Action<Foundation.NSError> -> unit

Parameters

replyHandler
WCSessionReplyHandler

To be added.

This parameter can be null.

errorHandler
Action<NSError>

To be added.

This parameter can be null.

Attributes

Applies to