public static interface

NodeApi.NodeListener

com.google.android.gms.wearable.NodeApi.NodeListener
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
abstract void onPeerConnected(Node peer)
Notification that a peer is now reachable by this node.
abstract void onPeerDisconnected(Node peer)
Notification that a peer has been disconnected from this node or is no longer reachable by this node.

Public Methods

public abstract void onPeerConnected (Node peer)

Notification that a peer is now reachable by this node. It may be directly connected to this node or it may be reachable only via a directly connected node.

Changes to a node's hop count or nearby status alone will not trigger an onPeerConnected(Node) event as long as the node was already connected.

Since multiple nodes can be connected to a network at the same time, peer connected and disconnected events can come in any order.

public abstract void onPeerDisconnected (Node peer)

Notification that a peer has been disconnected from this node or is no longer reachable by this node.

Since multiple nodes can be connected to a network at the same time, peer connected and disconnected events can come in any order.