NodeApi.NodeListener | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Methods | [Expand All]
public static interface

# NodeApi.NodeListener

com.google.android.gms.wearable.NodeApi.NodeListener

Known Indirect Subclasses WearableListenerService
WearableListenerService | Receives events from other nodes, such as data changes, messages or connectivity events.

## Class Overview

Used with `addListener(GoogleApiClient, NodeApi.NodeListener)` to receive node events.

##### See Also

- `WearableListenerService`

## Summary

Public Methods
abstract void | onPeerConnected(Node peer) Notification that a peer has been connected.
abstract void | onPeerDisconnected(Node peer) Notification that a peer has been disconnected.

## Public Methods

#### public abstract void onPeerConnected (Node peer)

Notification that a peer has been connected.

#### public abstract void onPeerDisconnected (Node peer)

Notification that a peer has been disconnected.