java.lang.Object |
↳ |
com.carto.layers.VectorElementEventListener |
Class Overview
Listener for vector element events like clicks etc.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
VectorElementEventListener
()
Public Methods
public
synchronized
void
delete
()
public
boolean
onVectorElementClicked
(VectorElementClickInfo clickInfo)
Listener method that gets called when a click is performed on a vector element.
If there are multiple vector elements that are located at the click position, then the
results will be sorted by their distance to the camera. The closest element will be called first.
If the method returns true, all subsequent elements are ignored. Otherwise the method is called
on the next element and so on.
This method will NOT be called from the main thread.
Parameters
clickInfo |
A container that provides information about the click.
|
Returns
- True if the click is handled and subsequent elements should not be handled. False if the next element should be called.