SignalStrengthsListener
interface SignalStrengthsListener
android.telephony.TelephonyCallback.SignalStrengthsListener |
Interface for network signal strengths listener.
Summary
Public methods | |
---|---|
abstract Unit |
onSignalStrengthsChanged(signalStrength: SignalStrength) Callback invoked when network signal strengths changes on the registered subscription. |
Public methods
onSignalStrengthsChanged
abstract fun onSignalStrengthsChanged(signalStrength: SignalStrength): Unit
Callback invoked when network signal strengths changes on the registered subscription. Note, the registration subscription ID comes from TelephonyManager
object which registers TelephonyCallback by TelephonyManager#registerTelephonyCallback(Executor, TelephonyCallback)
. If this TelephonyManager object was created with TelephonyManager#createForSubscriptionId(int)
, then the callback applies to the subscription ID. Otherwise, this callback applies to SubscriptionManager#getDefaultSubscriptionId()
.
Parameters | |
---|---|
signalStrength |
SignalStrength: This value cannot be null . |