#[repr(C)]pub struct UNNotificationCategory {
pub ptr: Id<Object>,
}
Expand description
A type of notification your app supports and the custom actions that the system displays.
Fields§
§ptr: Id<Object>
The raw pointer to the Objective-C object.
Implementations§
Source§impl UNNotificationCategory
impl UNNotificationCategory
Sourcepub fn category_with_identifier_actions_intent_identifiers_options(
identifier: NSString,
actions: NSArray<UNNotificationAction>,
intent_identifiers: NSArray<NSString>,
options: &[UNNotificationCategoryOptions],
) -> Self
pub fn 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.
Sourcepub fn identifier(&self) -> NSString
pub fn identifier(&self) -> NSString
The unique string assigned to the category.
Sourcepub fn actions(&self) -> NSArray<UNNotificationAction>
pub fn actions(&self) -> NSArray<UNNotificationAction>
The actions to display when the system delivers notifications of this type.
Sourcepub fn intent_identifiers(&self) -> NSArray<NSString>
pub fn 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.
Sourcepub fn category_summary_format(&self) -> NSString
pub fn category_summary_format(&self) -> NSString
A format string for the summary description used when the system groups the category’s notifications.
Sourcepub fn options(&self) -> UNNotificationCategoryOptions
pub fn options(&self) -> UNNotificationCategoryOptions
Options for how to handle notifications of this type.
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
.