Builder

class Builder

Build a new TrafficOverrideOptions

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard
fun build(): TrafficOverrideOptions
Link copied to clipboard
fun heavyCongestionRange(range: IntRange): TrafficOverrideOptions.Builder

Defines the range for heavy congestion traffic

Link copied to clipboard
fun highSpeedThresholdInKmPerHour(value: Int): TrafficOverrideOptions.Builder

Defines what speed should be treated as a high speed

Link copied to clipboard
fun isEnabled(flag: Boolean): TrafficOverrideOptions.Builder

Defines if traffic override is enabled

Link copied to clipboard
fun lowCongestionRange(range: IntRange): TrafficOverrideOptions.Builder

Defines the range for low congestion traffic

Link copied to clipboard
fun moderateCongestionRange(range: IntRange): TrafficOverrideOptions.Builder

Defines the range for moderate congestion traffic

Link copied to clipboard
fun severeCongestionRange(range: IntRange): TrafficOverrideOptions.Builder

Defines the range for severe congestion traffic