1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//! Process services: what an app borrows from its process.
//!
//! The toolkit reads the clock, runs background work, reaches the clipboard,
//! file choosers, URI handlers, speech, notifications, media controls,
//! location and screen capture only through this crate. Each capability is a
//! trait in [`process`] with a request/outcome vocabulary beside it
//! ([`portal`], [`mpris`], [`location`], [`capture`], [`clipboard`]), so the
//! same toolkit runs under the native desktop runner, inside an app process
//! such as the compositor's, or in a test that records every effect.
//!
//! The user-mediated services' traits and their Linux, macOS and web backends
//! live in platform crates (`tilo-clipboard`, `tilo-dialogs`, …), which this
//! crate re-exports; [`process::ProcessServices`] is the per-app registry of them.
//! The remaining native backends (media sessions and screen capture) live in
//! [`native`] behind the `native` feature. Location is the device's own: a
//! process asks the device's action (`devices/<device>/location#locate`) and
//! never the platform's location service, which stays in the device's daemon.
//!
//! Apps do not depend on this crate: `tilo-ui` re-exports every module here
//! under the same path (`ui::portal`, `ui::process`, `ui::time`, …), and
//! `tilo-app` turns every service on by default.
/// Network hints shared with the app-facing SDK. Process transport integration only.
pub use status as network_status;
/// The toolkit's debug, capture and benchmark knobs: `tilo_process::env`.
pub use env;
/// User notifications: `tilo_notify` under the toolkit's module path.
/// App-scoped secrets: `tilo_secrets` under the toolkit's module path.
/// File choosers and URI opening: `tilo_dialogs::portal` under the
/// toolkit's module path.
pub use portal;
/// The choosers the session shell draws itself (`tilo_dialogs::shell`), and
/// the connection to it every app launched into a workspace is handed.
pub use shell as shell_choosers;
// Android's Storage Access Framework chooser (the Android build).