Skip to main content

NotificationEvent

The user selected a notification.

Delivered to Notifications.on_tap. Action buttons deliver NotificationActionEvent instead. The inherited control is the service that emitted the event.

Inherits: Event

Properties

  • id - Identifier of the notification, or None when the platform reports none.
  • payload - Application payload supplied when the notification was created.

Properties​

idclass-attributeinstance-attribute​

id: int | None = None

Identifier of the notification, or None when the platform reports none.

payloadclass-attributeinstance-attribute​

payload: str | None = None

Application payload supplied when the notification was created.

None when the notification has no payload. The service does not interpret the payload; the application can use it for routing or identifying an item.