Edytuj

Udostępnij za pośrednictwem


AVCaptureStillImageOutput.CaptureStillImageTaskAsync Method

Definition

Captures an image from an input device.

public virtual System.Threading.Tasks.Task<CoreMedia.CMSampleBuffer> CaptureStillImageTaskAsync (AVFoundation.AVCaptureConnection connection);
abstract member CaptureStillImageTaskAsync : AVFoundation.AVCaptureConnection -> System.Threading.Tasks.Task<CoreMedia.CMSampleBuffer>
override this.CaptureStillImageTaskAsync : AVFoundation.AVCaptureConnection -> System.Threading.Tasks.Task<CoreMedia.CMSampleBuffer>

Parameters

connection
AVCaptureConnection

The connection source for the image.

Returns

A task that represents the asynchronous CaptureStillImageAsynchronously operation. The value of the TResult parameter is a AVCaptureCompletionHandler.

Remarks

The CaptureStillImageTaskAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

Applies to