pub struct Use { /* private fields */ }Expand description
One service an application uses, with the sentence it shows if it needs one.
Implementations§
Source§impl Use
impl Use
Sourcepub const fn camera(reason: &'static str) -> Self
pub const fn camera(reason: &'static str) -> Self
The camera, with what the person is told before it opens.
Sourcepub const fn photo_library(reason: &'static str) -> Self
pub const fn photo_library(reason: &'static str) -> Self
Reading the photo library, with what the person is told.
Sourcepub const fn photo_library_add(reason: &'static str) -> Self
pub const fn photo_library_add(reason: &'static str) -> Self
Writing to the photo library, with what the person is told.
Sourcepub const fn microphone(reason: &'static str) -> Self
pub const fn microphone(reason: &'static str) -> Self
The microphone, with what the person is told.
Sourcepub const fn location(reason: &'static str) -> Self
pub const fn location(reason: &'static str) -> Self
Where the device is, with what the person is told.
Sourcepub const fn notifications() -> Self
pub const fn notifications() -> Self
Notifications the person sees.
Sourcepub const fn background() -> Self
pub const fn background() -> Self
Work that carries on with the application off screen.
Sourcepub const fn microphone_standby() -> Self
pub const fn microphone_standby() -> Self
Recording that can start from the background; see
cranpose_services::hold_microphone_standby.
Sourcepub const fn wearable() -> Self
pub const fn wearable() -> Self
Messages and streams to the same application on the paired phone or
watch; see cranpose_services::wearable.
Sourcepub const fn heart_rate(reason: &'static str) -> Self
pub const fn heart_rate(reason: &'static str) -> Self
The wearer’s heart rate, with what the person is told before the sensor is read. Declaring it is the only way an application’s build asks for the permission; reading it still takes an explicit request at run time.