Added in API level 29

UiccCardInfo


class UiccCardInfo : Parcelable
kotlin.Any
   ↳ android.telephony.UiccCardInfo

The UiccCardInfo represents information about a currently inserted UICC or embedded eUICC.

Summary

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

Int

Get the card ID of the UICC.

String?

Get the embedded ID (EID) of the eUICC.

String?

Get the ICCID of the UICC.

Int

Gets the physical slot index for the slot that the UICC is currently inserted in.

MutableCollection<UiccPortInfo!>

Get information regarding port, ICCID and its active status.

Int

Gets the slot index for the slot that the UICC is currently inserted in.

Int

Boolean

Return whether the UICC is an eUICC.

Boolean

Boolean

Return whether the UICC or eUICC is removable.

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Properties
static Parcelable.Creator<UiccCardInfo!>

Public methods

describeContents

Added in API level 29
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

equals

Added in API level 29
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getCardId

Added in API level 29
fun getCardId(): Int

Get the card ID of the UICC. See TelephonyManager#getCardIdForDefaultEuicc() for more details on card ID.

getEid

Added in API level 29
fun getEid(): String?

Get the embedded ID (EID) of the eUICC. If the UiccCardInfo is not an eUICC (see isEuicc()), or the EID is not available, returns null.

Note that this field may be omitted if the caller does not have the correct permissions (see TelephonyManager#getUiccCardsInfo()).

getIccId

Added in API level 29
Deprecated in API level 33
fun getIccId(): String?

Deprecated: with support for MEP(multiple enabled profile) PackageManager#FEATURE_TELEPHONY_EUICC_MEP, a SIM card can have more than one ICCID active at the same time. Instead use UiccPortInfo#getIccId() to retrieve ICCID. To find UiccPortInfo use UiccCardInfo#getPorts().

Get the ICCID of the UICC. If the ICCID is not availble, returns null.

Note that this field may be omitted if the caller does not have the correct permissions (see TelephonyManager#getUiccCardsInfo()).

Exceptions
java.lang.UnsupportedOperationException if the calling app's target SDK is T and beyond.

getPhysicalSlotIndex

Added in API level 33
fun getPhysicalSlotIndex(): Int

Gets the physical slot index for the slot that the UICC is currently inserted in.

getPorts

Added in API level 33
fun getPorts(): MutableCollection<UiccPortInfo!>

Get information regarding port, ICCID and its active status. For device which support PackageManager#FEATURE_TELEPHONY_EUICC_MEP, it should return more than one UiccPortInfo object if the card is eUICC.

Return
MutableCollection<UiccPortInfo!> Collection of UiccPortInfo This value cannot be null.

getSlotIndex

Added in API level 29
Deprecated in API level 33
fun getSlotIndex(): Int

Deprecated: use getPhysicalSlotIndex()

Gets the slot index for the slot that the UICC is currently inserted in.

hashCode

Added in API level 29
fun hashCode(): Int
Return
Int a hash code value for this object.

isEuicc

Added in API level 29
fun isEuicc(): Boolean

Return whether the UICC is an eUICC.

Return
Boolean true if the UICC is an eUICC.

isMultipleEnabledProfilesSupported

Added in API level 33
fun isMultipleEnabledProfilesSupported(): Boolean

isRemovable

Added in API level 29
fun isRemovable(): Boolean

Return whether the UICC or eUICC is removable.

UICCs are generally removable, but eUICCs may be removable or built in to the device.

Return
Boolean true if the UICC or eUICC is removable

toString

Added in API level 29
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 29
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit
Parameters
dest Parcel: The Parcel in which the object should be written. This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 29
static val CREATOR: Parcelable.Creator<UiccCardInfo!>