setMaxUpdates

@NonNull
open fun setMaxUpdates(@IntRange(from = 1, to = Integer.MAX_VALUE) maxUpdates: Int): @NonNull LocationRequestCompat.Builder(source)

Sets the maximum number of location updates for this request before this request is automatically removed. Defaults to Integer.MAX_VALUE, which represents an unlimited number of updates.