# 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 Type
  Method
  Description
  `void`
  `connectionStateChanged()`
  Called when reachability, pairing or peer-app installation changes.

- ## Method Details

  - ### connectionStateChanged

    void connectionStateChanged()
    Called when reachability, pairing or peer-app installation changes. Query `WearableConnection.isReachable()`, `WearableConnection.isPaired()` and `WearableConnection.isCompanionAppInstalled()` for the new state.