Node
Stay organized with collections
Save and categorize content based on your preferences.
Information about a particular node in the Android Wear network.
Public Method Summary
abstract String
|
|
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-21 UTC.
[null,null,["Last updated 2024-11-21 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eNode\u003c/code\u003e interface provides information about a device in the Android Wear network.\u003c/p\u003e\n"],["\u003cp\u003eEach node can be identified by a unique ID and has a human-readable display name, often derived from its Bluetooth name.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eisNearby()\u003c/code\u003e method helps determine if a node is geographically close to the local device.\u003c/p\u003e\n"]]],[],null,["# Node\n\npublic interface **Node** \nInformation about a particular node in the Android Wear network. \n\n### Public Method Summary\n\n|----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | [getDisplayName](/android/reference/com/google/android/gms/wearable/Node#getDisplayName())() Returns a human readable description of the node. |\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | [getId](/android/reference/com/google/android/gms/wearable/Node#getId())() Returns an opaque string that represents a node in the Android Wear network. |\n| abstract boolean | [isNearby](/android/reference/com/google/android/gms/wearable/Node#isNearby())() Indicates that this node is directly connected to this device. |\n\nPublic Methods\n--------------\n\n#### public abstract [String](//developer.android.com/reference/java/lang/String.html) **getDisplayName** ()\n\nReturns a human readable description of the node. Sometimes generated from the\nBluetooth device name \n\n#### public abstract [String](//developer.android.com/reference/java/lang/String.html) **getId** ()\n\nReturns an opaque string that represents a node in the Android Wear network. \n\n#### public abstract boolean\n**isNearby** ()\n\nIndicates that this node is directly connected to this device. For example, when\nthey are connected via Bluetooth."]]