E2eeContactKeyParcelable


public final class E2eeContactKeyParcelable implements Parcelable, E2eeBaseKeyParcelable


代表與單一聯絡人綁定的 E2eeBaseKeyParcelable

如果鍵可能與零或多位聯絡人建立關聯,則改用 E2eeAccountContactKeyParcelable

摘要

巢狀型別

E2eeContactKeyParcelable 的建構工具類別。

公用方法

boolean
@NonNull String

傳回聯絡人金鑰的 account ID

@NonNull String

傳回聯絡人金鑰的 device ID

@Nullable String

傳回與金鑰相關聯的聯絡人 display name

@Nullable String

傳回與金鑰相關聯的聯絡人 email address

@Nullable byte[]

傳回聯絡人金鑰的 key bytes

int

傳回金鑰的本機驗證狀態。

@NonNull String

傳回與鍵相關聯的單一聯絡人的 lookup key

@NonNull String

傳回擁有金鑰的套件名稱。

@Nullable String

傳回與金鑰相關聯的聯絡人 phone number

int

傳回金鑰的遠端驗證狀態。

long

傳回聯絡人金鑰的 timestamp of the last update

int
void
writeToParcel(Parcel dest, int flags)

繼承常數

來自 android.os.Parcelable
static final int
static final int
static final int
static final int

繼承方法

來自 android.os.Parcelable
abstract int
int

常數

CREATOR

public static final Parcelable.Creator<E2eeContactKeyParcelableCREATOR

公開欄位

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 boolean equals(@Nullable Object other)

getAccountId

public @NonNull String getAccountId()

傳回聯絡人金鑰的 account ID

getDeviceId

public @NonNull String getDeviceId()

傳回聯絡人金鑰的 device ID

getDisplayName

public @Nullable String getDisplayName()

傳回與金鑰相關聯的聯絡人 display name

getEmailAddress

public @Nullable String getEmailAddress()

傳回與金鑰相關聯的聯絡人 email address

getKeyValue

public @Nullable byte[] getKeyValue()

傳回聯絡人金鑰的 key bytes

getLocalVerificationState

public int getLocalVerificationState()

傳回金鑰的本機驗證狀態。

詳情請參閱 com.google.android.gms.contactkeys.constants.VerificationState

getLookupKey

public @NonNull String getLookupKey()

傳回與鍵相關聯的單一聯絡人的 lookup key

getOwnerPackageName

public @NonNull String getOwnerPackageName()

傳回擁有金鑰的套件名稱。

getPhoneNumber

public @Nullable String getPhoneNumber()

傳回與金鑰相關聯的聯絡人 phone number

getRemoteVerificationState

public int getRemoteVerificationState()

傳回金鑰的遠端驗證狀態。

詳情請參閱 com.google.android.gms.contactkeys.constants.VerificationState

getTimeUpdated

public long getTimeUpdated()

傳回聯絡人金鑰的 timestamp of the last update

hashCode

public int hashCode()

writeToParcel

public void writeToParcel(Parcel dest, int flags)