isCameraMoving property
Checks whether the map camera is currently moving.
Returns true if the camera is in motion, regardless of the cause (animated
transitions, user gestures, follow position mode, or programmatic movement).
Returns false when the camera is stationary.
This differs from isAnimationInProgress which only detects programmatically triggered animations. Use this method to determine if the view is stable before performing operations that require a stationary camera.
See also:
- isAnimationInProgress - Check only for programmatic animations
- skipAnimation - Stop animated transitions
Implementation
bool get isCameraMoving {
final OperationResult resultString = objectMethod(
_pointerId,
'MapView',
'isCameraMoving',
);
return resultString['result'];
}