Interface TrafficListener

com.yandex.mapkit.traffic

public interface TrafficListener

Listener to handle traffic information.

Methods

void onTrafficChanged(@Nullable TrafficLevel trafficLevel)

Triggered when traffic level changes.

void onTrafficExpired()

Triggered when traffic information expires.

void onTrafficLoading()

Triggered when traffic information is loading.

Method Detail

onTrafficChanged

public void onTrafficChanged (@Nullable TrafficLevel trafficLevel)

Triggered when traffic level changes.

Remark:
Parameters:
trafficLevel

has optional type, it may be uninitialized.

onTrafficExpired

public void onTrafficExpired ()

Triggered when traffic information expires.

onTrafficLoading

public void onTrafficLoading ()

Triggered when traffic information is loading.