pub trait IUNNotificationCategory: PNSObject {
// Provided methods
fn m_category_with_identifier_actions_intent_identifiers_options(
identifier: NSString,
actions: NSArray<UNNotificationAction>,
intent_identifiers: NSArray<NSString>,
options: &[UNNotificationCategoryOptions],
) -> Self
where Self: Sized + FromId { ... }
fn m_category_with_identifier_actions_intent_identifiers_hidden_previews_body_placeholder_options(
identifier: NSString,
actions: NSArray<UNNotificationAction>,
intent_identifiers: NSArray<NSString>,
hidden_previews_body_placeholder: Option<NSString>,
options: &[UNNotificationCategoryOptions],
) -> Self
where Self: Sized + FromId { ... }
fn p_identifier(&self) -> NSString { ... }
fn p_actions(&self) -> NSArray<UNNotificationAction> { ... }
fn p_intent_identifiers(&self) -> NSArray<NSString> { ... }
fn p_hidden_previews_body_placeholder(&self) -> NSString { ... }
fn p_category_summary_format(&self) -> NSString { ... }
fn p_options(&self) -> UNNotificationCategoryOptions { ... }
}
Expand description
A trait containing all the methods for UNNotificationCategory
Provided Methods§
Sourcefn m_category_with_identifier_actions_intent_identifiers_options(
identifier: NSString,
actions: NSArray<UNNotificationAction>,
intent_identifiers: NSArray<NSString>,
options: &[UNNotificationCategoryOptions],
) -> Self
fn m_category_with_identifier_actions_intent_identifiers_options( identifier: NSString, actions: NSArray<UNNotificationAction>, intent_identifiers: NSArray<NSString>, options: &[UNNotificationCategoryOptions], ) -> Self
Creates a category object containing the specified actions and options.
Creates a category object containing the specified actions, options, and placeholder text used when previews aren’t shown.
Sourcefn p_identifier(&self) -> NSString
fn p_identifier(&self) -> NSString
The unique string assigned to the category.
Sourcefn p_actions(&self) -> NSArray<UNNotificationAction>
fn p_actions(&self) -> NSArray<UNNotificationAction>
The actions to display when the system delivers notifications of this type.
Sourcefn p_intent_identifiers(&self) -> NSArray<NSString>
fn p_intent_identifiers(&self) -> NSArray<NSString>
The intents related to notifications of this category.
The placeholder text to display when the system disables notification previews for the app.
Sourcefn p_category_summary_format(&self) -> NSString
fn p_category_summary_format(&self) -> NSString
A format string for the summary description used when the system groups the category’s notifications.
Sourcefn p_options(&self) -> UNNotificationCategoryOptions
fn p_options(&self) -> UNNotificationCategoryOptions
Options for how to handle notifications of this type.
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.