@Document(name = "builtin:ContactPoint")
public class ContactPoint extends Thing


A group of contact information corresponding to a label such as "Home" or "Work".

Summary

Nested types

Builder for ContactPoint.

Public methods

@NonNull List<String>

Returns a list of flattened postal addresses associated with this contact point.

@NonNull List<String>

Returns a list of the email addresses of this ContactPoint.

@NonNull String

Returns the label of this ContactPoint.

@NonNull List<String>

Returns a list of the telephone numbers of this ContactPoint.

Inherited methods

From androidx.appsearch.builtintypes.Thing
@NonNull List<String>

Returns an unmodifiable list of aliases, if any, for this item.

long

Returns the creation timestamp, in milliseconds since Unix epoch, of this item.

@Nullable String

Returns a description of this item.

int

Returns the intrinsic score (or importance) of this item.

long

Returns the time-to-live timestamp, in milliseconds since getCreationTimestampMillis, for this item.

@NonNull String

Returns the unique identifier for this item.

@Nullable String

Returns the URL for an image of this item.

@Nullable String

Returns the name of this item.

@NonNull String

Returns the namespace (or logical grouping) for this item.

@NonNull List<PotentialAction>

Returns the actions that can be taken on this object.

@Nullable String

Returns the deeplink URL of this item.

Public methods

getAddresses

Added in 1.1.0-alpha07
public @NonNull List<StringgetAddresses()

Returns a list of flattened postal addresses associated with this contact point. For example, "123 Main St, Any town, USA".

getEmails

Added in 1.1.0-alpha07
public @NonNull List<StringgetEmails()

Returns a list of the email addresses of this ContactPoint.

getLabel

Added in 1.1.0-alpha07
public @NonNull String getLabel()

Returns the label of this ContactPoint.

Possible values are "Home", "Work", "Other", or any user defined custom label.

getTelephones

Added in 1.1.0-alpha07
public @NonNull List<StringgetTelephones()

Returns a list of the telephone numbers of this ContactPoint.