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 );
Summary of Contents for 26079
Page 1: ...Dolphin 75e Wearable Solution with Windows Embedded 8 1 Handheld User s Guide ...
Page 6: ...iv ...
Page 8: ...vi ...
Page 12: ...1 4 ...
Page 22: ...2 10 ...
Page 42: ...4 8 ...
Page 46: ...A 4 ...
Page 49: ......
Page 50: ... Honeywell 9680 Old Bailes Road Fort Mill SC 29707 75EWS W8 ENUS UG Rev B 03 16 ...