public interface WCSessionDelegate
| Modifier and Type | Interface and Description |
|---|---|
static interface |
WCSessionDelegate.Block_sessionDidReceiveMessageDataReplyHandler |
static interface |
WCSessionDelegate.Block_sessionDidReceiveMessageReplyHandler |
| Modifier and Type | Method and Description |
|---|---|
void |
sessionActivationDidCompleteWithStateError(WCSession session,
long activationState,
NSError error)
Called when the session has completed activation.
|
void |
sessionDidBecomeInactive(WCSession session)
Called when the session can no longer be used to modify or add any new transfers and, all interactive messages will be cancelled, but delegate callbacks for background transfers can still occur.
|
void |
sessionDidDeactivate(WCSession session)
Called when all delegate callbacks for the previously selected watch has occurred.
|
default void |
sessionDidFinishFileTransferError(WCSession session,
WCSessionFileTransfer fileTransfer,
NSError error)
Called on the sending side after the file transfer has successfully completed or failed with an error.
|
default void |
sessionDidFinishUserInfoTransferError(WCSession session,
WCSessionUserInfoTransfer userInfoTransfer,
NSError error)
Called on the sending side after the user info transfer has successfully completed or failed with an error.
|
default void |
sessionDidReceiveApplicationContext(WCSession session,
NSDictionary<java.lang.String,?> applicationContext)
Called on the delegate of the receiver.
|
default void |
sessionDidReceiveFile(WCSession session,
WCSessionFile file)
Called on the delegate of the receiver.
|
default void |
sessionDidReceiveMessage(WCSession session,
NSDictionary<java.lang.String,?> message)
Called on the delegate of the receiver.
|
default void |
sessionDidReceiveMessageData(WCSession session,
NSData messageData)
Called on the delegate of the receiver.
|
default void |
sessionDidReceiveMessageDataReplyHandler(WCSession session,
NSData messageData,
WCSessionDelegate.Block_sessionDidReceiveMessageDataReplyHandler replyHandler)
Called on the delegate of the receiver when the sender sends message data that expects a reply.
|
default void |
sessionDidReceiveMessageReplyHandler(WCSession session,
NSDictionary<java.lang.String,?> message,
WCSessionDelegate.Block_sessionDidReceiveMessageReplyHandler replyHandler)
Called on the delegate of the receiver when the sender sends a message that expects a reply.
|
default void |
sessionDidReceiveUserInfo(WCSession session,
NSDictionary<java.lang.String,?> userInfo)
Called on the delegate of the receiver.
|
default void |
sessionReachabilityDidChange(WCSession session)
Called when the reachable state of the counterpart app changes.
|
default void |
sessionWatchStateDidChange(WCSession session)
Called when any of the Watch state properties change.
|
void sessionActivationDidCompleteWithStateError(WCSession session, long activationState, NSError error)
default void sessionDidFinishFileTransferError(WCSession session, WCSessionFileTransfer fileTransfer, NSError error)
default void sessionDidFinishUserInfoTransferError(WCSession session, WCSessionUserInfoTransfer userInfoTransfer, NSError error)
default void sessionDidReceiveApplicationContext(WCSession session, NSDictionary<java.lang.String,?> applicationContext)
default void sessionDidReceiveFile(WCSession session, WCSessionFile file)
default void sessionDidReceiveMessage(WCSession session, NSDictionary<java.lang.String,?> message)
default void sessionDidReceiveMessageReplyHandler(WCSession session, NSDictionary<java.lang.String,?> message, WCSessionDelegate.Block_sessionDidReceiveMessageReplyHandler replyHandler)
default void sessionDidReceiveMessageData(WCSession session, NSData messageData)
default void sessionDidReceiveMessageDataReplyHandler(WCSession session, NSData messageData, WCSessionDelegate.Block_sessionDidReceiveMessageDataReplyHandler replyHandler)
default void sessionDidReceiveUserInfo(WCSession session, NSDictionary<java.lang.String,?> userInfo)
void sessionDidBecomeInactive(WCSession session)
void sessionDidDeactivate(WCSession session)
default void sessionReachabilityDidChange(WCSession session)
default void sessionWatchStateDidChange(WCSession session)