EvanQrCodeService

Source qr-code

QR-Code Scanner service for HTML 5 / IOS / Android.


scanQRCode

qrCodeService.scanQRCode(arguments);

Scan an qr code and returns the result as string.

Returns

Promise returns string: qr-code result

Example

try {
  const value = await this.qrCodeService.scanQRCode();

  this.dappForm.controls['ensAddress'].setValue(value);
  this.submit(value);

  this.ref.detectChanges();
} catch (ex) { }

View Example

Looks on browsers like the following:

../../../_images/qr-code-scanner1.png