Interface Cluster

com.yandex.mapkit.map

public interface Cluster

Methods

void addClusterTapListener(@NonNull ClusterTapListener clusterTapListener)

Adds a tap listener for cluster.

PlacemarkMapObject getAppearance()

Cluster representation displayed on the map.

List< PlacemarkMapObject > getPlacemarks()

A list of placemarks the cluster contains.

int getSize()

Cluster size.

boolean isValid()

Tells if this Cluster is valid or no.

void removeClusterTapListener(@NonNull ClusterTapListener clusterTapListener)

Removes tap listener.

Method Detail

addClusterTapListener

public void addClusterTapListener (@NonNull ClusterTapListener clusterTapListener)

Adds a tap listener for cluster.

getAppearance

public PlacemarkMapObject getAppearance ()

Cluster representation displayed on the map.

getPlacemarks

public List< PlacemarkMapObject > getPlacemarks ()

A list of placemarks the cluster contains.

getSize

public int getSize ()

Cluster size.

isValid

public boolean isValid ()

Tells if this Cluster is valid or no.

Any other method (except for this one) called on an invalid Cluster 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.

removeClusterTapListener

public void removeClusterTapListener (@NonNull ClusterTapListener clusterTapListener)

Removes tap listener.