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

TrafficControl

Traffic control. It is a button that, when pressed, switches the visibility of traffic jams on the map. On the control, a traffic score is displayed as text, which also affects the color: green - low traffic, yellow - medium, red - high. Depending on the state, the appearance of the control changes, see TrafficControlStatus for details.

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

Traffic control. It is a button that, when pressed, switches the visibility of traffic jams on the map. On the control, a traffic score is displayed as text, which also affects the color: green - low traffic, yellow - medium, red - high. Depending on the state, the appearance of the control changes, see TrafficControlStatus for details.

Parameters
context
attrs
defStyle
Returns
Methods