Share via


AppRecordingManager.StartRecordingToFileAsync(StorageFile) 메서드

정의

현재 앱의 오디오 및 비디오 콘텐츠를 지정된 대상 파일에 씁니다. 현재 시간부터 시작하여 작업이 취소되거나 스토리지 공간이 초과된 경우 종료됩니다.

public:
 virtual IAsyncOperation<AppRecordingResult ^> ^ StartRecordingToFileAsync(StorageFile ^ file) = StartRecordingToFileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<AppRecordingResult> StartRecordingToFileAsync(StorageFile const& file);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<AppRecordingResult> StartRecordingToFileAsync(StorageFile file);
function startRecordingToFileAsync(file)
Public Function StartRecordingToFileAsync (file As StorageFile) As IAsyncOperation(Of AppRecordingResult)

매개 변수

file
StorageFile

녹화된 미디어가 기록되는 파일입니다.

반환

완료 시 AppRecordingResult 개체를 반환하는 비동기 작업으로, 기록 작업의 상태 대한 정보를 포함합니다.

이 메서드를 호출하기 전에 GetStatus를 호출하고 CanRecord 값을 검사 현재 앱이 현재 앱 기록을 만들 수 있는지 확인합니다.

이 메서드로 시작된 앱 기록을 종료하려면 이 메서드에서 반환된 IAsyncOperation에서 Cancel을 호출하여 작업을 취소합니다.

특성

적용 대상