Language

TelephonyManager.GetSimState(Int32) Method

Definition

Returns a constant indicating the state of the device SIM card in a logical slot.

[Android.Runtime.Register("getSimState", "(I)I", "GetGetSimState_IHandler", ApiSince=26)]
public virtual Android.Telephony.SimState GetSimState(int slotIndex);
[<Android.Runtime.Register("getSimState", "(I)I", "GetGetSimState_IHandler", ApiSince=26)>]
abstract member GetSimState : int -> Android.Telephony.SimState
override this.GetSimState : int -> Android.Telephony.SimState

Parameters

slotIndex
Int32

logical slot index

Returns

Value is one of the following: SIM_STATE_UNKNOWN SIM_STATE_ABSENT SIM_STATE_PIN_REQUIRED SIM_STATE_PUK_REQUIRED SIM_STATE_NETWORK_LOCKED SIM_STATE_READY SIM_STATE_NOT_READY SIM_STATE_PERM_DISABLED SIM_STATE_CARD_IO_ERROR SIM_STATE_CARD_RESTRICTED

Attributes

Remarks

Returns a constant indicating the state of the device SIM card in a logical slot.

Java documentation for android.telephony.TelephonyManager.getSimState(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to