pub fn on_notification_activated(
handler: impl FnMut(NotificationActivation) + 'static,
)Expand description
Calls handler when the user presses a notification this application posted, for as
long as this call site is in the composition.
The handler is replaced by the latest one on every composition, so it always sees the states it captured this time.