Interface Jams

com.yandex.mapkit.transport.masstransit

public interface Jams

Methods

void addListener(@NonNull JamsListener jamsListener)

Adds a listener for changes to traffic on the route.

List< JamType > getSegments()

Traffic intensity on a route.

boolean isOutdated()

Indicates whether traffic levels have become outdated when we are not able to fetch updates for some predefined time.

void removeListener(@NonNull JamsListener jamsListener)

Removes the listener for changes to traffic on the route.

Method Detail

addListener

public void addListener (@NonNull JamsListener jamsListener)

Adds a listener for changes to traffic on the route.

getSegments

public List< JamType > getSegments ()

Traffic intensity on a route.

isOutdated

public boolean isOutdated ()

Indicates whether traffic levels have become outdated when we are not able to fetch updates for some predefined time.

removeListener

public void removeListener (@NonNull JamsListener jamsListener)

Removes the listener for changes to traffic on the route.