com.google.android.gms.wearable.NodeApi |
This interface is deprecated.
Use NodeClient
.
Exposes an API for to learn about local or connected Nodes.
Node events are delivered to all applications on a device.
New code should use the CapabilityApi
which allows you to create and listen to
application-specific network events.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NodeApi.GetConnectedNodesResult |
This interface is deprecated.
See getConnectedNodes() .
|
||||||||||
NodeApi.GetLocalNodeResult |
This interface is deprecated.
See getLocalNode() .
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets a list of nodes to which this device is currently connected, either directly or indirectly
via a directly connected node.
| |||||||||||
Gets the
Node that refers to this device. |
Gets a list of nodes to which this device is currently connected, either directly or indirectly via a directly connected node.
The returned list will not include the local node.
Parameters | |
---|---|
client |
GoogleApiClient |
Returns | |
---|---|
PendingResult<NodeApi.GetConnectedNodesResult> |
Gets the Node
that refers to this device. The information in the returned Node
can be passed to other devices using the MessageApi
, for example.
Parameters | |
---|---|
client |
GoogleApiClient |
Returns | |
---|---|
PendingResult<NodeApi.GetLocalNodeResult> |