Trait IUNNotificationCategory

Source
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§

Source

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,

Creates a category object containing the specified actions and options.

Source

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,

Creates a category object containing the specified actions, options, and placeholder text used when previews aren’t shown.

Source

fn p_identifier(&self) -> NSString

The unique string assigned to the category.

Source

fn p_actions(&self) -> NSArray<UNNotificationAction>

The actions to display when the system delivers notifications of this type.

Source

fn p_intent_identifiers(&self) -> NSArray<NSString>

The intents related to notifications of this category.

Source

fn p_hidden_previews_body_placeholder(&self) -> NSString

The placeholder text to display when the system disables notification previews for the app.

Source

fn p_category_summary_format(&self) -> NSString

A format string for the summary description used when the system groups the category’s notifications.

Source

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.

Implementors§