E2eeContactKeyParcelable


public final class E2eeContactKeyParcelable implements Parcelable, E2eeBaseKeyParcelable


Represents an E2eeBaseKeyParcelable tied to a single contact.

E2eeAccountContactKeyParcelable is used instead if the key may be associated with zero or multiple contacts.

Summary

Nested types

Builder class for E2eeContactKeyParcelable.

Public methods

boolean
@NonNull String

Returns the account ID of the contact key.

@NonNull String

Returns the device ID of the contact key.

@Nullable String

Returns the display name of the contact associated with the key.

@Nullable String

Returns the email address of the contact associated with the key.

@Nullable byte[]

Returns the key bytes of the contact key.

int

Returns the local verification state of the key.

@NonNull String

Returns the lookup key of the single contact associated with the key.

@NonNull String

Returns the name of the package that owns the key.

@Nullable String

Returns the phone number of the contact associated with the key.

int

Returns the remote verification state of the key.

long

Returns the timestamp of the last update for the contact key.

int
void
writeToParcel(Parcel dest, int flags)

Inherited Constants

From android.os.Parcelable
static final int
static final int
static final int
static final int

Inherited methods

From android.os.Parcelable
abstract int
int

Constants

CREATOR

public static final Parcelable.Creator<E2eeContactKeyParcelableCREATOR

Public fields

accountId

public @NonNull String accountId

deviceId

public @NonNull String deviceId

displayName

public @Nullable String displayName

emailAddress

public @Nullable String emailAddress

keyValue

public @Nullable byte[] keyValue

localVerificationState

public int localVerificationState

lookupKey

public @NonNull String lookupKey

ownerPackageName

public @NonNull String ownerPackageName

phoneNumber

public @Nullable String phoneNumber

remoteVerificationState

public int remoteVerificationState

timeUpdated

public long timeUpdated

Public methods

equals

public boolean equals(@Nullable Object other)

getAccountId

public @NonNull String getAccountId()

Returns the account ID of the contact key.

getDeviceId

public @NonNull String getDeviceId()

Returns the device ID of the contact key.

getDisplayName

public @Nullable String getDisplayName()

Returns the display name of the contact associated with the key.

getEmailAddress

public @Nullable String getEmailAddress()

Returns the email address of the contact associated with the key.

getKeyValue

public @Nullable byte[] getKeyValue()

Returns the key bytes of the contact key.

getLocalVerificationState

public int getLocalVerificationState()

Returns the local verification state of the key.

See com.google.android.gms.contactkeys.constants.VerificationState for more details.

getLookupKey

public @NonNull String getLookupKey()

Returns the lookup key of the single contact associated with the key.

getOwnerPackageName

public @NonNull String getOwnerPackageName()

Returns the name of the package that owns the key.

getPhoneNumber

public @Nullable String getPhoneNumber()

Returns the phone number of the contact associated with the key.

getRemoteVerificationState

public int getRemoteVerificationState()

Returns the remote verification state of the key.

See com.google.android.gms.contactkeys.constants.VerificationState for more details.

getTimeUpdated

public long getTimeUpdated()

Returns the timestamp of the last update for the contact key.

hashCode

public int hashCode()

writeToParcel

public void writeToParcel(Parcel dest, int flags)