UNUserNotificationCenterDelegate

Trait UNUserNotificationCenterDelegate 

Source
pub unsafe trait UNUserNotificationCenterDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn userNotificationCenter_willPresentNotification_withCompletionHandler(
        &self,
        center: &UNUserNotificationCenter,
        notification: &UNNotification,
        completion_handler: &DynBlock<dyn Fn(UNNotificationPresentationOptions)>,
    )
       where Self: Sized + Message { ... }
    unsafe fn userNotificationCenter_didReceiveNotificationResponse_withCompletionHandler(
        &self,
        center: &UNUserNotificationCenter,
        response: &UNNotificationResponse,
        completion_handler: &DynBlock<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.
Expand description

Provided Methods§

Source

unsafe fn userNotificationCenter_willPresentNotification_withCompletionHandler( &self, center: &UNUserNotificationCenter, notification: &UNNotification, completion_handler: &DynBlock<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: &DynBlock<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. Read more
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§