Trait IUNNotificationSettings

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

Source

fn p_authorization_status(&self) -> UNAuthorizationStatus

The app’s ability to schedule and receive local and remote notifications.

Source

fn p_notification_center_setting(&self) -> UNNotificationSetting

The setting that indicates whether your app’s notifications appear in Notification Center.

Source

fn p_lock_screen_setting(&self) -> UNNotificationSetting

The setting that indicates whether your app’s notifications appear on a device’s Lock screen.

Source

fn p_car_play_setting(&self) -> UNNotificationSetting

The setting that indicates whether your app’s notifications appear in CarPlay.

Source

fn p_alert_setting(&self) -> UNNotificationSetting

The authorization status for displaying alerts.

Source

fn p_badge_setting(&self) -> UNNotificationSetting

The setting that indicates whether badges appear on your app’s icon.

Source

fn p_sound_setting(&self) -> UNNotificationSetting

The authorization status for playing sounds for incoming notifications.

Source

fn p_critical_alert_setting(&self) -> UNNotificationSetting

The authorization status for playing sounds for critical alerts.

Source

fn p_announcement_setting(&self) -> UNNotificationSetting

The setting that indicates whether Siri can announce your app’s notifications.

Source

fn p_scheduled_delivery_setting(&self) -> UNNotificationSetting

The setting that indicates the system schedules the notification.

Source

fn p_time_sensitive_setting(&self) -> UNNotificationSetting

The setting that indicates the system treats the notification as time-sensitive.

Source

fn p_show_previews_setting(&self) -> UNShowPreviewsSetting

The setting that indicates whether the app shows a preview of the notification’s content.

Source

fn p_provides_app_notification_settings(&self) -> bool

A Boolean value indicating the system displays a button for in-app notification settings.

Source

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.

Implementors§