setViewpointCameraAnimated method
Animates the display to the viewpoint specified by the given camera using the specified duration to arrive.
Parameters:
camera— The new camera information for the scene view.duration— The time for the transition animation to complete, in seconds.
Return Value: A boolean value. True if the viewpoint was successfully set. Otherwise, false.