#[repr(C)]pub struct UNNotificationSettings {
pub ptr: Id<Object>,
}
Expand description
The object for managing notification-related settings and the authorization status of your app.
Fields§
§ptr: Id<Object>
The raw pointer to the Objective-C object.
Implementations§
Source§impl UNNotificationSettings
impl UNNotificationSettings
The app’s ability to schedule and receive local and remote notifications.
Sourcepub fn notification_center_setting(&self) -> UNNotificationSetting
pub fn notification_center_setting(&self) -> UNNotificationSetting
The setting that indicates whether your app’s notifications appear in Notification Center.
Sourcepub fn lock_screen_setting(&self) -> UNNotificationSetting
pub fn lock_screen_setting(&self) -> UNNotificationSetting
The setting that indicates whether your app’s notifications appear on a device’s Lock screen.
Sourcepub fn car_play_setting(&self) -> UNNotificationSetting
pub fn car_play_setting(&self) -> UNNotificationSetting
The setting that indicates whether your app’s notifications appear in CarPlay.
Sourcepub fn alert_setting(&self) -> UNNotificationSetting
pub fn alert_setting(&self) -> UNNotificationSetting
The authorization status for displaying alerts.
Sourcepub fn badge_setting(&self) -> UNNotificationSetting
pub fn badge_setting(&self) -> UNNotificationSetting
The setting that indicates whether badges appear on your app’s icon.
Sourcepub fn sound_setting(&self) -> UNNotificationSetting
pub fn sound_setting(&self) -> UNNotificationSetting
The authorization status for playing sounds for incoming notifications.
Sourcepub fn critical_alert_setting(&self) -> UNNotificationSetting
pub fn critical_alert_setting(&self) -> UNNotificationSetting
The authorization status for playing sounds for critical alerts.
Sourcepub fn announcement_setting(&self) -> UNNotificationSetting
pub fn announcement_setting(&self) -> UNNotificationSetting
The setting that indicates whether Siri can announce your app’s notifications.
Sourcepub fn scheduled_delivery_setting(&self) -> UNNotificationSetting
pub fn scheduled_delivery_setting(&self) -> UNNotificationSetting
The setting that indicates the system schedules the notification.
Sourcepub fn time_sensitive_setting(&self) -> UNNotificationSetting
pub fn time_sensitive_setting(&self) -> UNNotificationSetting
The setting that indicates the system treats the notification as time-sensitive.
Sourcepub fn show_previews_setting(&self) -> UNShowPreviewsSetting
pub fn show_previews_setting(&self) -> UNShowPreviewsSetting
The setting that indicates whether the app shows a preview of the notification’s content.
Sourcepub fn provides_app_notification_settings(&self) -> bool
pub fn provides_app_notification_settings(&self) -> bool
A Boolean value indicating the system displays a button for in-app notification settings.
Sourcepub fn direct_messages_setting(&self) -> UNNotificationSetting
pub fn direct_messages_setting(&self) -> UNNotificationSetting
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
.