Added in API level 31
    SimAccount
class SimAccount : Parcelable
| kotlin.Any | |
| ↳ | android.provider.ContactsContract.SimAccount | 
A parcelable class encapsulating account data for contacts that originate from a SIM card.
Summary
| Constants | |
|---|---|
| static Int | EF type identifier for the ADN partition. | 
| static Int | EF type identifier for the FDN partition. | 
| static Int | EF type identifier for the SDN partition. | 
| static Int | An invalid EF type identifier. | 
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | |
| Boolean | |
| String | |
| String | |
| Int | |
| Int | |
| Int | hashCode() | 
| Unit | writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. | 
| Properties | |
|---|---|
| static Parcelable.Creator<ContactsContract.SimAccount!> | |
Constants
ADN_EF_TYPE
Added in API level 31
      static val ADN_EF_TYPE: Int
EF type identifier for the ADN partition.
Value: 1FDN_EF_TYPE
Added in API level 31
      static val FDN_EF_TYPE: Int
EF type identifier for the FDN partition.
Value: 2SDN_EF_TYPE
Added in API level 31
      static val SDN_EF_TYPE: Int
EF type identifier for the SDN partition.
Value: 3UNKNOWN_EF_TYPE
Added in API level 31
      static val UNKNOWN_EF_TYPE: Int
An invalid EF type identifier.
Value: 0Public methods
describeContents
Added in API level 31
      fun describeContents(): Int
| Return | |
|---|---|
| Int | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
equals
Added in API level 31
      fun equals(other: Any?): Boolean
| Parameters | |
|---|---|
| obj | the reference object with which to compare. | 
| Return | |
|---|---|
| Boolean | trueif this object is the same as the obj argument;falseotherwise. | 
getAccountName
Added in API level 31
      fun getAccountName(): String
| Return | |
|---|---|
| String | The account_name of this SIM account. See RawContacts.ACCOUNT_NAME. This value cannot benull. | 
getAccountType
Added in API level 31
      fun getAccountType(): String
| Return | |
|---|---|
| String | The account_type of this SIM account. See RawContacts.ACCOUNT_TYPE. This value cannot benull. | 
getEfType
Added in API level 31
      fun getEfType(): Int
| Return | |
|---|---|
| Int | The EF type of the contacts stored in this account. | 
getSimSlotIndex
Added in API level 31
      fun getSimSlotIndex(): Int
| Return | |
|---|---|
| Int | The slot index of the SIM card this account maps to. See android.telephony.SubscriptionInfo#getSimSlotIndex(). | 
writeToParcel
Added in API level 31
      fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
| dest | Parcel: 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 either0or a combination ofandroid.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
