forked from jsnbuchanan/crowd-funder-for-time-pwa
feat(qr-scanner): Add camera state management to CapacitorQRScanner
- Add camera state tracking and listener management - Implement addCameraStateListener and removeCameraStateListener methods - Add state transitions during scanning operations - Improve error handling with state updates - Add proper type imports for CameraState and CameraStateListener This change ensures CapacitorQRScanner fully implements the QRScannerService interface and provides proper camera state feedback to consumers. Camera state is now tracked through the entire lifecycle of scanning operations, with appropriate state transitions for initialization, active scanning, errors, and cleanup.
This commit is contained in:
@@ -129,7 +129,7 @@ export async function registerMigrations(): Promise<void> {
|
||||
export async function runMigrations(
|
||||
sqlExec: (
|
||||
sql: string,
|
||||
params?: SqlValue[],
|
||||
params?: unknown[],
|
||||
) => Promise<Array<QueryExecResult>>,
|
||||
): Promise<void> {
|
||||
await registerMigrations();
|
||||
|
||||
Reference in New Issue
Block a user