SatelliteStateChangeListener


interface SatelliteStateChangeListener
android.telephony.satellite.SatelliteStateChangeListener

A listener interface to monitor satellite state change events.

Call SatelliteManager.registerStateChangeListener(Executor, SatelliteStateChangeListener) to monitor. Call SatelliteManager.unregisterStateChangeListener(SatelliteStateChangeListener) to cancel.

Summary

Public methods
abstract Unit

Called when satellite modem enabled state may have changed.

Public methods

onEnabledStateChanged

abstract fun onEnabledStateChanged(isEnabled: Boolean): Unit

Called when satellite modem enabled state may have changed.

Note:there is no guarantee that this callback will only be invoked upon a change of state. In other word, in some cases, the callback may report with the same enabled states. It is the caller's responsibility to filter uninterested states.

Note:satellite enabled state is a device state that is NOT associated with subscription or SIM slot.

Parameters
isEnabled Boolean: true means satellite modem is enabled.