MMKMapCameraListener

@protocol MMKMapCameraListener <NSObject>

Listens for updates to the camera position.

Summary

Instance methods

- (void)onCameraPositionChangedWithMap:(nonnull MMKMap *)map
                        cameraPosition:
                            (nonnull MMKCameraPosition *)cameraPosition
                    cameraUpdateReason:(MMKCameraUpdateReason)cameraUpdateReason
                              finished:(BOOL)finished;

Triggered when the camera position changed

Instance methods

onCameraPositionChangedWithMap:cameraPosition:cameraUpdateReason:finished:

- (void)onCameraPositionChangedWithMap:(nonnull MMKMap *)map
                        cameraPosition:
                            (nonnull MMKCameraPosition *)cameraPosition
                    cameraUpdateReason:(MMKCameraUpdateReason)cameraUpdateReason
                              finished:(BOOL)finished;

Triggered when the camera position changed.

Parameters

map

Event source.

cameraPosition

Current camera position.

cameraUpdateReason

The reason of camera update.

finished

True if the camera finished moving, false otherwise. If a movement is cancelled then cameraUpdateReason represents initiator of cancellation.