public static interface

NodeApi.NodeListener

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

This interface is deprecated.
New code should use the CapabilityApi which enables an app to advertise a capability on a node and listen for its existence on other nodes.

Class Overview

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

See also:

Summary

Public Methods
abstract void onPeerConnected(Node peer)
This method is deprecated. New code should use the CapabilityApi which enables an app to advertise a capability on a node and listen for its existence on other nodes.
abstract void onPeerDisconnected(Node peer)
This method is deprecated. New code should use the CapabilityApi which enables an app to advertise a capability on a node and listen for its existence on other nodes.

Public Methods

public abstract void onPeerConnected (Node peer)

This method is deprecated.
New code should use the CapabilityApi which enables an app to advertise a capability on a node and listen for its existence on other nodes.

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 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.

Parameters
peer Node

public abstract void onPeerDisconnected (Node peer)

This method is deprecated.
New code should use the CapabilityApi which enables an app to advertise a capability on a node and listen for its existence on other nodes.

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.

Parameters
peer Node