Node

  • The Node interface provides information about a specific node in the Android Wear network.

  • Key methods include retrieving a human-readable display name, a unique identifier, and checking if the node is directly connected.

public interface Node

Information about a particular node in the Android Wear network.

Implementations support equality checks and hash codes based only on the node's ID (e.g. two instances with the same ID but different display names are considered equal).

Public Method Summary

abstract String
getDisplayName ()
Returns a human readable description of the node.
abstract String
getId ()
Returns an opaque string that represents a node in the Android Wear network.
abstract boolean
isNearby ()
Indicates that this node is directly connected to this device.

Public Methods

public abstract String getDisplayName ()

Returns a human readable description of the node. Sometimes generated from the Bluetooth device name

public abstract String getId ()

Returns an opaque string that represents a node in the Android Wear network.

public abstract boolean isNearby ()

Indicates that this node is directly connected to this device. For example, when they are connected via Bluetooth.

Create a Mobile Website
View Site in Mobile | Classic
Share by: