WCSession.SendMessage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SendMessage(NSData, WCSessionReplyDataHandler, Action<NSError>) |
Sends |
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
- 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
- message
- NSDictionary<NSString,NSObject>
- Attributes