Added in API level 35

E2eeContactKey


class E2eeContactKey : Parcelable
kotlin.Any
   ↳ android.provider.E2eeContactKeysManager.E2eeContactKey

A parcelable class encapsulating other users' end to end encrypted contact key.

Summary

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

String

Gets the app-specified identifier for the account for which the end-to-end encryption key can be used.

String?

Gets the app-specified identifier for the device for which the end-to-end encryption key can be used.

String?

Gets the display name for the contact.

String?

Gets the email address.

ByteArray?

Gets the raw bytes for the end-to-end encryption key.

Int

Gets the local verification state for the key, for instance QR-code based verification.

String

Gets the owner application package name.

String?

Gets the phone number as the user entered it.

Int

Gets the remote verification state for the end-to-end encryption key, for instance through a key transparency server.

Long

Gets the timestamp at which the end-to-end encryption key was updated.

Int

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<E2eeContactKeysManager.E2eeContactKey!>

Public methods

describeContents

Added in API level 35
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 35
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.

getAccountId

Added in API level 35
fun getAccountId(): String

Gets the app-specified identifier for the account for which the end-to-end encryption key can be used. Usually a phone number.

Return
String An app-specified identifier for the account. This value cannot be null.

getDeviceId

Added in API level 35
fun getDeviceId(): String?

Gets the app-specified identifier for the device for which the end-to-end encryption key can be used. Returns null if the app doesn't have the required visibility into the end-to-end encryption key.

Return
String? An app-specified identifier for the device.

getDisplayName

Added in API level 35
fun getDisplayName(): String?

Gets the display name for the contact.

Return
String? The display name for the contact. This value may be null.

getEmailAddress

Added in API level 35
fun getEmailAddress(): String?

Gets the email address.

Return
String? The email address. This value may be null.

getKeyValue

Added in API level 35
fun getKeyValue(): ByteArray?

Gets the raw bytes for the end-to-end encryption key. Returns null if the app doesn't have the required visibility into the end-to-end encryption key.

Return
ByteArray? A copy of the raw bytes for the end-to-end encryption key.

getLocalVerificationState

Added in API level 35
fun getLocalVerificationState(): Int

Gets the local verification state for the key, for instance QR-code based verification.

Return
Int The local verification state for the key. Value is android.provider.E2eeContactKeysManager#VERIFICATION_STATE_UNVERIFIED, android.provider.E2eeContactKeysManager#VERIFICATION_STATE_VERIFICATION_FAILED, or android.provider.E2eeContactKeysManager#VERIFICATION_STATE_VERIFIED

getOwnerPackageName

Added in API level 35
fun getOwnerPackageName(): String

Gets the owner application package name.

Return
String The owner application package name. This value cannot be null.

getPhoneNumber

Added in API level 35
fun getPhoneNumber(): String?

Gets the phone number as the user entered it.

Return
String? The phone number as the user entered it. This value may be null.

getRemoteVerificationState

Added in API level 35
fun getRemoteVerificationState(): Int

Gets the remote verification state for the end-to-end encryption key, for instance through a key transparency server.

Return
Int The remote verification state for the end-to-end encryption key. Value is android.provider.E2eeContactKeysManager#VERIFICATION_STATE_UNVERIFIED, android.provider.E2eeContactKeysManager#VERIFICATION_STATE_VERIFICATION_FAILED, or android.provider.E2eeContactKeysManager#VERIFICATION_STATE_VERIFIED

getTimeUpdated

Added in API level 35
fun getTimeUpdated(): Long

Gets the timestamp at which the end-to-end encryption key was updated. Returns -1 if the app doesn't have the required visibility into the key.

Return
Long The timestamp at which the key was updated in the System.currentTimeMillis() base.

hashCode

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

writeToParcel

Added in API level 35
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