startAnimationWithListener method - MapCamera class - mapview library - Dart API
startAnimationWithListener
startAnimationWithListener abstract method
- MapCameraAnimation cameraAnimation,
- 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.
-
cameraAnimationThe animation to be started. -
animationListenerAnimation listener. A strong reference is kept internally up until the animation gets cancelled or completed.
Implementation
void startAnimationWithListener(MapCameraAnimation cameraAnimation, AnimationListener animationListener);