UNPKG

ngx-html5-qrcode

Version:

This is the angular adaptation of the "**[HTML5 QRCode](https://github.com/mebjas/html5-qrcode)**". For the documentation please have a look at https://github.com/mebjas/html5-qrcode.

24 lines (23 loc) 1.25 kB
import { AfterViewInit, ElementRef, OnDestroy, OnInit, EventEmitter } from '@angular/core'; import { Html5Qrcode } from "html5-qrcode"; import { Html5QrcodeCameraScanConfig } from "html5-qrcode/esm/html5-qrcode"; import { Html5QrcodeResult } from "html5-qrcode/esm/core"; import * as i0 from "@angular/core"; export declare class NgxHtml5QrcodeComponent implements OnInit, AfterViewInit, OnDestroy { reader: ElementRef | undefined; html5QrCode: Html5Qrcode; cameraId: string; useFrontCamera: boolean; config: Html5QrcodeCameraScanConfig; decodedText: EventEmitter<string>; decodedResult: EventEmitter<Html5QrcodeResult>; constructor(); ngOnInit(): void; ngAfterViewInit(): void; qrCodeSuccessCallback(decodedText: any, decodedResult: Html5QrcodeResult): void; qrCodeErrorCallback(errorMessage: any): void; startHtmlQrCode(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NgxHtml5QrcodeComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NgxHtml5QrcodeComponent, "html5-qrcode", never, { "useFrontCamera": "useFrontCamera"; "config": "config"; }, { "decodedText": "decodedText"; "decodedResult": "decodedResult"; }, never, never>; }