pub fn set_close_handler(
prefix: &str,
handler: impl Fn(&str, CloseReason) + Send + Sync + 'static,
)Expand description
Call handler with the tag and reason of every notification whose tag starts
with prefix that the platform closes, on whatever thread reports it. Replaces
an earlier handler for prefix; where prefixes nest, the longest one wins.
Only some platforms report this (Feature::Close), and only for notifications
they closed themselves: a notification the app withdrew is not reported, and
CloseReason::Expired and CloseReason::Closed say nothing about the
person.