MediaCapture.PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties) Method

Definition

Initializes the low shutter lag photo capture and provides the LowLagPhotoCapture object used to manage the recording.

public:
 virtual IAsyncOperation<LowLagPhotoCapture ^> ^ PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties ^ type) = PrepareLowLagPhotoCaptureAsync;
IAsyncOperation<LowLagPhotoCapture> PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties const & type);
public IAsyncOperation<LowLagPhotoCapture> PrepareLowLagPhotoCaptureAsync(ImageEncodingProperties type);
function prepareLowLagPhotoCaptureAsync(type)
Public Function PrepareLowLagPhotoCaptureAsync (type As ImageEncodingProperties) As IAsyncOperation(Of LowLagPhotoCapture)

Parameters

type
ImageEncodingProperties

The encoding profile used for the image.

Returns

IAsyncOperation<LowLagPhotoCapture>

When this method completes, a LowLagPhotoCapture object is returned which can be used to start the photo capture.

Windows 10 requirements

App capabilities
backgroundMediaRecording

Remarks

Use PrepareLowLagPhotoCaptureAsync to initialize the capture. This is an asynchronous calls which returns a LowLagPhotoCapture object when it is finished, which is used to start the actual photo capture by calling LowLagPhotoCapture.CaptureAsync.

PrepareLowLagPhotoCaptureAsync must be called before LowLagPhotoCapture.CaptureAsync.

For how-to guidance on using LowLagPhotoCapture to capture a photo, see Basic photo, video, and audio capture with MediaCapture.

Applies to

See also