pub unsafe trait NSUserNotificationCenterDelegate: NSObjectProtocol {
// Provided methods
fn userNotificationCenter_didDeliverNotification(
&self,
center: &NSUserNotificationCenter,
notification: &NSUserNotification,
)
where Self: Sized + Message { ... }
fn userNotificationCenter_didActivateNotification(
&self,
center: &NSUserNotificationCenter,
notification: &NSUserNotification,
)
where Self: Sized + Message { ... }
fn userNotificationCenter_shouldPresentNotification(
&self,
center: &NSUserNotificationCenter,
notification: &NSUserNotification,
) -> bool
where Self: Sized + Message { ... }
}Available on crate feature
NSUserNotification only.Expand description
Provided Methods§
fn userNotificationCenter_didDeliverNotification( &self, center: &NSUserNotificationCenter, notification: &NSUserNotification, )
👎Deprecated:
All NSUserNotifications API should be replaced with UserNotifications.frameworks API
fn userNotificationCenter_didActivateNotification( &self, center: &NSUserNotificationCenter, notification: &NSUserNotification, )
👎Deprecated:
All NSUserNotifications API should be replaced with UserNotifications.frameworks API
fn userNotificationCenter_shouldPresentNotification( &self, center: &NSUserNotificationCenter, notification: &NSUserNotification, ) -> bool
👎Deprecated:
All NSUserNotifications API should be replaced with UserNotifications.frameworks API
Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSUserNotificationCenterDelegate
Source§impl ProtocolType for dyn NSUserNotificationCenterDelegate
impl ProtocolType for dyn NSUserNotificationCenterDelegate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".