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

Provided Methods§

source

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

Available on crate features UNNotification and block2 only.
source

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

Available on crate features UNNotificationResponse and block2 only.
source

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

Available on crate feature UNNotification only.

Trait Implementations§

source§

impl ProtocolType for dyn UNUserNotificationCenterDelegate

source§

const NAME: &'static str = "UNUserNotificationCenterDelegate"

The name of the Objective-C protocol that this type represents.
source§

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

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

impl<T> ImplementedBy<T> for dyn UNUserNotificationCenterDelegate

Implementations on Foreign Types§

source§

impl<T> UNUserNotificationCenterDelegate for ProtocolObject<T>

Implementors§