Skip to main content

UNUserNotificationCenterDelegate

Trait UNUserNotificationCenterDelegate 

Source
pub unsafe trait UNUserNotificationCenterDelegate: NSObjectProtocol {
    // Provided methods
    fn userNotificationCenter_willPresentNotification_withCompletionHandler(
        &self,
        center: &UNUserNotificationCenter,
        notification: &UNNotification,
        completion_handler: &DynBlock<dyn Fn(UNNotificationPresentationOptions)>,
    )
       where Self: Sized + Message { ... }
    fn userNotificationCenter_didReceiveNotificationResponse_withCompletionHandler(
        &self,
        center: &UNUserNotificationCenter,
        response: &UNNotificationResponse,
        completion_handler: &DynBlock<dyn Fn()>,
    )
       where Self: Sized + Message { ... }
    fn userNotificationCenter_openSettingsForNotification(
        &self,
        center: &UNUserNotificationCenter,
        notification: Option<&UNNotification>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UNUserNotificationCenter only.
Expand description

Provided Methods§

Source

fn userNotificationCenter_willPresentNotification_withCompletionHandler( &self, center: &UNUserNotificationCenter, notification: &UNNotification, completion_handler: &DynBlock<dyn Fn(UNNotificationPresentationOptions)>, )
where Self: Sized + Message,

Available on crate features block2 and UNNotification only.
Source

fn userNotificationCenter_didReceiveNotificationResponse_withCompletionHandler( &self, center: &UNUserNotificationCenter, response: &UNNotificationResponse, completion_handler: &DynBlock<dyn Fn()>, )
where Self: Sized + Message,

Available on crate features block2 and UNNotificationResponse only.
Source

fn userNotificationCenter_openSettingsForNotification( &self, center: &UNUserNotificationCenter, notification: Option<&UNNotification>, )
where Self: Sized + Message,

Available on crate feature UNNotification only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UNUserNotificationCenterDelegate

Source§

impl ProtocolType for dyn UNUserNotificationCenterDelegate

Source§

const NAME: &'static str = "UNUserNotificationCenterDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UNUserNotificationCenterDelegate for ProtocolObject<T>

Implementors§