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 |
---|---|
System.Threading.Tasks.Task<System.Boolean> |
|
Remarks
Use SetViewpointCameraAsync(Camera, TimeSpan) to set a viewpoint that animates over a specified duration.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | camera |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Android | 200.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
SetViewpointCameraAsync(Camera, TimeSpan)
Animates the display to the viewpoint specified by the given camera 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. |
System.TimeSpan | duration | The time for the transition animation to complete. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |
|
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | camera |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Android | 200.3 - 200.5 |
Xamarin.Android | 100.0 - 100.14 |