#[repr(C)]pub struct UNMutableNotificationContent {
pub ptr: Id<Object>,
}
Expand description
The editable content for a notification.
Fields§
§ptr: Id<Object>
The raw pointer to the Objective-C object.
Implementations§
Source§impl UNMutableNotificationContent
impl UNMutableNotificationContent
Sourcepub fn set_title(&mut self, title: NSString)
pub fn set_title(&mut self, title: NSString)
The localized text that provides the notification’s primary description.
Sourcepub fn set_subtitle(&mut self, subtitle: NSString)
pub fn set_subtitle(&mut self, subtitle: NSString)
The localized text that provides the notification’s secondary description.
Sourcepub fn set_body(&mut self, body: NSString)
pub fn set_body(&mut self, body: NSString)
The localized text that provides the notification’s main content.
Sourcepub fn set_attachments(
&mut self,
attachments: NSArray<UNNotificationAttachment>,
)
pub fn set_attachments( &mut self, attachments: NSArray<UNNotificationAttachment>, )
The visual and audio attachments to display alongside the notification’s main content.
Sourcepub fn set_user_info(&mut self, user_info: NSDictionary<id, id>)
pub fn set_user_info(&mut self, user_info: NSDictionary<id, id>)
The custom data to associate with the notification.
Sourcepub fn set_launch_image_name(&mut self, value: NSString)
pub fn set_launch_image_name(&mut self, value: NSString)
The name of the image or storyboard to use when your app launches because of the notification.
Sourcepub fn set_target_content_identifier(&mut self, value: NSString)
pub fn set_target_content_identifier(&mut self, value: NSString)
The value your app uses to determine which scene to display to handle the notification.
Sourcepub fn set_sound(&mut self, value: UNNotificationSound)
pub fn set_sound(&mut self, value: UNNotificationSound)
The sound that plays when the system delivers the notification.
Sourcepub fn set_interruption_level(&mut self, value: UNNotificationInterruptionLevel)
pub fn set_interruption_level(&mut self, value: UNNotificationInterruptionLevel)
The notification’s importance and required delivery timing.
Sourcepub fn set_relevance_score(&mut self, value: c_double)
pub fn set_relevance_score(&mut self, value: c_double)
The score the system uses to determine if the notification is the summary’s featured notification.
Sourcepub fn set_filter_criteria(&mut self, value: NSString)
pub fn set_filter_criteria(&mut self, value: NSString)
The criteria the system evaluates to determine if it displays the notification in the current Focus.
Sourcepub fn set_thread_identifier(&mut self, value: NSString)
pub fn set_thread_identifier(&mut self, value: NSString)
The identifier that groups related notifications.
Sourcepub fn set_category_identifier(&mut self, value: NSString)
pub fn set_category_identifier(&mut self, value: NSString)
The identifier of the notification’s category.
Sourcepub fn set_summary_argument(&mut self, value: NSString)
pub fn set_summary_argument(&mut self, value: NSString)
The text the system adds to the notification summary to provide additional context.
Sourcepub fn set_summary_argument_count(&mut self, value: UInt)
pub fn set_summary_argument_count(&mut self, value: UInt)
The number the system adds to the notification summary when the notification represents multiple items.
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
.