Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.15 KB

barcodescanner_getdefaultasync_1549573963.md

File metadata and controls

34 lines (22 loc) · 1.15 KB
-api-id -api-type -api-device-family-note
M:Windows.Devices.PointOfService.BarcodeScanner.GetDefaultAsync
winrt method
xbox

Windows.Devices.PointOfService.BarcodeScanner.GetDefaultAsync

-description

Returns the first available barcode scanner.

-returns

The first available barcode scanner. Returns a null object in the following cases:

  • A device is not found.
  • Access denied to the existing device. The user can deny access to a device, which is not treated as an exception.

-remarks

-examples

[!code-cppCreateBarcodeScanner]

[!code-csharpCreateBarcodeScanner]

[!code-jsCreateBarcodeScannerJS]

-see-also

Barcode scanner sample (Windows 10)