#[repr(u64)]pub enum UNNotificationPresentationOptions {
None = 0,
Badge = 1,
Sound = 2,
Alert = 4,
List = 8,
Banner = 16,
}
Expand description
Constants indicating how to present a notification in a foreground app.
Variants§
None = 0
Badge = 1
Apply the notification’s badge value to the app’s icon.
Sound = 2
Play the sound associated with the notification.
Alert = 4
👎Deprecated: Use ‘List | Banner’ instead.
Display the alert using the content provided by the notification.
List = 8
Show the notification in Notification Center.
Banner = 16
Present the notification as a banner.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UNNotificationPresentationOptions
impl RefUnwindSafe for UNNotificationPresentationOptions
impl Send for UNNotificationPresentationOptions
impl Sync for UNNotificationPresentationOptions
impl Unpin for UNNotificationPresentationOptions
impl UnwindSafe for UNNotificationPresentationOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more