ContactInfoParcelable


public final class ContactInfoParcelable implements Parcelable


Parcelable object containing information about a single contact.

Used as metadata associated in E2eeAccountContactKeyParcelable.

Summary

Nested types

Builder class for ContactInfoParcelable.

Public methods

boolean
@Nullable String

Returns the display name for the contact, stored in the DISPLAY_NAME column of the contacts provider.

@Nullable String

Returns the email address for the contact, stored in the ADDRESS column of the contacts provider.

@NonNull String

Returns the lookup key for the contact, stored in the LOOKUP_KEY column of the contacts provider.

@Nullable String

Returns the phone number for the contact, stored in the NUMBER column of the contacts provider.

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

Public fields

displayName

public @Nullable String displayName

emailAddress

public @Nullable String emailAddress

lookupKey

public @NonNull String lookupKey

phoneNumber

public @Nullable String phoneNumber

Public methods

equals

public boolean equals(@Nullable Object other)

getDisplayName

public @Nullable String getDisplayName()

Returns the display name for the contact, stored in the DISPLAY_NAME column of the contacts provider.

getEmailAddress

public @Nullable String getEmailAddress()

Returns the email address for the contact, stored in the ADDRESS column of the contacts provider.

getLookupKey

public @NonNull String getLookupKey()

Returns the lookup key for the contact, stored in the LOOKUP_KEY column of the contacts provider.

getPhoneNumber

public @Nullable String getPhoneNumber()

Returns the phone number for the contact, stored in the NUMBER column of the contacts provider.

hashCode

public int hashCode()

writeToParcel

public void writeToParcel(Parcel dest, int flags)