Click or drag to resize

SceneViewSetViewpointCameraAsync Method (Camera, TimeSpan)

Changes the scene view to the new camera viewpoint asynchronously using the specified duration to arrive.

Namespace:  Esri.ArcGISRuntime.UI.Controls
Assembly:  Esri.ArcGISRuntime.WPF (in Esri.ArcGISRuntime.WPF.dll) Version: 100.11.0
Syntax
public Task<bool> SetViewpointCameraAsync(
	Camera camera,
	TimeSpan duration
)

Parameters

camera
Type: Esri.ArcGISRuntime.MappingCamera
The new camera information for the scene view.
duration
Type: SystemTimeSpan
Duration of the animation

Return Value

Type: TaskBoolean
True if the set view animation completed, false if it was interrupted by another view navigation.
Exceptions
ExceptionCondition
ArgumentNullExceptioncamera
See Also