animation Duration Ms
fun animationDurationMs(duration: Long): FollowPuckViewportStateOptions.Builder
Content copied to clipboard
The duration of an animation that happens once when FollowPuckViewportState.startUpdatingCamera is invoked.
Note: At the moment, DefaultViewportTransition calculates its animations based on the puck location at the beginning of the transition, so the farther the puck moves while the transition is in progress, the larger the jump when it completes and control is transferred to the target state. Tune this value for your use case to reduce the visibility of that jump.
Defaults to DEFAULT_STATE_ANIMATION_DURATION_MS milliseconds