Share via


BarcodeScannerFrameReader Class

Definition

Reads video frames from a camera.

public ref class BarcodeScannerFrameReader sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BarcodeScannerFrameReader final : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class BarcodeScannerFrameReader final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BarcodeScannerFrameReader : System.IDisposable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class BarcodeScannerFrameReader : System.IDisposable
Public NotInheritable Class BarcodeScannerFrameReader
Implements IDisposable
Inheritance
Object Platform::Object IInspectable BarcodeScannerFrameReader
Attributes
Implements

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Properties

Connection

Gets the BarcodeScannerProviderConnection being used by the frame reader.

Methods

Close()

Disposes of the frame reader and associated resources, and stops requesting video frames.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

StartAsync()

Starts reading video frames from the camera.

StopAsync()

Stops reading video frames from the camera.

TryAcquireLatestFrameAsync()

Acquires the latest available frame from the camera.

Events

FrameArrived

Event that is raised when a frame is ready to be acquired. This event will not be raised until the frame reader is started by using StartAsync.

Applies to

See also