#[repr(C)]pub struct UNNotificationRequest {
pub ptr: Id<Object>,
}
Expand description
A request to schedule a local notification, which includes the content of the notification and the trigger conditions for delivery.
Fields§
§ptr: Id<Object>
The raw pointer to the Objective-C object.
Implementations§
Source§impl UNNotificationRequest
impl UNNotificationRequest
Sourcepub fn request_with_identifier_content_trigger(
identifier: &NSString,
content: &UNNotificationContent,
trigger: &UNNotificationTrigger,
) -> Self
pub fn request_with_identifier_content_trigger( identifier: &NSString, content: &UNNotificationContent, trigger: &UNNotificationTrigger, ) -> Self
Creates a notification request object that you use to schedule a notification.
Sourcepub fn identifier(&self) -> NSString
pub fn identifier(&self) -> NSString
The unique identifier for this notification request.
Sourcepub fn content(&self) -> UNNotificationContent
pub fn content(&self) -> UNNotificationContent
The content associated with the notification.
Sourcepub fn trigger(&self) -> Option<UNNotificationTrigger>
pub fn trigger(&self) -> Option<UNNotificationTrigger>
The conditions that trigger the delivery of the notification.
Methods from Deref<Target = Object>§
Sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Returns a reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T
.
Sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Returns a mutable reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T
.