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
availabilityandUnsupported. - Location
Outcome - The result of a location request, delivered back to the UI thread over a channel.
Traits§
- Location
Provider - Host-provided device location.
Functions§
- availability
- Whether
featurecan be used on this target. - available
- Whether
featurecan be used on this target without a prompt. - install_
resolver - Install how
request_locationfinds the current host’s provider. The first call wins;ui::hostinstalls one that resolves through its scopedHostServices. Without one, requests answerLocationOutcome::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§
- Location
Channel - A pending location request: the receiver the UI thread drains each frame.
- Unsupported
- A feature this target, or this particular host, cannot provide.