public async void ClaimedScanner_DataReceivedAsync(Windows.Devices.PointOfService.ClaimedBarcodeScanner sender, Windows.Devices.PointOfService.BarcodeScannerDataReceivedEventArgs args) { try { await Scanned(args); } catch (Exception ex) { MessagingCenter.Send <xx.App, string>((xx.App)obj.xxApp, "exception", "ScrannerInit/ClaimedScanner_DataReceivedAsync: " + ex.Message); } }
public async void ClaimedScanner_DataReceivedAsync(Windows.Devices.PointOfService.ClaimedBarcodeScanner sender, Windows.Devices.PointOfService.BarcodeScannerDataReceivedEventArgs args) { try { await Scanned(args); } catch (Exception ex) { //await DisplayAlert("Error", "ClaimedScanner_DataReceivedAsync failed, Code:" + " Message:" + ex.Message, "OK"); } }
public void OnClaimedScannerReleaseDeviceRequested(object sender, Windows.Devices.PointOfService.ClaimedBarcodeScanner e) { try { if (e != null) { e.RetainDevice(); } } catch (Exception ex) { MessagingCenter.Send <xx.App, string>((xx.App)obj.xxApp, "exception", "ScrannerInit/OnClaimedScannerReleaseDeviceRequested: " + ex.Message); } }
public async void OnClaimedScannerReleaseDeviceRequested(object sender, Windows.Devices.PointOfService.ClaimedBarcodeScanner e) { try { if (e != null) { e.RetainDevice(); } } catch (Exception ex) { //await DisplayAlert("Error", "OnClaimedScannerReleaseDeviceRequested failed, Code:" + " Message:" + ex.Message, "OK"); } }