B - 2
DeviceRemoved()
Called by the OS when a device disconnects. You should track this event in persistent state variables.
DeviceUpdated()
Can be called by the OS when a device connects, so as with DeviceAdded(), you should have state transition code in place
to catch this. When this event occurs, you should recreate the scanning stack as follows:
•
BarcodeScanner
bcs = BarcodeScanner.CreateById();
•
ClaimedBarcodeScanner
cbcs = bcs.ClaimScannerAsync();
•
cbcs.EnableScanner();
•
cbcs.SetActiveSymbologiesAsync(
List<uint>
symsToEnable );
•
cbcs.SetActiveProfileAsync(
List<string>
profilesToEnable );
DeviceEnumCompleted()
Optional to track, but callback must be provided.
DetectorStopped()
Optional to track, but callback must be provided.
To register these callbacks, chain your support code to the events in the DeviceWatcher object.
To restore scanning when resuming, call
•
BarcodeScanner
bcs = BarcodeScanner.CreateById();
•
ClaimedBarcodeScanner
cbcs = bcs.ClaimScannerAsync();
•
cbcs.EnableScanner();
•
cbcs.SetActiveSymbologiesAsync(
List<uint>
symsToEnable );
•
cbcs.SetActiveProfileAsync(
List<string>
profilesToEnable );
Содержание 26079
Страница 1: ...Dolphin 75e Wearable Solution with Windows Embedded 8 1 Handheld User s Guide ...
Страница 6: ...iv ...
Страница 8: ...vi ...
Страница 12: ...1 4 ...
Страница 22: ...2 10 ...
Страница 42: ...4 8 ...
Страница 46: ...A 4 ...
Страница 49: ......
Страница 50: ... Honeywell 9680 Old Bailes Road Fort Mill SC 29707 75EWS W8 ENUS UG Rev B 03 16 ...