BarcodeScannerFrameReader.TryAcquireLatestFrameAsync 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.
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.