public abstract class

NodeClient

extends GoogleApi<Wearable.WearableOptions>
java.lang.Object
   ↳ com.google.android.gms.common.api.GoogleApi<com.google.android.gms.wearable.Wearable.WearableOptions>
     ↳ com.google.android.gms.wearable.NodeClient

Class Overview

Exposes an API for learning about local or connected Nodes.

Node events are delivered to all applications on a device.

New code should use CapabilityClient which allows you to create and listen to application-specific network events.

Summary

Public Methods
abstract Task<List<Node>> getConnectedNodes()
Gets a list of nodes to which this device is currently connected, either directly or indirectly via a directly connected node.
abstract Task<Node> getLocalNode()
Gets the Node that refers to this device.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public abstract Task<List<Node>> getConnectedNodes ()

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.

Returns
Task<List<Node>>

public abstract Task<Node> getLocalNode ()

Gets the Node that refers to this device. The information in the returned Node can be passed to other devices using MessageClient, for example.

Returns
Task<Node>