#[repr(transparent)]pub struct ATTrackingManagerAuthorizationStatus(pub NSUInteger);
Expand description
The status values for app tracking authorization.
After a device receives an authorization request to approve access to app-related data that can be used for tracking the user or the device, the returned value is either:
AppTrackingTransparency/ATTrackingManager/AuthorizationStatus/authorized
, orAppTrackingTransparency/ATTrackingManager/AuthorizationStatus/denied
.
Before a device receives an authorization request to approve access to app-related
data that can be used for tracking the user or the device, the returned value is:
AppTrackingTransparency/ATTrackingManager/AuthorizationStatus/notDetermined
.
If authorization to use app tracking data is restricted, the value is: AppTrackingTransparency/ATTrackingManager/AuthorizationStatus/restricted
.
See also Apple’s documentation
Tuple Fields§
§0: NSUInteger
Implementations§
Source§impl ATTrackingManagerAuthorizationStatus
impl ATTrackingManagerAuthorizationStatus
Sourcepub const NotDetermined: Self
pub const NotDetermined: Self
The value that returns when the app can’t determine the user’s authorization status for access to app-related data for tracking the user or the device.
- Note: If you call
ATTrackingManager.trackingAuthorizationStatus
in macOS, the result is alwaysATTrackingManager.AuthorizationStatus.notDetermined
.
Sourcepub const Restricted: Self
pub const Restricted: Self
The value that returns if authorization to access app-related data for tracking the user or the device has a restricted status.
A restricted condition means the device does not prompt for tracking
authorization when
ATTrackingManager/requestTrackingAuthorizationWithCompletionHandler:
is called, nor is it displayed when the
<doc
://com.apple.documentation/documentation/bundleresources/information_property_list/NSUserTrackingUsageDescription>
is triggered. Also, on restricted devices, the Allow Apps To Request To
Track setting is disabled and cannot be changed. This setting allows
users to opt in or out of allowing apps to request user consent to
access app-related data that can be used for tracking the user or the
device.
Sourcepub const Denied: Self
pub const Denied: Self
The value that returns if the user denies authorization to access app-related data for tracking the user or the device.
The end user has denied the authorization request to access app-related data that can be used for tracking the user or the device.
Sourcepub const Authorized: Self
pub const Authorized: Self
The value that returns if the user authorizes access to app-related data for tracking the user or the device.
This setting allows users to opt in or out of allowing apps to request user consent to access app-related data for tracking the user or the device. End users can revoke permission at any time through the Allow Apps to Request to Track privacy setting on the device.
Trait Implementations§
Source§impl Clone for ATTrackingManagerAuthorizationStatus
impl Clone for ATTrackingManagerAuthorizationStatus
Source§fn clone(&self) -> ATTrackingManagerAuthorizationStatus
fn clone(&self) -> ATTrackingManagerAuthorizationStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Ord for ATTrackingManagerAuthorizationStatus
impl Ord for ATTrackingManagerAuthorizationStatus
Source§fn cmp(&self, other: &ATTrackingManagerAuthorizationStatus) -> Ordering
fn cmp(&self, other: &ATTrackingManagerAuthorizationStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ATTrackingManagerAuthorizationStatus
impl PartialEq for ATTrackingManagerAuthorizationStatus
Source§fn eq(&self, other: &ATTrackingManagerAuthorizationStatus) -> bool
fn eq(&self, other: &ATTrackingManagerAuthorizationStatus) -> bool
self
and other
values to be equal, and is used by ==
.