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
equals(other: Any?)

String

String

Int

Int

Int

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: 1

FDN_EF_TYPE

Added in API level 31
static val FDN_EF_TYPE: Int

EF type identifier for the FDN partition.

Value: 2

SDN_EF_TYPE

Added in API level 31
static val SDN_EF_TYPE: Int

EF type identifier for the SDN partition.

Value: 3

UNKNOWN_EF_TYPE

Added in API level 31
static val UNKNOWN_EF_TYPE: Int

An invalid EF type identifier.

Value: 0

Public 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 0 or android.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 true if this object is the same as the obj argument; false otherwise.

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 be null.

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 be null.

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().

hashCode

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

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 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 31
static val CREATOR: Parcelable.Creator<ContactsContract.SimAccount!>