-
public final class GeofenceParamsResolved, runtime-tunable geofence parameters. Defaults mirror GeofenceConstants; values are overridden via remote config (see fromRemoteConfig).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classGeofenceParams.Companion
-
Field Summary
Fields Modifier and Type Field Description private final FloatradiusMprivate final FloatexitRadiusMprivate final FloatenterMaxAccuracyMprivate final FloatexitMaxAccuracyMprivate final IntegerexitDebounceFixesprivate final FloatnearDistanceMprivate final LongintervalNearMsprivate final LongintervalFarMsprivate final IntegerresponsivenessMsprivate final IntegermaxActiveprivate final FloatreRegisterThresholdMprivate final IntegernearPriorityprivate final IntegerfarPriorityprivate final LongfastestIntervalMsprivate final DoublesessionTimeoutSeconds
-
Constructor Summary
Constructors Constructor Description GeofenceParams(Float radiusM, Float exitRadiusM, Float enterMaxAccuracyM, Float exitMaxAccuracyM, Integer exitDebounceFixes, Float nearDistanceM, Long intervalNearMs, Long intervalFarMs, Integer responsivenessMs, Integer maxActive, Float reRegisterThresholdM, Integer nearPriority, Integer farPriority, Long fastestIntervalMs, Double sessionTimeoutSeconds)
-
Method Summary
Modifier and Type Method Description final FloatgetRadiusM()final FloatgetExitRadiusM()final FloatgetEnterMaxAccuracyM()final FloatgetExitMaxAccuracyM()final IntegergetExitDebounceFixes()final FloatgetNearDistanceM()final LonggetIntervalNearMs()final LonggetIntervalFarMs()final IntegergetResponsivenessMs()final IntegergetMaxActive()final FloatgetReRegisterThresholdM()final IntegergetNearPriority()Fused-location request Priority (Priority.PRIORITY_*) when NEAR a stop. final IntegergetFarPriority()Fused-location request Priority (Priority.PRIORITY_*) when FAR from every stop. final LonggetFastestIntervalMs()Floor (ms) on how fast fused fixes may arrive (setMinUpdateIntervalMillis). final DoublegetSessionTimeoutSeconds()Backstop timeout (seconds) for a geofence-started session; see GeofenceConfiguration. -
-
Constructor Detail
-
GeofenceParams
GeofenceParams(Float radiusM, Float exitRadiusM, Float enterMaxAccuracyM, Float exitMaxAccuracyM, Integer exitDebounceFixes, Float nearDistanceM, Long intervalNearMs, Long intervalFarMs, Integer responsivenessMs, Integer maxActive, Float reRegisterThresholdM, Integer nearPriority, Integer farPriority, Long fastestIntervalMs, Double sessionTimeoutSeconds)
-
-
Method Detail
-
getRadiusM
final Float getRadiusM()
-
getExitRadiusM
final Float getExitRadiusM()
-
getEnterMaxAccuracyM
final Float getEnterMaxAccuracyM()
-
getExitMaxAccuracyM
final Float getExitMaxAccuracyM()
-
getExitDebounceFixes
final Integer getExitDebounceFixes()
-
getNearDistanceM
final Float getNearDistanceM()
-
getIntervalNearMs
final Long getIntervalNearMs()
-
getIntervalFarMs
final Long getIntervalFarMs()
-
getResponsivenessMs
final Integer getResponsivenessMs()
-
getMaxActive
final Integer getMaxActive()
-
getReRegisterThresholdM
final Float getReRegisterThresholdM()
-
getNearPriority
final Integer getNearPriority()
Fused-location request Priority (Priority.PRIORITY_*) when NEAR a stop.
-
getFarPriority
final Integer getFarPriority()
Fused-location request Priority (Priority.PRIORITY_*) when FAR from every stop.
-
getFastestIntervalMs
final Long getFastestIntervalMs()
Floor (ms) on how fast fused fixes may arrive (setMinUpdateIntervalMillis).
-
getSessionTimeoutSeconds
final Double getSessionTimeoutSeconds()
Backstop timeout (seconds) for a geofence-started session; see GeofenceConfiguration.
-
-
-
-