Class TrafficLevel
com.yandex.mapkit.traffic
java.lang.Object ⇽ TrafficLevel
public class TrafficLevel
The level of traffic.
Constructors
TrafficLevel() | Use constructor with parameters in your code. |
TrafficLevel(@NonNull TrafficColor color, int level) |
TrafficLevel() | Use constructor with parameters in your code. |
TrafficLevel(@NonNull TrafficColor color, int level) |
Methods
synchronized TrafficColor | getColor() | The color that represents traffic. |
synchronized int | getLevel() | Traffic level. |
String | getNativeName() | |
void | serialize(Archive archive) |
synchronized TrafficColor | getColor() | The color that represents traffic. |
synchronized int | getLevel() | Traffic level. |
String | getNativeName() | |
void | serialize(Archive archive) |
Constructor Detail
TrafficLevel
public TrafficLevel ()
Use constructor with parameters in your code.
This one is for serialization only!TrafficLevel
public TrafficLevel (@NonNull TrafficColor color, int level)
Method Detail
getColor
public synchronized TrafficColor getColor ()
The color that represents traffic.
getLevel
public synchronized int getLevel ()
Traffic level.
getNativeName
public static String getNativeName ()
serialize
public void serialize (Archive archive)