NodeApi

public interfaceNodeApi

This interface is deprecated.
UseNodeClient.

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 theCapabilityApi which allows you to create and listen to application-specific network events.

Nested Class Summary

interface NodeApi.GetConnectedNodesResult This interface is deprecated. See NodeClient.getConnectedNodes().
interface NodeApi.GetLocalNodeResult This interface is deprecated. See NodeClient.getLocalNode().

Public Method Summary

abstractPendingResult<NodeApi.GetConnectedNodesResult>
getConnectedNodes(GoogleApiClient client)
Gets a list of nodes to which this device is currently connected, either directly or indirectly via a directly connected node.
abstractPendingResult<NodeApi.GetLocalNodeResult>
getLocalNode(GoogleApiClient client)
Gets theNode that refers to this device.

Public Methods

public abstractPendingResult<NodeApi.GetConnectedNodesResult> getConnectedNodes(GoogleApiClient client)

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 {@linkplain #getLocalNode(GoogleApiClient) local node}.

public abstractPendingResult<NodeApi.GetLocalNodeResult> getLocalNode(GoogleApiClient client)

Gets theNodethat refers to this device. The information in the returnedNodecan be passed to other devices using theMessageApi, for example.