CameraCaptureUI.CaptureFileAsync(CameraCaptureUIMode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Launches the camera capture UI, allowing the user to capture photos, videos, or both.
public:
virtual IAsyncOperation<StorageFile ^> ^ CaptureFileAsync(CameraCaptureUIMode mode) = CaptureFileAsync;
IAsyncOperation<StorageFile> CaptureFileAsync(CameraCaptureUIMode const& mode);
public IAsyncOperation<StorageFile> CaptureFileAsync(CameraCaptureUIMode mode);
function captureFileAsync(mode)
Public Function CaptureFileAsync (mode As CameraCaptureUIMode) As IAsyncOperation(Of StorageFile)
Parameters
- mode
- CameraCaptureUIMode
The capture mode, which specifies whether the UI allows photo capture, video capture, or both.
Returns
An asynchronous operation that returns a StorageFile object upon completion. If the returned object is null, the user did not complete the photo or video capture.