#[repr(u64)]pub enum UNAuthorizationOptions {
None = 0,
Badge = 1,
Sound = 2,
Alert = 4,
CarPlay = 8,
TimeSensitive = 256,
}
Expand description
Options that determine the authorized features of local and remote notifications.
Variants§
None = 0
No authorization options.
Badge = 1
The ability to update the app’s badge.
Sound = 2
The ability to play sounds.
Alert = 4
The ability to display alerts.
CarPlay = 8
The ability to display notifications in a CarPlay environment.
TimeSensitive = 256
👎Deprecated
Trait Implementations§
Source§impl Clone for UNAuthorizationOptions
impl Clone for UNAuthorizationOptions
Source§fn clone(&self) -> UNAuthorizationOptions
fn clone(&self) -> UNAuthorizationOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UNAuthorizationOptions
impl Debug for UNAuthorizationOptions
Source§impl Ord for UNAuthorizationOptions
impl Ord for UNAuthorizationOptions
Source§fn cmp(&self, other: &UNAuthorizationOptions) -> Ordering
fn cmp(&self, other: &UNAuthorizationOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UNAuthorizationOptions
impl PartialEq for UNAuthorizationOptions
Source§impl PartialOrd for UNAuthorizationOptions
impl PartialOrd for UNAuthorizationOptions
impl Copy for UNAuthorizationOptions
impl Eq for UNAuthorizationOptions
impl StructuralPartialEq for UNAuthorizationOptions
Auto Trait Implementations§
impl Freeze for UNAuthorizationOptions
impl RefUnwindSafe for UNAuthorizationOptions
impl Send for UNAuthorizationOptions
impl Sync for UNAuthorizationOptions
impl Unpin for UNAuthorizationOptions
impl UnwindSafe for UNAuthorizationOptions
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