Stay organized with collections
Save and categorize content based on your preferences.
RangingManager.RangingCapabilitiesCallback
public
static
interface
RangingManager.RangingCapabilitiesCallback
android.ranging.RangingManager.RangingCapabilitiesCallback
|
Callback interface to receive the availabilities and capabilities of all the ranging
technology supported by the device.
This interface is used to asynchronously provide information about the
supported ranging capabilities of the device. The callback is invoked first time when
registered and if any capabilities are updated until it is unregistered.
Summary
Public methods
onRangingCapabilities
public abstract void onRangingCapabilities (RangingCapabilities capabilities)
Called when the ranging capabilities are available.
Parameters |
capabilities |
RangingCapabilities : the RangingCapabilities object containing
detailed information about the supported features
and limitations of the ranging technology.
This value cannot be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-03-13 UTC.
[null,null,["Last updated 2025-03-13 UTC."],[],[],null,["# RangingManager.RangingCapabilitiesCallback\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nRangingManager.RangingCapabilitiesCallback\n==========================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/ranging/RangingManager.RangingCapabilitiesCallback \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nRangingManager.RangingCapabilitiesCallback\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------------------|\n| android.ranging.RangingManager.RangingCapabilitiesCallback |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nCallback interface to receive the availabilities and capabilities of all the ranging\ntechnology supported by the device.\n\nThis interface is used to asynchronously provide information about the\nsupported ranging capabilities of the device. The callback is invoked first time when\nregistered and if any capabilities are updated until it is unregistered.\n\n\u003cbr /\u003e\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onRangingCapabilities](/reference/android/ranging/RangingManager.RangingCapabilitiesCallback#onRangingCapabilities(android.ranging.RangingCapabilities))`(`[RangingCapabilities](/reference/android/ranging/RangingCapabilities)` capabilities) ` Called when the ranging capabilities are available. |\n\nPublic methods\n--------------\n\n### onRangingCapabilities\n\nAdded in [API level 36](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onRangingCapabilities (RangingCapabilities capabilities)\n```\n\nCalled when the ranging capabilities are available.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `capabilities` | `RangingCapabilities`: the [RangingCapabilities](/reference/android/ranging/RangingCapabilities) object containing detailed information about the supported features and limitations of the ranging technology. This value cannot be `null`. \u003cbr /\u003e |"]]