pub enum Service {
Show 14 variants
Camera,
PhotoLibrary,
PhotoLibraryAdd,
Microphone,
Location,
Notifications,
Background,
Media,
Billing,
Overlay,
Haptics,
Update,
Network,
HeartRate,
}Expand description
Something an application uses that the device has to allow.
Variants§
Camera
The camera.
PhotoLibrary
Reading the photo library.
PhotoLibraryAdd
Writing to the photo library.
Microphone
The microphone.
Location
Where the device is.
Notifications
Notifications the person sees.
Background
Work that carries on with the application off screen.
Media
Media playback that carries on with the application off screen.
Billing
Purchases through the platform store.
Overlay
A window drawn above other applications.
Haptics
The vibrator.
Update
Handing a downloaded package to the system installer.
Network
The network, and whether the device is on one.
HeartRate
The wearer’s heart rate, from the device’s own sensor.
Implementations§
Source§impl Service
impl Service
Sourcepub const fn name(self) -> &'static str
pub const fn name(self) -> &'static str
The name this service carries in the build’s own files.
Sourcepub const fn android_permissions(self) -> &'static [&'static str]
pub const fn android_permissions(self) -> &'static [&'static str]
The Android permissions this service needs.
Both photo library services are empty here: Android reads and writes photos through the system picker, which asks the person for one file and needs no permission from the application.
Sourcepub const fn android_permissions_up_to(self) -> &'static [(&'static str, u32)]
pub const fn android_permissions_up_to(self) -> &'static [(&'static str, u32)]
The Android permissions this service needs only up to an API level,
with that level: what a platform release replaced, declared with
android:maxSdkVersion so a newer device is never asked for it.
Sourcepub const fn apple_key(self) -> Option<&'static str>
pub const fn apple_key(self) -> Option<&'static str>
The key an Apple platform reads the sentence from.
Sourcepub const fn takes_reason(self) -> bool
pub const fn takes_reason(self) -> bool
Whether this service takes a sentence to show the person.