@notifee/react-native / AndroidPerson
Interface: AndroidPerson
The interface used to describe a person shown in notifications.
Currently used with AndroidMessagingStyle
notifications.
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.