pub struct ActiveNotification { /* private fields */ }Expand description
A notification that was delivered and is still visible in the notification center.
Returned by Notification::active, which is only available on mobile.
Which fields are populated depends on the platform, since Android and iOS expose
different information about delivered notifications.
Implementations§
Source§impl ActiveNotification
impl ActiveNotification
Sourcepub fn tag(&self) -> Option<&str>
pub fn tag(&self) -> Option<&str>
The tag the notification was posted with.
Only set on Android.
Sourcepub fn group(&self) -> Option<&str>
pub fn group(&self) -> Option<&str>
The identifier of the group the notification belongs to.
Only set on Android.
Sourcepub fn group_summary(&self) -> bool
pub fn group_summary(&self) -> bool
Whether the notification is the summary of its group.
Only set on Android. Defaults to false.
Sourcepub fn data(&self) -> &HashMap<String, String>
pub fn data(&self) -> &HashMap<String, String>
The platform extras attached to the notification, as string values.
Only set on Android, where it holds the android.app.Notification extras bundle.
Sourcepub fn extra(&self) -> &HashMap<String, Value>
pub fn extra(&self) -> &HashMap<String, Value>
The extra payload that was stored in the notification.
Sourcepub fn attachments(&self) -> &[Attachment]
pub fn attachments(&self) -> &[Attachment]
The attachments of the notification.
Only set on iOS.
Sourcepub fn action_type_id(&self) -> Option<&str>
pub fn action_type_id(&self) -> Option<&str>
The identifier of the action type the notification was registered with.
Only set on iOS.