مشاركة عبر


AdvancedPhotoCapture.CaptureAsync Method

Definition

Overloads

CaptureAsync()

Asynchronously performs an advanced photo capture.

CaptureAsync(Object)

Asynchronously performs an advanced photo capture passing the provided app-defined context object to the result of the operation.

CaptureAsync()

Asynchronously performs an advanced photo capture.

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)

Returns

An asynchronous operation that returns an AdvancedCapturedPhoto upon successful completion.

Attributes

Remarks

MediaCapture.PrepareAdvancedPhotoCaptureAsync must be called before calling CaptureAsync.

Concurrently recording video and photo capture using AdvancedPhotoCapture is not supported.

See also

Applies to

CaptureAsync(Object)

Asynchronously performs an advanced photo capture passing the provided app-defined context object to the result of the operation.

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)

Parameters

context
Object

Platform::Object

IInspectable

An app-defined context object that passes context information to the result of the operation.

Returns

An asynchronous operation that returns an AdvancedCapturedPhoto upon successful completion.

Attributes

Remarks

MediaCapture.PrepareAdvancedPhotoCaptureAsync must be called before calling CaptureAsync.

Concurrently recording video and photo capture using AdvancedPhotoCapture is not supported.

See also

Applies to