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 CameraCaptureUI user interface.
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
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
When this operation completes, a StorageFile object is returned.
Windows requirements
App capabilities |
microphone
webcam
|
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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för