Skip to main content

AndroidMessagingStyle

Android notification layout for a conversation and its recent messages.

The bridge does not apply this style on iOS or macOS. Those platforms can use DarwinOptions.thread_identifier for grouping.

Inherits: AndroidStyle

Properties

  • conversation_title - Title identifying the conversation, especially for group conversations.
  • group_conversation - Whether the conversation contains multiple other participants.
  • messages - Messages to show in the conversation.
  • person - Identity of the local user receiving or participating in the conversation.

Properties​

conversation_titleclass-attributeinstance-attribute​

conversation_title: str | None = None

Title identifying the conversation, especially for group conversations.

Normally omit for a one-to-one conversation, where the participant name identifies the chat.

group_conversationclass-attributeinstance-attribute​

group_conversation: bool = False

Whether the conversation contains multiple other participants.

messagesclass-attributeinstance-attribute​

messages: list[AndroidMessage] = field(default_factory=list)

Messages to show in the conversation.

Supply messages in chronological order, including recent history when updating the same notification. An empty list supplies no message history.

personinstance-attribute​

person: AndroidPerson

Identity of the local user receiving or participating in the conversation.