MMKUserLocationObjectListener

@protocol MMKUserLocationObjectListener <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 MMKUserLocationView *)view;
Called when the layer object is added

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

- (void)onObjectUpdatedWithView:(nonnull MMKUserLocationView *)view
                          event:(nonnull MMKObjectEvent *)event;

Called when the layer object is being updated

Instance methods

onObjectAddedWithView:

- (void)onObjectAddedWithView:(nonnull MMKUserLocationView *)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 MMKUserLocationView *)view;

Called when the layer object is being removed. It is never called for the user location icon.


onObjectUpdatedWithView:event:

- (void)onObjectUpdatedWithView:(nonnull MMKUserLocationView *)view
                          event:(nonnull MMKObjectEvent *)event;

Called when the layer object is being updated. The 'event' parameter can be one of the derived types.