@iotize/ionic
Version:
Iotize specific building blocks on top of @ionic/angular.
23 lines (22 loc) • 1.12 kB
TypeScript
import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
import { Subscription } from 'rxjs';
import { ProtocolSelectedEvent } from '../api';
import { DeviceScanner } from '@iotize/tap/scanner/api';
import * as i0 from "@angular/core";
export declare class TapScannerWebBluetoothComponent implements OnInit, OnDestroy {
scanner: DeviceScanner<any>;
onProtocolSelected: EventEmitter<ProtocolSelectedEvent>;
showScanButton: boolean;
isScanning: boolean;
isLoadingDevice: boolean;
error?: Error;
deviceSubscription?: Subscription;
errorSubscription?: Subscription;
constructor(scanner: DeviceScanner<any>);
ngOnInit(): Promise<void>;
ngOnDestroy(): void;
startScan(): Promise<void>;
onError(error: Error): void;
static ɵfac: i0.ɵɵFactoryDeclaration<TapScannerWebBluetoothComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TapScannerWebBluetoothComponent, "tap-scanner-web-bluetooth", never, { "showScanButton": { "alias": "showScanButton"; "required": false; }; }, { "onProtocolSelected": "onProtocolSelected"; }, never, never, false, never>;
}