Interface ObjectEvent
com.yandex.mapkit.layers
public interface ObjectEvent
- All Known Subinterfaces:
- UserLocationAnchorChanged, UserLocationIconChanged
Base abstract class for an object event.
Layers that produce object event callbacks need to provide derived event classes.
Methods
boolean | isValid() | Tells if this ObjectEvent is valid or no. |
boolean | isValid() | Tells if this ObjectEvent is valid or no. |
Method Detail
isValid
public boolean isValid ()
Tells if this ObjectEvent is valid or no.
Any other method (except for this one) called on an invalid ObjectEvent 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.