AppRecordingResult.Duration Property

Definition

Gets the duration of the recorded file.

public:
 property TimeSpan Duration { TimeSpan get(); };
TimeSpan Duration();
public System.TimeSpan Duration { get; }
var timeSpan = appRecordingResult.duration;
Public ReadOnly Property Duration As TimeSpan

Property Value

The duration of the recorded file.

Remarks

RecordTimeSpanToFileAsync allows you to specify a requested duration for the app recording, but it is possible a recording to complete successfully, but for a shorter duration than requested, such as if the allocated storage space for recordings is filled. Check the value of the IsFileTruncated property to determine if the file was truncated.

Applies to