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§
fn userNotificationCenter_willPresentNotification_withCompletionHandler( &self, center: &UNUserNotificationCenter, notification: &UNNotification, completion_handler: &DynBlock<dyn Fn(UNNotificationPresentationOptions)>, )
Available on crate features
block2 and UNNotification only.fn userNotificationCenter_didReceiveNotificationResponse_withCompletionHandler( &self, center: &UNUserNotificationCenter, response: &UNNotificationResponse, completion_handler: &DynBlock<dyn Fn()>, )
Available on crate features
block2 and UNNotificationResponse only.fn userNotificationCenter_openSettingsForNotification( &self, center: &UNUserNotificationCenter, notification: Option<&UNNotification>, )
Available on crate feature
UNNotification only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn UNUserNotificationCenterDelegate
Source§impl ProtocolType for dyn UNUserNotificationCenterDelegate
impl ProtocolType for dyn UNUserNotificationCenterDelegate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".