public interface WearableStateListener
Notified when the link to the peer app changes.
Use it to enable or disable the parts of your UI that need a live peer – a “send to watch”
button, say – rather than polling WearableConnection.isReachable(). Callbacks arrive on the
EDT.
Methods
public abstract void connectionStateChanged() | Called when reachability, pairing or peer-app installation changes. |
Method details
connectionStateChanged
public abstract void connectionStateChanged()Called when reachability, pairing or peer-app installation changes. Query
WearableConnection.isReachable(), WearableConnection.isPaired() and
WearableConnection.isCompanionAppInstalled() for the new state.