AVCaptureStillImageOutput.CaptureStillImageTaskAsync 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.
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.