Trait IUNNotificationResponse

Source
pub trait IUNNotificationResponse: PNSObject {
    // Provided methods
    fn p_action_identifier(&self) -> NSString { ... }
    fn p_notification(&self) -> UNNotification { ... }
    fn p_target_scene(&self) -> Option<UIScene> { ... }
}
Expand description

A trait containing all the methods for UNNotificationResponse

Provided Methods§

Source

fn p_action_identifier(&self) -> NSString

The identifier string of the action that the user selected.

Source

fn p_notification(&self) -> UNNotification

The notification to which the user responded.

Source

fn p_target_scene(&self) -> Option<UIScene>

The scene where the system reflects the user’s response to a notification.

Required features: "uikit"

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§