Interface MapObjectVisitor

com.yandex.mapkit.map

public interface MapObjectVisitor

Used to traverse over the children of the MapObjectCollection.

Methods

void onCircleVisited(@NonNull CircleMapObject circle)

Called when a circle is visited.

void onCollectionVisitEnd(@NonNull MapObjectCollection collection)

Called for visited collections only.

boolean onCollectionVisitStart(@NonNull MapObjectCollection collection)

Called for every child collection.

void onColoredPolylineVisited(@NonNull ColoredPolylineMapObject polyline)

Called when a colored polyline is visited.

void onPlacemarkVisited(@NonNull PlacemarkMapObject placemark)

Called when a placemark is visited.

void onPolygonVisited(@NonNull PolygonMapObject polygon)

Called when a polygon is visited.

void onPolylineVisited(@NonNull PolylineMapObject polyline)

Called when a polyline is visited.

Method Detail

onCircleVisited

public void onCircleVisited (@NonNull CircleMapObject circle)

Called when a circle is visited.

onCollectionVisitEnd

public void onCollectionVisitEnd (@NonNull MapObjectCollection collection)

Called for visited collections only.

If an exception occurred during the visit, the method might be skipped.

onCollectionVisitStart

public boolean onCollectionVisitStart (@NonNull MapObjectCollection collection)

Called for every child collection.

The collection is ignored if this method returns false.

onColoredPolylineVisited

public void onColoredPolylineVisited (@NonNull ColoredPolylineMapObject polyline)

Called when a colored polyline is visited.

onPlacemarkVisited

public void onPlacemarkVisited (@NonNull PlacemarkMapObject placemark)

Called when a placemark is visited.

onPolygonVisited

public void onPolygonVisited (@NonNull PolygonMapObject polygon)

Called when a polygon is visited.

onPolylineVisited

public void onPolylineVisited (@NonNull PolylineMapObject polyline)

Called when a polyline is visited.