Skip to main content

AndroidPerson

Participant identity used by an Android messaging-style notification.

Use a consistent key or uri to identify the same person across notifications, even when their display name changes.

Properties

  • bot - Whether the participant represents a bot rather than a human.
  • icon - Optional participant avatar, supporting any AndroidIcon source.
  • important - Whether Android should treat this as an important participant.
  • key - Stable identifier distinguishing this person from others.
  • name - Nonempty display name of the participant.
  • uri - URI identifying the participant, such as "mailto:alex@example.com".

Properties​

botclass-attributeinstance-attribute​

bot: bool = False

Whether the participant represents a bot rather than a human.

iconclass-attributeinstance-attribute​

icon: AndroidIcon | None = None

Optional participant avatar, supporting any AndroidIcon source.

importantclass-attributeinstance-attribute​

important: bool = False

Whether Android should treat this as an important participant.

keyclass-attributeinstance-attribute​

key: str | None = None

Stable identifier distinguishing this person from others.

nameinstance-attribute​

name: str

Nonempty display name of the participant.

uriclass-attributeinstance-attribute​

uri: str | None = None

URI identifying the participant, such as "mailto:alex@example.com".

A matching contact URI can help Android associate notifications with contacts.