RangingSessionCallback
Stay organized with collections
Save and categorize content based on your preferences.
Callbacks used by startRanging.
Public Method Summary
abstract void |
|
abstract void |
|
abstract void |
|
Public Methods
public abstract void onRangingInitialized (UwbDevice
device)
Callback when a ranging session has been initiated.
public abstract void onRangingResult (UwbDevice device,
RangingPosition
position)
Callback when a ranging device's position is received.
public abstract void onRangingSuspended (UwbDevice device,
int reason)
Callback when a session has been suspended.
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."],[[["`RangingSessionCallback` provides callbacks for Ultra-wideband (UWB) ranging sessions."],["It includes callbacks for session initialization (`onRangingInitialized`), receiving ranging results (`onRangingResult`), and session suspension (`onRangingSuspended`)."],["`onRangingSuspended` provides a reason for the suspension using `RangingSuspendedReason`."],["These callbacks inform about the status and results of UWB ranging operations, allowing developers to react to changes and data."]]],["The `RangingSessionCallback` interface handles callbacks for ranging sessions. Key actions include `onRangingInitialized`, triggered when a session starts, providing the `UwbDevice`. `onRangingResult` is invoked when a device's position, represented by `RangingPosition`, is received. Lastly, `onRangingSuspended` signals session interruption, giving the `UwbDevice` and the reason code from `RangingSuspendedReason`. These callbacks enable managing and reacting to the state changes and data updates of a ranging session.\n"]]