Interface GeoObjectTapEvent

com.yandex.mapkit.layers

public interface GeoObjectTapEvent

Information about the tapped object.

Methods

GeoObject getGeoObject()

The object that was tapped.

boolean isSelected()
boolean isValid()

Tells if this GeoObjectTapEvent is valid or no.

void setSelected(boolean selected)

Method Detail

getGeoObject

public GeoObject getGeoObject ()

The object that was tapped.

isSelected

public boolean isSelected ()

Note.
  deprecated Use selectGeoObject method instead. 

isValid

public boolean isValid ()

Tells if this GeoObjectTapEvent is valid or no.

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

setSelected

public void setSelected (boolean selected)