Stay organized with collections
Save and categorize content based on your preferences.
SatelliteStateChangeListener
interface 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. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-03-13 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 2025-03-13 UTC."],[],[],null,["# SatelliteStateChangeListener\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSatelliteStateChangeListener\n============================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/telephony/satellite/SatelliteStateChangeListener \"View this page in Java\") \n\n```\ninterface SatelliteStateChangeListener\n```\n\n|---------------------------------------------------------------|\n| [android.telephony.satellite.SatelliteStateChangeListener](#) |\n\nA listener interface to monitor satellite state change events.\n\nCall [SatelliteManager.registerStateChangeListener(Executor, SatelliteStateChangeListener)](/reference/kotlin/android/telephony/satellite/SatelliteManager#registerStateChangeListener(java.util.concurrent.Executor,%20android.telephony.satellite.SatelliteStateChangeListener)) to monitor. Call [SatelliteManager.unregisterStateChangeListener(SatelliteStateChangeListener)](/reference/kotlin/android/telephony/satellite/SatelliteManager#unregisterStateChangeListener(android.telephony.satellite.SatelliteStateChangeListener)) to cancel.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onEnabledStateChanged](#onEnabledStateChanged(kotlin.Boolean))`(`isEnabled:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Called when satellite modem enabled state may have changed. |\n\nPublic methods\n--------------\n\n### onEnabledStateChanged\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onEnabledStateChanged(isEnabled: Boolean): Unit\n```\n\nCalled when satellite modem enabled state may have changed.\n\nNote: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.\n\nNote:satellite enabled state is a device state that is NOT associated with subscription or SIM slot.\n\n| Parameters ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------|\n| `isEnabled` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html): `true` means satellite modem is enabled. |"]]