sessionReachabilityDidChange(_:)
Indicates a change to the counterpart’s reachability status.
Declaration
optional func sessionReachabilityDidChange(_ session: WCSession)Parameters
- session:
The session object of the current process. Use the Isreachable property of this object to determine the reachability of the counterpart session.
Discussion
A session is reachable when the iOS app or WatchKit extension to which it belongs is active and running. This method is called to let the current process know that its counterpart session’s reachability changed. Use that information to make decisions about how you want to send information to the counterpart. For example, when the counterpart is reachable, you might send messages immediately rather than post them as an update.