Stay organized with collections
Save and categorize content based on your preferences.
RangingCapabilitiesCallback
interface 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 |
abstract Unit |
Called when the ranging capabilities are available.
|
Public methods
onRangingCapabilities
abstract fun onRangingCapabilities(capabilities: RangingCapabilities): Unit
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.
[[["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 2025-03-13 UTC."],[],[],null,["# RangingManager.RangingCapabilitiesCallback\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nRangingCapabilitiesCallback\n===========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/ranging/RangingManager.RangingCapabilitiesCallback \"View this page in Java\") \n\n```\ninterface RangingCapabilitiesCallback\n```\n\n|-----------------------------------------------------------------|\n| [android.ranging.RangingManager.RangingCapabilitiesCallback](#) |\n\nCallback interface to receive the availabilities and capabilities of all the ranging technology supported by the device.\n\nThis 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.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onRangingCapabilities](#onRangingCapabilities(android.ranging.RangingCapabilities))`(`capabilities:` `[RangingCapabilities](/reference/kotlin/android/ranging/RangingCapabilities)`)` Called when the ranging capabilities are available. |\n\nPublic methods\n--------------\n\n### onRangingCapabilities\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onRangingCapabilities(capabilities: RangingCapabilities): Unit\n```\n\nCalled when the ranging capabilities are available.\n\n| Parameters ||\n|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `capabilities` | [RangingCapabilities](/reference/kotlin/android/ranging/RangingCapabilities): the [RangingCapabilities](/reference/kotlin/android/ranging/RangingCapabilities) object containing detailed information about the supported features and limitations of the ranging technology. This value cannot be `null`. |"]]