Trait NSUserNotificationCenterDelegate

Source
pub unsafe trait NSUserNotificationCenterDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn userNotificationCenter_didDeliverNotification(
        &self,
        center: &NSUserNotificationCenter,
        notification: &NSUserNotification,
    )
       where Self: Sized + Message { ... }
    unsafe fn userNotificationCenter_didActivateNotification(
        &self,
        center: &NSUserNotificationCenter,
        notification: &NSUserNotification,
    )
       where Self: Sized + Message { ... }
    unsafe fn userNotificationCenter_shouldPresentNotification(
        &self,
        center: &NSUserNotificationCenter,
        notification: &NSUserNotification,
    ) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature NSUserNotification only.
Expand description

Provided Methods§

Source

unsafe fn userNotificationCenter_didDeliverNotification( &self, center: &NSUserNotificationCenter, notification: &NSUserNotification, )
where Self: Sized + Message,

👎Deprecated: All NSUserNotifications API should be replaced with UserNotifications.frameworks API
Source

unsafe fn userNotificationCenter_didActivateNotification( &self, center: &NSUserNotificationCenter, notification: &NSUserNotification, )
where Self: Sized + Message,

👎Deprecated: All NSUserNotifications API should be replaced with UserNotifications.frameworks API
Source

unsafe fn userNotificationCenter_shouldPresentNotification( &self, center: &NSUserNotificationCenter, notification: &NSUserNotification, ) -> bool
where Self: Sized + Message,

👎Deprecated: All NSUserNotifications API should be replaced with UserNotifications.frameworks API

Trait Implementations§

Source§

impl ProtocolType for dyn NSUserNotificationCenterDelegate

Source§

const NAME: &'static str = "NSUserNotificationCenterDelegate"

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 NSUserNotificationCenterDelegate

Implementations on Foreign Types§

Source§

impl<T> NSUserNotificationCenterDelegate for ProtocolObject<T>

Implementors§