TelephonyCallback.DataActivationStateListener
public
static
interface
TelephonyCallback.DataActivationStateListener
android.telephony.TelephonyCallback.DataActivationStateListener |
Interface for SIM data activation state listener.
Summary
Public methods | |
---|---|
abstract
void
|
onDataActivationStateChanged(int state)
Callback invoked when the SIM data activation state has changed on the registered subscription. |
Public methods
onDataActivationStateChanged
public abstract void onDataActivationStateChanged (int state)
Callback invoked when the SIM data activation state has changed 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 | |
---|---|
state |
int : is the current SIM data activation state
Value is android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_UNKNOWN, android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_ACTIVATING, android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_ACTIVATED, android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_DEACTIVATED, or android.telephony.TelephonyManager.SIM_ACTIVATION_STATE_RESTRICTED |