ContactInfoParcelable


public final class ContactInfoParcelable implements Parcelable


包含單一聯絡人資訊的可封送物件。

做為 E2eeAccountContactKeyParcelable 中相關聯的中繼資料。

摘要

巢狀型別

ContactInfoParcelable 的建構工具類別。

公用方法

boolean
@Nullable String

傳回聯絡人的顯示名稱,儲存在聯絡人供應商的 DISPLAY_NAME 欄中。

@Nullable String

傳回聯絡人的電子郵件地址,儲存在聯絡人供應商的 ADDRESS 欄中。

@NonNull String

傳回聯絡人的查閱鍵,儲存在聯絡人供應程式的 LOOKUP_KEY 欄中。

@Nullable String

傳回聯絡人的電話號碼,儲存在聯絡人供應商的 NUMBER 欄中。

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<ContactInfoParcelableCREATOR

公開欄位

displayName

public @Nullable String displayName

emailAddress

public @Nullable String emailAddress

lookupKey

public @NonNull String lookupKey

phoneNumber

public @Nullable String phoneNumber

公用方法

等於

public boolean equals(@Nullable Object other)

getDisplayName

public @Nullable String getDisplayName()

傳回聯絡人的顯示名稱,儲存在聯絡人供應商的 DISPLAY_NAME 欄中。

getEmailAddress

public @Nullable String getEmailAddress()

傳回聯絡人的電子郵件地址,儲存在聯絡人供應商的 ADDRESS 欄中。

getLookupKey

public @NonNull String getLookupKey()

傳回聯絡人的查閱鍵,儲存在聯絡人供應程式的 LOOKUP_KEY 欄中。

getPhoneNumber

public @Nullable String getPhoneNumber()

傳回聯絡人的電話號碼,儲存在聯絡人供應商的 NUMBER 欄中。

hashCode

public int hashCode()

writeToParcel

public void writeToParcel(Parcel dest, int flags)