Interface WearableStateListener
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when reachability, pairing or peer-app installation changes.
-
Method Details
-
connectionStateChanged
void connectionStateChanged()Called when reachability, pairing or peer-app installation changes. QueryWearableConnection.isReachable(),WearableConnection.isPaired()andWearableConnection.isCompanionAppInstalled()for the new state.
-