setIntervalMillis

@NonNull
open fun setIntervalMillis(@IntRange(from = 0) intervalMillis: Long): @NonNull LocationRequestCompat.Builder(source)

Sets the request interval. The request interval may be set to PASSIVE_INTERVAL which indicates this request will not actively generate location updates (and thus will not be power blamed for location), but may receive location updates generated as a result of other location requests. A passive request must always have an explicit minimum update interval set.

Locations may be available at a faster interval than specified here, see setMinUpdateIntervalMillis for the behavior in that case.

Note: On platforms below Android 12, using the PASSIVE_INTERVAL will not result in a truly passive request, but a request with an extremely long interval. In most cases, this is effectively the same as a passive request, but this may occasionally result in an initial location calculation for which the client will be blamed.