Interface UserLocationObjectListener

com.yandex.mapkit.user_location

public interface UserLocationObjectListener

User location events object listener.

Use it to customize the user location view. Although some callbacks are unused, the generic structure of the interface is suitable for object layer listeners.

Methods

void onObjectAdded(@NonNull UserLocationView view)

Called when the layer object is added.

void onObjectRemoved(@NonNull UserLocationView view)

Called when the layer object is being removed.

void onObjectUpdated(@NonNull UserLocationView view, @NonNull ObjectEvent event)

Called when the layer object is being updated.

Method Detail

onObjectAdded

public void onObjectAdded (@NonNull UserLocationView view)

Called when the layer object is added.

It is called once when the user location icon appears the first time.

onObjectRemoved

public void onObjectRemoved (@NonNull UserLocationView view)

Called when the layer object is being removed.

It is never called for the user location icon.

onObjectUpdated

public void onObjectUpdated (@NonNull UserLocationView view, @NonNull ObjectEvent event)

Called when the layer object is being updated.

The 'event' parameter can be one of the derived types.