ContactInfoParcelable


public final class ContactInfoParcelable implements Parcelable


包含单个联系人相关信息的 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)