pub trait IUNNotificationSettings: PNSObject {
Show 14 methods
// Provided methods
fn p_authorization_status(&self) -> UNAuthorizationStatus { ... }
fn p_notification_center_setting(&self) -> UNNotificationSetting { ... }
fn p_lock_screen_setting(&self) -> UNNotificationSetting { ... }
fn p_car_play_setting(&self) -> UNNotificationSetting { ... }
fn p_alert_setting(&self) -> UNNotificationSetting { ... }
fn p_badge_setting(&self) -> UNNotificationSetting { ... }
fn p_sound_setting(&self) -> UNNotificationSetting { ... }
fn p_critical_alert_setting(&self) -> UNNotificationSetting { ... }
fn p_announcement_setting(&self) -> UNNotificationSetting { ... }
fn p_scheduled_delivery_setting(&self) -> UNNotificationSetting { ... }
fn p_time_sensitive_setting(&self) -> UNNotificationSetting { ... }
fn p_show_previews_setting(&self) -> UNShowPreviewsSetting { ... }
fn p_provides_app_notification_settings(&self) -> bool { ... }
fn p_direct_messages_setting(&self) -> UNNotificationSetting { ... }
}
Expand description
A trait containing all the methods for UNNotificationSettings
Provided Methods§
The app’s ability to schedule and receive local and remote notifications.
Sourcefn p_notification_center_setting(&self) -> UNNotificationSetting
fn p_notification_center_setting(&self) -> UNNotificationSetting
The setting that indicates whether your app’s notifications appear in Notification Center.
Sourcefn p_lock_screen_setting(&self) -> UNNotificationSetting
fn p_lock_screen_setting(&self) -> UNNotificationSetting
The setting that indicates whether your app’s notifications appear on a device’s Lock screen.
Sourcefn p_car_play_setting(&self) -> UNNotificationSetting
fn p_car_play_setting(&self) -> UNNotificationSetting
The setting that indicates whether your app’s notifications appear in CarPlay.
Sourcefn p_alert_setting(&self) -> UNNotificationSetting
fn p_alert_setting(&self) -> UNNotificationSetting
The authorization status for displaying alerts.
Sourcefn p_badge_setting(&self) -> UNNotificationSetting
fn p_badge_setting(&self) -> UNNotificationSetting
The setting that indicates whether badges appear on your app’s icon.
Sourcefn p_sound_setting(&self) -> UNNotificationSetting
fn p_sound_setting(&self) -> UNNotificationSetting
The authorization status for playing sounds for incoming notifications.
Sourcefn p_critical_alert_setting(&self) -> UNNotificationSetting
fn p_critical_alert_setting(&self) -> UNNotificationSetting
The authorization status for playing sounds for critical alerts.
Sourcefn p_announcement_setting(&self) -> UNNotificationSetting
fn p_announcement_setting(&self) -> UNNotificationSetting
The setting that indicates whether Siri can announce your app’s notifications.
Sourcefn p_scheduled_delivery_setting(&self) -> UNNotificationSetting
fn p_scheduled_delivery_setting(&self) -> UNNotificationSetting
The setting that indicates the system schedules the notification.
Sourcefn p_time_sensitive_setting(&self) -> UNNotificationSetting
fn p_time_sensitive_setting(&self) -> UNNotificationSetting
The setting that indicates the system treats the notification as time-sensitive.
Sourcefn p_show_previews_setting(&self) -> UNShowPreviewsSetting
fn p_show_previews_setting(&self) -> UNShowPreviewsSetting
The setting that indicates whether the app shows a preview of the notification’s content.
Sourcefn p_provides_app_notification_settings(&self) -> bool
fn p_provides_app_notification_settings(&self) -> bool
A Boolean value indicating the system displays a button for in-app notification settings.
Sourcefn p_direct_messages_setting(&self) -> UNNotificationSetting
fn p_direct_messages_setting(&self) -> UNNotificationSetting
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.