pub trait IUNMutableNotificationContent: IUNNotificationContent {
Show 16 methods
// Provided methods
fn p_set_title(&mut self, title: NSString) { ... }
fn p_set_subtitle(&mut self, subtitle: NSString) { ... }
fn p_set_body(&mut self, body: NSString) { ... }
fn p_set_attachments(
&mut self,
attachments: NSArray<UNNotificationAttachment>,
) { ... }
fn p_set_user_info(&mut self, user_info: NSDictionary<id, id>) { ... }
fn p_set_launch_image_name(&mut self, value: NSString) { ... }
fn p_set_badge(&mut self, badge: NSNumber) { ... }
fn p_set_target_content_identifier(&mut self, value: NSString) { ... }
fn p_set_sound(&mut self, value: UNNotificationSound) { ... }
fn p_set_interruption_level(
&mut self,
value: UNNotificationInterruptionLevel,
) { ... }
fn p_set_relevance_score(&mut self, value: c_double) { ... }
fn p_set_filter_criteria(&mut self, value: NSString) { ... }
fn p_set_thread_identifier(&mut self, value: NSString) { ... }
fn p_set_category_identifier(&mut self, value: NSString) { ... }
fn p_set_summary_argument(&mut self, value: NSString) { ... }
fn p_set_summary_argument_count(&mut self, value: UInt) { ... }
}
Expand description
A trait containing all the methods for UNMutableNotificationContent
Provided Methods§
Sourcefn p_set_title(&mut self, title: NSString)
fn p_set_title(&mut self, title: NSString)
The localized text that provides the notification’s primary description.
Sourcefn p_set_subtitle(&mut self, subtitle: NSString)
fn p_set_subtitle(&mut self, subtitle: NSString)
The localized text that provides the notification’s secondary description.
Sourcefn p_set_body(&mut self, body: NSString)
fn p_set_body(&mut self, body: NSString)
The localized text that provides the notification’s main content.
Sourcefn p_set_attachments(&mut self, attachments: NSArray<UNNotificationAttachment>)
fn p_set_attachments(&mut self, attachments: NSArray<UNNotificationAttachment>)
The visual and audio attachments to display alongside the notification’s main content.
Sourcefn p_set_user_info(&mut self, user_info: NSDictionary<id, id>)
fn p_set_user_info(&mut self, user_info: NSDictionary<id, id>)
The custom data to associate with the notification.
Sourcefn p_set_launch_image_name(&mut self, value: NSString)
fn p_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.
Sourcefn p_set_badge(&mut self, badge: NSNumber)
fn p_set_badge(&mut self, badge: NSNumber)
The number that your app’s icon displays.
Sourcefn p_set_target_content_identifier(&mut self, value: NSString)
fn p_set_target_content_identifier(&mut self, value: NSString)
The value your app uses to determine which scene to display to handle the notification.
Sourcefn p_set_sound(&mut self, value: UNNotificationSound)
fn p_set_sound(&mut self, value: UNNotificationSound)
The sound that plays when the system delivers the notification.
Sourcefn p_set_interruption_level(&mut self, value: UNNotificationInterruptionLevel)
fn p_set_interruption_level(&mut self, value: UNNotificationInterruptionLevel)
The notification’s importance and required delivery timing.
Sourcefn p_set_relevance_score(&mut self, value: c_double)
fn p_set_relevance_score(&mut self, value: c_double)
The score the system uses to determine if the notification is the summary’s featured notification.
Sourcefn p_set_filter_criteria(&mut self, value: NSString)
fn p_set_filter_criteria(&mut self, value: NSString)
The criteria the system evaluates to determine if it displays the notification in the current Focus.
Sourcefn p_set_thread_identifier(&mut self, value: NSString)
fn p_set_thread_identifier(&mut self, value: NSString)
The identifier that groups related notifications.
Sourcefn p_set_category_identifier(&mut self, value: NSString)
fn p_set_category_identifier(&mut self, value: NSString)
The identifier of the notification’s category.
Sourcefn p_set_summary_argument(&mut self, value: NSString)
fn p_set_summary_argument(&mut self, value: NSString)
The text the system adds to the notification summary to provide additional context.
Sourcefn p_set_summary_argument_count(&mut self, value: UInt)
fn p_set_summary_argument_count(&mut self, value: UInt)
The number the system adds to the notification summary when the notification represents multiple items.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.