Skip to main content

Module location

Module location 

Expand description

Device location, as the host provides it: tilo_location under the toolkit’s module path.

Apps ask crate::host::HostServices::location (or request_location) for a fix and drain the returned channel once per frame; the UI thread never blocks.

Enums§

Availability
Whether a feature can be used on a target.
Feature
One capability of this crate, for availability and Unsupported.
LocationOutcome
The result of a location request, delivered back to the UI thread over a channel.

Traits§

LocationProvider
Host-provided device location.

Functions§

availability
Whether feature can be used on this target.
available
Whether feature can be used on this target without a prompt.
install_resolver
Install how request_location finds the current host’s provider. The first call wins; ui::host installs one that resolves through its scoped HostServices. Without one, requests answer LocationOutcome::Unavailable.
request_location
Ask the current host for the device’s location.
system
This target’s location provider.
unavailable
A provider that never locates, for hosts that offer none.

Type Aliases§

LocationChannel
A pending location request: the receiver the UI thread drains each frame.
Unsupported
A feature this target, or this particular host, cannot provide.