public static enum IccCardConstants.State extends Enum<IccCardConstants.State>
TelephonyManager.SIM_STATE_UNKNOWN
...Enum Constant and Description |
---|
ABSENT
ordinal(0) ==
|
CARD_IO_ERROR
ordinal(7) ==
|
CARD_RESTRICTED
ordinal(8) ==
|
NETWORK_LOCKED
ordinal(3) ==
|
NOT_READY
ordinal(5) ==
|
PERM_DISABLED
ordinal(6) ==
|
PIN_REQUIRED
ordinal(1) ==
|
PUK_REQUIRED
ordinal(2) ==
|
READY
ordinal(4) ==
|
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
boolean |
iccCardExist() |
static IccCardConstants.State |
intToState(int state) |
boolean |
isPinLocked()
ordinal(9) ==
|
static IccCardConstants.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IccCardConstants.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IccCardConstants.State UNKNOWN
public static final IccCardConstants.State ABSENT
public static final IccCardConstants.State PIN_REQUIRED
public static final IccCardConstants.State PUK_REQUIRED
public static final IccCardConstants.State NETWORK_LOCKED
public static final IccCardConstants.State READY
public static final IccCardConstants.State NOT_READY
public static final IccCardConstants.State PERM_DISABLED
public static final IccCardConstants.State CARD_IO_ERROR
public static final IccCardConstants.State CARD_RESTRICTED
public static IccCardConstants.State[] values()
for (IccCardConstants.State c : IccCardConstants.State.values()) System.out.println(c);
public static IccCardConstants.State valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isPinLocked()
public boolean iccCardExist()
public static IccCardConstants.State intToState(int state) throws IllegalArgumentException
IllegalArgumentException