Share via


BarcodeScanner class (Handheld 8)

2/18/2014

Represents the barcode scanner device.

Syntax

public sealed class BarcodeScanner : Object
Public NotInheritable Class BarcodeScanner
    Inherits Object
public ref class BarcodeScanner sealed : Object

Attributes

MarshalingBehaviorAttribute(Agile)
StaticAttribute(Windows.Devices.PointOfService.IBarcodeScannerStatics, NTDDI_WIN8)
ThreadingAttribute(Both)
VersionAttribute(NTDDI_WIN8)

Members

The BarcodeScanner class has these types of members:

  • Events
  • Methods
  • Properties

Events

The BarcodeScanner class has these events.

Event Description

StatusUpdated

Occurs when the barcode scanner detects an operation status change.

Methods

The BarcodeScanner class has these methods. It also inherits methods from the Object class.

Method Description

CheckHealthAsync

Tests the state of the barcode scanner.

GetSupportedSymbologiesAsync

Gets the supported symbology for the claimed barcode scanner.

IsSymbologySupportedAsync

Determines whether the specified symbology is supported by the barcode scanner.

ClaimScannerAsync

Attempts to get an exclusive access to the barcode scanner.

FromIdAsync

Creates a new instance of the barcode scanner from the specified device identifier.

GetDefaultAsync

Returns the first available barcode scanner.

GetDeviceSelector

Returns an Advanced Query Syntax (AQS) string this is used to enumerate available barcode scanners.

GetSupportedProfiles

Gets the list of profiles supported by the barcode scanner.

IsProfileSupported

Determines whether the profile is supported.

RetrieveStatisticsAsync

Retrieves the requested statistics from the barcode scanner.

Properties

The BarcodeScanner class has these properties.

Property Access type Description

Capabilities

Read-only

Gets the capabilities of the specified barcode scanner.

DeviceId

Read-only

Gets the unique device identifier of the barcode scanner.

Remarks

This object is created when GetDefaultAsync or FromIdAsync method completes.

See Also

Reference

Windows.Devices.PointOfService namespace