#[repr(C)]pub struct GeolocationProbeConfig {
pub high_accuracy: bool,
pub background: bool,
pub max_accuracy_m: f32,
pub min_interval_ms: u32,
}Expand description
Configuration the user attaches to a NodeType::GeolocationProbe
to tune the platform subscription. Maps to W3C PositionOptions
(enableHighAccuracy + maximumAge + timeout).
Fields§
§high_accuracy: booltrue requests precise (GPS-driven) location. iOS maps this to
CLLocationManager.desiredAccuracy = kCLLocationAccuracyBest;
Android to LocationRequest.PRIORITY_HIGH_ACCURACY. Costs
battery — leave false for city-block-level apps.
background: boolSubscribe to background location updates. Requires extra
per-platform manifest declarations and a separate
Capability::GeolocationBackground permission grant. false
is the safe default.
max_accuracy_m: f32Reject any fix whose accuracy_m exceeds this radius. 0
disables the filter — every native sample is delivered.
min_interval_ms: u32Minimum time between delivered updates, in milliseconds. 0
disables throttling (every native sample is delivered;
expensive when the platform fires at 10 Hz indoors).
Trait Implementations§
Source§impl Clone for GeolocationProbeConfig
impl Clone for GeolocationProbeConfig
Source§fn clone(&self) -> GeolocationProbeConfig
fn clone(&self) -> GeolocationProbeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more