public interface CapabilityInfo
CapabilityInfo
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-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eCapabilityInfo\u003c/code\u003e provides information about a capability on the network and its availability.\u003c/p\u003e\n"],["\u003cp\u003eIt includes methods to retrieve the capability's name (\u003ccode\u003egetName()\u003c/code\u003e) and the set of nodes where it's available (\u003ccode\u003egetNodes()\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe set of nodes returned by \u003ccode\u003egetNodes()\u003c/code\u003e may include or exclude disconnected nodes.\u003c/p\u003e\n"]]],["`CapabilityInfo` provides information about a capability on a network. It offers two key methods: `getName()`, which retrieves the capability's name as a String, and `getNodes()`, which returns a Set of Node objects. This set represents the nodes where the capability is available, potentially including disconnected nodes. These methods allow for accessing both the name and the location of a capability on the network.\n"],null,["# CapabilityInfo\n\npublic interface **CapabilityInfo** \nInformation about a Capability on the network and where it is available. \n\n### Public Method Summary\n\n|-----------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | [getName](/android/reference/com/google/android/gms/wearable/CapabilityInfo#getName())() Returns the name of the capability. |\n| abstract [Set](//developer.android.com/reference/java/util/Set.html)\\\u003c[Node](/android/reference/com/google/android/gms/wearable/Node)\\\u003e | [getNodes](/android/reference/com/google/android/gms/wearable/CapabilityInfo#getNodes())() Returns the set of nodes for the capability. |\n\nPublic Methods\n--------------\n\n#### public abstract [String](//developer.android.com/reference/java/lang/String.html) **getName** ()\n\nReturns the name of the capability. \n\n#### public abstract [Set](//developer.android.com/reference/java/util/Set.html)\\\u003c[Node](/android/reference/com/google/android/gms/wearable/Node)\\\u003e\n**getNodes** ()\n\nReturns the set of nodes for the capability. Disconnected nodes may or may not be\nincluded in the set."]]