• О MapKit
    • Начало работы
  • Стили карты
  • Версии MapKit
  • Часто задаваемые вопросы
  • Обратная связь

Важно

This feature is available in the Full MapKit SDK version

Package com.yandex.mapkit.road_events_layer

Interface RoadEventsLayer

interface RoadEventsLayer

Summary

Methods

Type and modifiers

Method and Description

void

addListener(@NonNull RoadEventsLayerListener layerListener)
The class does not retain the object in the 'layerListener' parameter.

void

removeListener(@NonNull RoadEventsLayerListener layerListener)

void

selectRoadEvent(@NonNull java.lang.String eventId)
Selects a road event with specified id.

void

deselectRoadEvent()
Deselects selected road event if any.

void

setRoadEventVisibleOnRoute(@NonNull EventTag tag,
                           boolean on)

Sets road events on route tag visibility.

boolean

isValid()
Tells if this RoadEventsLayer is valid or not.

Methods

addListener

void addListener(@NonNull RoadEventsLayerListener layerListener)

The class does not retain the object in the 'layerListener' parameter.

It is your responsibility to maintain a strong reference to the target object while it is attached to a class.


removeListener

void removeListener(@NonNull RoadEventsLayerListener layerListener)


selectRoadEvent

void selectRoadEvent(@NonNull java.lang.String eventId)

Selects a road event with specified id.

Only one event can be selected at a time. If some other event is selected already, it will be deselected.


deselectRoadEvent

void deselectRoadEvent()

Deselects selected road event if any.


setRoadEventVisibleOnRoute

void setRoadEventVisibleOnRoute(@NonNull EventTag tag,
                                boolean on)

Sets road events on route tag visibility.

Setting local chats visibility will also set visibility for ordinary chats and vice versa. None are visible by default.


isValid

boolean isValid()

Tells if this RoadEventsLayer is valid or not.

Any other method (except for this one) called on an invalid RoadEventsLayer will throw java.lang.RuntimeException. An instance becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.


Предыдущая
Следующая