pub enum PrivacyService {
Show 13 variants
All,
Calendar,
ContactsLimited,
Contacts,
Location,
LocationAlways,
PhotosAdd,
Photos,
MediaLibrary,
Microphone,
Motion,
Reminders,
Siri,
}Expand description
Refers to a specific service that an app needs to have permission for to access.
Variants§
All
Wildcard that includes all services.
Calendar
Grants access to a user’s calendar.
ContactsLimited
Grants limited access to a user’s contacts.
Contacts
Grants access to a user’s contacts.
Location
Grants access to a user’s location when an app is active.
LocationAlways
Grants access to a user’s location even if the app is in background.
PhotosAdd
Grants access to adding photos to the user’s photo library.
Photos
Grants access to reading photos from the user’s photo library.
MediaLibrary
Grants access to the user’s media library (i.e. music and videos).
Microphone
Grants access to the user’s microphone (which will most likely be the microphone of the Mac that the simulator runs on).
Motion
Grants access to the user’s motion sensors.
Reminders
Grants access to the user’s reminders.
Siri
Grants access to Siri.
Trait Implementations§
Source§impl Clone for PrivacyService
impl Clone for PrivacyService
Source§fn clone(&self) -> PrivacyService
fn clone(&self) -> PrivacyService
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more