Interface: AndroidPerson

The interface used to describe a person shown in notifications.

Currently used with AndroidMessagingStyle notifications.

Platform

android

Properties

bot?

optional bot: boolean

If true this person represents a machine rather than a human. This is used primarily for testing and automated tooling.

Defaults to false.

icon?

optional icon: string

The icon to display next to the person in the notification. The icon can be URL or local Android resource.

If not provided, an icon will be automatically creating using the name property.

id?

optional id: string

An optional unique ID of the person. Setting this property is preferred for unique identification, however not required. If no value is provided, the name will be used instead..

important?

optional important: boolean

If true this person will be marked as important.

Important users are those who frequently contact the receiving person. If the app is in "Do not disturb" mode, a notification containing an important person may override this mode if the person has been whitelisted on the device.

Defaults to false.

name

name: string

The name of the person.

If no id is provided, the name will be used as the unique identifier.

uri?

optional uri: string

URI contact of the person.

The URI can be any of the following:

  • The representation of a contact URI, e.g. android.provider.ContactsContract.Contacts#CONTENT_LOOKUP_URI
  • A mailto: string
  • A tel: string