startAnimationWithListener abstract method

void startAnimationWithListener(
  1. MapCameraAnimation cameraAnimation,
  2. AnimationListener animationListener
)

Starts a given camera animation.

The state of the animation can be tracked with the provided listener.

Starting an animation can cause the cancelling of an ongoing animation when they both affect the same category of camera properties, like for example any of the look-at properties (target, orientation, map measure) or any of the projection properties (field of view, principal point, focal length). The corresponding listener of an ongoing animation will be notified about the cancellation in these cases.

  • cameraAnimation The animation to be started.

  • animationListener Animation listener. A strong reference is kept internally up until the animation gets cancelled or completed.

Implementation

void startAnimationWithListener(MapCameraAnimation cameraAnimation, AnimationListener animationListener);