YMKUserLocationObjectListener

@protocol YMKUserLocationObjectListener <NSObject>

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.

Summary

Instance methods

- (void)onObjectAddedWithView:(nonnull YMKUserLocationView *)view;
Called when the layer object is added

- (void)onObjectRemovedWithView:(nonnull YMKUserLocationView *)view;
Called when the layer object is being removed

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

Called when the layer object is being updated

Instance methods

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.