Interface MapObjectCollectionListener

com.yandex.mapkit.map

public interface MapObjectCollectionListener

The map object collection can't be modified in callbacks.

A runtime::RuntimeError exception is thrown if this happens.

Methods

void onMapObjectAdded(@NonNull MapObject mapObject)

Called every time a new map object is added to the collection.

void onMapObjectRemoved(@NonNull MapObject mapObject)

Called every time a map object is removed from the collection.

void onMapObjectUpdated(@NonNull MapObject mapObject)

Called every time a map object is updated.

Method Detail

onMapObjectAdded

public void onMapObjectAdded (@NonNull MapObject mapObject)

Called every time a new map object is added to the collection.

onMapObjectRemoved

public void onMapObjectRemoved (@NonNull MapObject mapObject)

Called every time a map object is removed from the collection.

onMapObjectUpdated

public void onMapObjectUpdated (@NonNull MapObject mapObject)

Called every time a map object is updated.