ArcGIS Pro 2.7 API Reference Guide
Track Class
Members  Example 

ArcGIS.Desktop.Mapping Namespace : Track Class
Represents the base class for all track types.
Syntax
public abstract class Track 
Public MustInherit Class Track 
Remarks
A track stores the collection of keyframes whose values and transitions define the interpolated values for each frame of the animation. The Tracks property for the animation always returns 4 tracks: a CameraTrack, a LayerTrack, a TimeTrack and a RangeTrack. Each track type stores a corresponding keyframe for that type and is used to animate either the camera position, map time, map range, or layer visibility and transparency. The duration of the animation is equal to the time of the last keyframe in all tracks. The animation is removed from the map by deleting all keyframes in all tracks.
Example
Create a new camera keyframe from the active map view.
public void CreateCameraKeyframe(TimeSpan atTime)
{
  var mapView = MapView.Active;
  if (mapView != null)
    return;

  var animation = mapView.Map.Animation;
  var cameraTrack = animation.Tracks.OfType<CameraTrack>().First(); //There will always be only 1 CameraTrack in the animation.
  cameraTrack.CreateKeyframe(mapView.Camera, atTime, ArcGIS.Core.CIM.AnimationTransition.FixedArc);    
}
Inheritance Hierarchy

System.Object
   ArcGIS.Desktop.Mapping.Track
      ArcGIS.Desktop.Mapping.CameraTrack
      ArcGIS.Desktop.Mapping.LayerTrack
      ArcGIS.Desktop.Mapping.RangeTrack
      ArcGIS.Desktop.Mapping.TimeTrack

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Track Members
ArcGIS.Desktop.Mapping Namespace