UwbAvailabilityObserver

  • UwbAvailabilityObserver is an observer for UWB availability change events.

  • The onUwbStateChanged method is called when the UWB state changes, indicating whether UWB is available and the reason for the change.

  • UwbAvailabilityObserver.UwbStateChangeReason is a nested interface providing reasons for UWB state changes.

public interface UwbAvailabilityObserver

Observer for UWB availability change events.

When UWB state changes, onUwbStateChanged(boolean, int) is called, sending back the current UWB state and the state change reason.

Nested Class Summary

@interface UwbAvailabilityObserver.UwbStateChangeReason The reason for the UWB state change. 

Public Method Summary

abstract void
onUwbStateChanged(boolean isAvailable, int reason)
Called when UWB state changes.

Public Methods

public abstract void onUwbStateChanged (boolean isAvailable, int reason)

Called when UWB state changes.

Parameters
isAvailable whether UWB is available
reason the reason UWB state changed