AdvancedPhotoCapture.CaptureAsync 方法

定义

重载

CaptureAsync()

异步执行高级照片捕获。

CaptureAsync(Object)

异步执行高级照片捕获,将提供的应用定义的上下文对象传递给操作的结果。

CaptureAsync()

异步执行高级照片捕获。

public:
 virtual IAsyncOperation<AdvancedCapturedPhoto ^> ^ CaptureAsync() = CaptureAsync;
/// [Windows.Foundation.Metadata.Overload("CaptureAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<AdvancedCapturedPhoto> CaptureAsync();
[Windows.Foundation.Metadata.Overload("CaptureAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<AdvancedCapturedPhoto> CaptureAsync();
function captureAsync()
Public Function CaptureAsync () As IAsyncOperation(Of AdvancedCapturedPhoto)

返回

成功完成后返回 AdvancedCapturedPhoto 的 异步操作。

属性

注解

在调用 CaptureAsync 之前,必须调用 MediaCapture.PrepareAdvancedPhotoCaptureAsync

不支持使用 AdvancedPhotoCapture 同时录制视频和照片捕获。

另请参阅

适用于

CaptureAsync(Object)

异步执行高级照片捕获,将提供的应用定义的上下文对象传递给操作的结果。

public:
 virtual IAsyncOperation<AdvancedCapturedPhoto ^> ^ CaptureAsync(Platform::Object ^ context) = CaptureAsync;
/// [Windows.Foundation.Metadata.Overload("CaptureWithContextAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<AdvancedCapturedPhoto> CaptureAsync(IInspectable const& context);
[Windows.Foundation.Metadata.Overload("CaptureWithContextAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<AdvancedCapturedPhoto> CaptureAsync(object context);
function captureAsync(context)
Public Function CaptureAsync (context As Object) As IAsyncOperation(Of AdvancedCapturedPhoto)

参数

context
Object

Platform::Object

IInspectable

应用定义的上下文对象,它将上下文信息传递给操作的结果。

返回

成功完成后返回 AdvancedCapturedPhoto 的 异步操作。

属性

注解

在调用 CaptureAsync 之前,必须调用 MediaCapture.PrepareAdvancedPhotoCaptureAsync

不支持使用 AdvancedPhotoCapture 同时录制视频和照片捕获。

另请参阅

适用于