ArcGIS Pro 2.8 API Reference Guide
HasNextCamera Method
Example 

ArcGIS.Desktop.Mapping Namespace > MapView Class : HasNextCamera Method
Indicates whether the map view has a next camera position.
Syntax
public bool HasNextCamera()
Public Function HasNextCamera() As Boolean

Return Value

Returns true if the map view has a next camera position.
Remarks
The map view will have a next camera position if the camera has changed and if the camera stack has been moved backwards.
Example
Zoom to the previous camera position.
public Task<bool> ZoomToNextCameraAsync()
{
  //Get the active map view.
  var mapView = MapView.Active;
  if (mapView == null)
    return Task.FromResult(false);

  //Zoom to the selected layers in the TOC
  if (mapView.HasNextCamera())
    return mapView.NextCameraAsync();

  return Task.FromResult(false);
}
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MapView Class
MapView Members