Share via


BarcodeScannerFrameReader.TryAcquireLatestFrameAsync Method

Definition

Acquires the latest available frame from the camera.

public:
 virtual IAsyncOperation<BarcodeScannerVideoFrame ^> ^ TryAcquireLatestFrameAsync() = TryAcquireLatestFrameAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<BarcodeScannerVideoFrame> TryAcquireLatestFrameAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<BarcodeScannerVideoFrame> TryAcquireLatestFrameAsync();
function tryAcquireLatestFrameAsync()
Public Function TryAcquireLatestFrameAsync () As IAsyncOperation(Of BarcodeScannerVideoFrame)

Returns

A BarcodeScannerVideoFrame containing data for the latest video frame.

Attributes

Remarks

Only the first call to TryAcquireLatestFrameAsync will return data. Subsequent calls will return null until a new frame arrives. Subscribe to the FrameArrived event to be notified when new frames arrive.

Applies to