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 | |
Int |
Get the card ID of the UICC. |
String? |
getEid() Get the embedded ID (EID) of the eUICC. |
String? |
getIccId() Get the ICCID of the UICC. |
Int |
Gets the physical slot index for the slot that the UICC is currently inserted in. |
MutableCollection<UiccPortInfo!> |
getPorts() 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 |
hashCode() |
Boolean |
isEuicc() Return whether the UICC is an eUICC. |
Boolean | |
Boolean |
Return whether the UICC or eUICC is removable. |
String |
toString() |
Unit |
writeToParcel(dest: Parcel, flags: Int) |
Properties | |
---|---|
static Parcelable.Creator<UiccCardInfo!> |
Public methods
describeContents
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
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
fun getCardId(): Int
Get the card ID of the UICC. See TelephonyManager.getCardIdForDefaultEuicc()
for more details on card ID.
getEid
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
fungetIccId(): 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
fun getPhysicalSlotIndex(): Int
Gets the physical slot index for the slot that the UICC is currently inserted in.
getPorts
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
fungetSlotIndex(): Int
Deprecated: use getPhysicalSlotIndex()
Gets the slot index for the slot that the UICC is currently inserted in.
isEuicc
fun isEuicc(): Boolean
Return whether the UICC is an eUICC.
Return | |
---|---|
Boolean |
true if the UICC is an eUICC. |
isMultipleEnabledProfilesSupported
fun isMultipleEnabledProfilesSupported(): Boolean
isRemovable
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
fun toString(): String
Return | |
---|---|
String |
a string representation of the object. |
writeToParcel
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 |