UwbAvailabilityCallback
public interface UwbAvailabilityCallback
Callback used for UWB availability.
Summary
Constants |
|
|---|---|
default static final 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. |
default static final int |
The state has changed because UWB is turned on/off |
default static final int |
The state has changed because of an unknown reason |
Public methods |
|
|---|---|
abstract void |
onUwbStateChanged(boolean isAvailable, int reason)Callback when the UWB state is changed |
Constants
STATE_CHANGE_REASON_COUNTRY_CODE_ERROR
default static final int STATE_CHANGE_REASON_COUNTRY_CODE_ERROR = 2
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
default static final int STATE_CHANGE_REASON_SYSTEM_POLICY = 1
The state has changed because UWB is turned on/off
STATE_CHANGE_REASON_UNKNOWN
default static final int STATE_CHANGE_REASON_UNKNOWN = 0
The state has changed because of an unknown reason
Public methods
onUwbStateChanged
abstract void onUwbStateChanged(boolean isAvailable, int reason)
Callback when the UWB state is changed
| Parameters | |
|---|---|
boolean isAvailable |
True if UWB is switched on, false otherwise |
int reason |
The reason of UWB state change. Possible reasons are |