AI-generated Key Takeaways
-
The
Node
interface provides information about a device in the Android Wear network. -
Each node can be identified by a unique ID and has a human-readable display name, often derived from its Bluetooth name.
-
The
isNearby()
method helps determine if a node is geographically close to the local device.
Information about a particular node in the Android Wear network.
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.