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


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

Summary

Public functions

(Mutable)List<String!>

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

(Mutable)List<String!>

Returns a list of the email addresses of this ContactPoint.

String

Returns the label of this ContactPoint.

(Mutable)List<String!>

Returns a list of the telephone numbers of this ContactPoint.

Inherited functions

From androidx.appsearch.builtintypes.Thing
(Mutable)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.

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.

String

Returns the unique identifier for this item.

String?

Returns the URL for an image of this item.

String?

Returns the name of this item.

String

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

(Mutable)List<PotentialAction!>

Returns the actions that can be taken on this object.

String?

Returns the deeplink URL of this item.

Public functions

getAddresses

Added in 1.1.0-alpha07
fun getAddresses(): (Mutable)List<String!>

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
fun getEmails(): (Mutable)List<String!>

Returns a list of the email addresses of this ContactPoint.

getLabel

Added in 1.1.0-alpha07
fun getLabel(): String

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
fun getTelephones(): (Mutable)List<String!>

Returns a list of the telephone numbers of this ContactPoint.