CameraCaptureUI.CaptureFileAsync(CameraCaptureUIMode) CameraCaptureUI.CaptureFileAsync(CameraCaptureUIMode) CameraCaptureUI.CaptureFileAsync(CameraCaptureUIMode) CameraCaptureUI.CaptureFileAsync(CameraCaptureUIMode) CameraCaptureUI.CaptureFileAsync(CameraCaptureUIMode) Method

Definition

Launches the CameraCaptureUI user interface.

public : IAsyncOperation<StorageFile> CaptureFileAsync(CameraCaptureUIMode mode)
IAsyncOperation<StorageFile> CaptureFileAsync(CameraCaptureUIMode mode) const;
public IAsyncOperation<StorageFile> CaptureFileAsync(CameraCaptureUIMode mode)
Public Function CaptureFileAsync(mode As CameraCaptureUIMode) As IAsyncOperation(Of StorageFile)
Windows.Media.Capture.CameraCaptureUI.captureFileAsync(mode).done( /* Your success and error handlers */ );

Parameters

mode
CameraCaptureUIMode CameraCaptureUIMode CameraCaptureUIMode

Specifies whether the user interface that will be shown allows the user to capture a photo, capture a video, or capture both photos and videos.

Returns

Additional features and requirements

Capabilities
webcam microphone

Remarks

Call CaptureFileAsync to launch the UI. The user has control over when to start the capture. When the asynchronous operation completes, a StorageFile object is returned.