com.google.android.gms.wearable.NodeApi.NodeListener |
![]() |
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.
Used with addListener(GoogleApiClient, NodeApi.NodeListener)
to receive node events.
See also:
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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.
| |||||||||||
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.
|
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
|
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
|