Exemple #1
0
 public static void ReceiveBarcode(string barcodeText)
 {
     /* Unfortunately JS is unable to invoke public methods of internal classes. Thus
      * we route the call to the internal class at this point. This allows us to hide away
      * the rest of the interop from the component's client. */
     BarcodeReaderInterop.OnBarcodeReceived(barcodeText);
 }
Exemple #2
0
 public void StopDecoding()
 {
     BarcodeReaderInterop.OnBarcodeReceived(string.Empty);
     _backend.StopDecoding();
     IsDecoding = false;
     StateHasChanged();
 }