Trait PUNUserNotificationCenterDelegate

Source
pub trait PUNUserNotificationCenterDelegate: PNSObject {
    // Provided methods
    fn user_notification_center_did_receive_notification_response_with_completion_handler<F>(
        &mut self,
        center: &UNUserNotificationCenter,
        response: &UNNotificationResponse,
        completion_handler: F,
    )
       where F: IntoConcreteBlock<(), Ret = ()> + 'static { ... }
    fn user_notification_center_will_present_notification_with_completion_handler<F>(
        &mut self,
        center: &UNUserNotificationCenter,
        notification: &UNNotification,
        completion_handler: F,
    )
       where F: IntoConcreteBlock<(UNNotificationPresentationOptions,), Ret = ()> + 'static { ... }
    fn user_notification_center_open_settings_for_notification(
        &mut self,
        center: &UNUserNotificationCenter,
        notification: &UNNotification,
    ) { ... }
}
Expand description

An interface for processing incoming notifications and responding to notification actions.

Provided Methods§

Source

fn user_notification_center_did_receive_notification_response_with_completion_handler<F>( &mut self, center: &UNUserNotificationCenter, response: &UNNotificationResponse, completion_handler: F, )
where F: IntoConcreteBlock<(), Ret = ()> + 'static,

Asks the delegate to process the user’s response to a delivered notification.

Source

fn user_notification_center_will_present_notification_with_completion_handler<F>( &mut self, center: &UNUserNotificationCenter, notification: &UNNotification, completion_handler: F, )

Asks the delegate how to handle a notification that arrived while the app was running in the foreground.

Source

fn user_notification_center_open_settings_for_notification( &mut self, center: &UNUserNotificationCenter, notification: &UNNotification, )

Asks the delegate to display the in-app notification settings.

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§