Compartilhar via


WCSession.SendMessage Método

Definição

Sobrecargas

SendMessage(NSData, WCSessionReplyDataHandler, Action<NSError>)

Envia data para o aplicativo complementar.

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

Envia a mensagem para o dispositivo emparelhado ativo.

SendMessage(NSData, WCSessionReplyDataHandler, Action<NSError>)

Envia data para o aplicativo complementar.

[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

Parâmetros

data
NSData
replyHandler
WCSessionReplyDataHandler

A ser adicionado.

Esse parâmetro pode ser null.

errorHandler
Action<NSError>

A ser adicionado.

Esse parâmetro pode ser null.

Atributos

Aplica-se a

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

Envia a mensagem para o dispositivo emparelhado ativo.

[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

Parâmetros

replyHandler
WCSessionReplyHandler

A ser adicionado.

Esse parâmetro pode ser null.

errorHandler
Action<NSError>

A ser adicionado.

Esse parâmetro pode ser null.

Atributos

Aplica-se a