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§
unsafe fn userNotificationCenter_willPresentNotification_withCompletionHandler( &self, center: &UNUserNotificationCenter, notification: &UNNotification, completion_handler: &Block<dyn Fn(UNNotificationPresentationOptions)> )
Available on crate features
UNNotification
and block2
only.unsafe fn userNotificationCenter_didReceiveNotificationResponse_withCompletionHandler( &self, center: &UNUserNotificationCenter, response: &UNNotificationResponse, completion_handler: &Block<dyn Fn()> )
Available on crate features
UNNotificationResponse
and block2
only.unsafe fn userNotificationCenter_openSettingsForNotification( &self, center: &UNUserNotificationCenter, notification: Option<&UNNotification> )
Available on crate feature
UNNotification
only.