UwbAvailabilityCallback
interface UwbAvailabilityCallback
Callback used for UWB availability.
Summary
Constants |
|
|---|---|
const Int |
The state has changed either because no country code has been configured or due to UWB being unavailable as a result of regulatory constraints. |
const Int |
The state has changed because UWB is turned on/off |
const Int |
The state has changed because of an unknown reason |
Public functions |
|
|---|---|
Unit |
onUwbStateChanged(isAvailable: Boolean, reason: Int)Callback when the UWB state is changed |
Constants
STATE_CHANGE_REASON_COUNTRY_CODE_ERROR
const val STATE_CHANGE_REASON_COUNTRY_CODE_ERROR = 2: Int
The state has changed either because no country code has been configured or due to UWB being unavailable as a result of regulatory constraints.
STATE_CHANGE_REASON_SYSTEM_POLICY
const val STATE_CHANGE_REASON_SYSTEM_POLICY = 1: Int
The state has changed because UWB is turned on/off
STATE_CHANGE_REASON_UNKNOWN
const val STATE_CHANGE_REASON_UNKNOWN = 0: Int
The state has changed because of an unknown reason
Public functions
onUwbStateChanged
fun onUwbStateChanged(isAvailable: Boolean, reason: Int): Unit
Callback when the UWB state is changed
| Parameters | |
|---|---|
isAvailable: Boolean |
True if UWB is switched on, false otherwise |
reason: Int |
The reason of UWB state change. Possible reasons are |