setViewpointCameraAnimated

suspend fun setViewpointCameraAnimated(camera: Camera, duration: Duration = 3.seconds): Result<Boolean>

Pans or zooms the local scene view using animation to the specified camera location asynchronously. Animation takes place over the specified duration.

Return

a Result of true if the viewpoint was successfully set, false otherwise.

Since

300.0.0

Parameters

camera

The camera that should be set on the view.

duration

The amount of time to move to the new viewpoint.