Protocol YMKUserLocationObjectListener

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.

Instance Methods

- onObjectAddedWithView:

Called when the layer object is added.

- onObjectRemovedWithView:

Called when the layer object is being removed.

- onObjectUpdatedWithView:event:

Called when the layer object is being updated.

Method Detail

-onObjectAddedWithView:

- (void)onObjectAddedWithView:(nonnull YMKUserLocationView *)view 

Called when the layer object is added.

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

-onObjectRemovedWithView:

- (void)onObjectRemovedWithView:(nonnull YMKUserLocationView *)view 

Called when the layer object is being removed.

It is never called for the user location icon.

-onObjectUpdatedWithView:event:

- (void)onObjectUpdatedWithView:(nonnull YMKUserLocationView *)view
                          event:(nonnull YMKObjectEvent *)event 

Called when the layer object is being updated.

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