Hierarchy

  • any
    • QRScanner

Constructors

  • Returns QRScanner

Properties

created: boolean = false
html5QrCode: any = null
isScanning: boolean = false
scannerDiv: HTMLDivElement = null

Accessors

  • get previewContainer(): HTMLDivElement

    Returns HTMLDivElement

  • get previewVideo(): HTMLVideoElement

    returns the preview video element if it is displayed right now. (I assume if present scanning is running?)

    Returns HTMLVideoElement

    the

  • get removeDivFromDom(): boolean

    returns true if the div was found and removed, false otherwise

    Returns boolean

Methods

  • Parameters

    • scannedCallback: Function

      {function}

    • afterCallback: Function

      {function}

    • errorContainer: HTMLDivElement = null

      {HTMLDivElement}

    Returns void

  • returns the HTMLDiv element containing the QR-scanner only call this once.

    Returns HTMLDivElement

  • Returns Promise<void>