Package com.yandex.mapkit.map

Interface MapObjectVisitor

interface MapObjectVisitor

Used to traverse over the children of the MapObjectCollection.

Summary

Methods

Type and modifiers

Method and Description

void

onPlacemarkVisited(@NonNull PlacemarkMapObject placemark)
Called when a placemark is visited.

void

onPolylineVisited(@NonNull PolylineMapObject polyline)
Called when a polyline is visited.

void

onPolygonVisited(@NonNull PolygonMapObject polygon)
Called when a polygon is visited.

void

onCircleVisited(@NonNull CircleMapObject circle)
Called when a circle is visited.

boolean

onCollectionVisitStart(@NonNull MapObjectCollection collection)
Called for every child collection.

void

onCollectionVisitEnd(@NonNull MapObjectCollection collection)
Called for visited collections only.

boolean

onClusterizedCollectionVisitStart(@NonNull ClusterizedPlacemarkCollection collection)
Called for clusterized placemark collection.

void

onClusterizedCollectionVisitEnd(@NonNull ClusterizedPlacemarkCollection collection)
Called for visited clusterized placemark collections only.

Methods

onPlacemarkVisited

@UiThread
void onPlacemarkVisited(@NonNull PlacemarkMapObject placemark)

Called when a placemark is visited.


onPolylineVisited

@UiThread
void onPolylineVisited(@NonNull PolylineMapObject polyline)

Called when a polyline is visited.


onPolygonVisited

@UiThread
void onPolygonVisited(@NonNull PolygonMapObject polygon)

Called when a polygon is visited.


onCircleVisited

@UiThread
void onCircleVisited(@NonNull CircleMapObject circle)

Called when a circle is visited.


onCollectionVisitStart

@UiThread
boolean onCollectionVisitStart(@NonNull MapObjectCollection collection)

Called for every child collection.

The collection is ignored if this method returns false.


onCollectionVisitEnd

@UiThread
void onCollectionVisitEnd(@NonNull MapObjectCollection collection)

Called for visited collections only.

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


onClusterizedCollectionVisitStart

@UiThread
boolean onClusterizedCollectionVisitStart(@NonNull ClusterizedPlacemarkCollection collection)

Called for clusterized placemark collection.

The collection is ignored if this method returns false.


onClusterizedCollectionVisitEnd

@UiThread
void onClusterizedCollectionVisitEnd(@NonNull ClusterizedPlacemarkCollection collection)

Called for visited clusterized placemark collections only.

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


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