ru.dgis.sdk.navigation.TrafficControl | Android SDK | 2GIS Documentation
Android SDK

TrafficControl

Traffic score control. It is a button that switches the visibility of traffic jams on the map. The control visually displays the traffic jam score, which also affects color: green - low level of traffic, yellow - medium, red - high. The appearance of the control changes depending on the state, see TrafficControlStatus for details.

TrafficControl(
	context: Context,
	attrs: AttributeSet? = null,
	defStyle: Int = 0
)

Traffic score control. It is a button that switches the visibility of traffic jams on the map. The control visually displays the traffic jam score, which also affects color: green - low level of traffic, yellow - medium, red - high. The appearance of the control changes depending on the state, see TrafficControlStatus for details.

Parameters
context
attrs
defStyle
Returns
Methods