Skip to main content

Module location

Module location 

Source
Expand description

Location, as an app’s process holds it: the device’s answer, which the host asks through the device’s own action (devices/<device>/location#locate) and installs here.

The platform’s location service belongs to the device, not to an app: a sandboxed process speaks to no D-Bus and reaches no portal. A host that can ask the device installs a LocationProvider with crate::process::ProcessServices::with_location; without one the process answers that location is not available here, never a made-up position.

Enums§

LocationOutcome
What one request for the device’s position answered.

Traits§

LocationProvider
Where the device’s position comes from in this process: the host’s provider, or nothing.

Functions§

request_location
Ask the current process’s location service for a fix.
unavailable
A provider that answers nothing: a process its host gave no way to reach the device’s location.

Type Aliases§

LocationChannel
The answer a request for a fix arrives on.