Show / Hide Table of Contents

Method SetViewpointCameraAsync

SetViewpointCameraAsync(Camera)

Changes the scene view to the new camera viewpoint asynchronously.

Declaration
public Task<bool> SetViewpointCameraAsync(Camera camera)
Parameters
Type Name Description
Camera camera

The new camera information for the scene view.

Returns
Type Description
Task<Boolean>

True if the set view animation completed, false if it was interrupted by another view navigation.

Exceptions
Type Condition
ArgumentNullException

camera

Applies to

Platforms and versions
TargetVersions
.NET 6.0 Windows100.13 - 100.14

SetViewpointCameraAsync(Camera, TimeSpan)

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

Declaration
public Task<bool> SetViewpointCameraAsync(Camera camera, TimeSpan duration)
Parameters
Type Name Description
Camera camera

The new camera information for the scene view.

TimeSpan duration

Duration of the animation

Returns
Type Description
Task<Boolean>

True if the set view animation completed, false if it was interrupted by another view navigation.

Exceptions
Type Condition
ArgumentNullException

camera

Applies to

Platforms and versions
TargetVersions
.NET 6.0 Windows100.13 - 100.14
In This Article
Back to top Copyright © 2021 Esri.