Package 

Class LocationConfiguration

    • Method Detail

      • getProvider

         final String getProvider()

        Location source flag. "gms" → Google Play Services fused provider (auto-falls back to the platform LocationManager when Play Services is unavailable); any other value → platform LocationManager. Default "gms": the fused provider blends GPS+network+sensors into one de-duplicated, accuracy-aware track, vs the platform path recording every raw GPS and network fix (jittery indoors). Override to "legacy" per-fleet via server config.

      • getBatchMaxDelayMs

         final Long getBatchMaxDelayMs()

        Max time (ms) location fixes may buffer OS-side before a batched flush (fused path setMaxUpdateDelayMillis / platform batched delivery). Lets the AP suspend between flushes while every fix keeps its own capture timestamp. 0 → unbatched delivery.

      • getStallTimeoutMs

         final Long getStallTimeoutMs()

        Stall watchdog: if no fix arrives for this long while recording, re-register the providers (catches a silently-dead source). 0 → watchdog disabled.

      • getPriority

         final String getPriority()

        Fused request priority (server-tunable; was hardcoded). One of "high_accuracy" (default, drives GPS hard outdoors), "balanced", "low_power", "passive". Also maps to the platform provider's request quality. Lets a battery-sensitive fleet be dialed down remotely.

      • getWaitForAccurateLocation

         final Boolean getWaitForAccurateLocation()

        Withhold the first fix until it is accurate. Default false so session/geofence start isn't delayed waiting for a precise fix (a coarse first fix is fine). Fused path only.

      • getGranularity

         final String getGranularity()

        Location granularity for the fused request: "fine" (default, mirrors ACCESS_FINE_LOCATION), "coarse", or "permission" (whatever the grant allows). Fused path only.

      • getMinUpdateIntervalMs

         final Long getMinUpdateIntervalMs()

        Fastest accepted update interval (ms) — fused setMinUpdateIntervalMillis. 0 (default) mirrors gpsIntervalMs for a strict, even cadence; a smaller value lets the OS deliver opportunistically faster than the nominal interval.