Consume all pending events at once

This commit is contained in:
Ingvar Stepanyan
2021-07-26 13:25:51 +00:00
parent 92c785dc73
commit 36ed35192c
3 changed files with 19 additions and 11 deletions

2
libapi.mjs.d.ts vendored
View File

@@ -30,7 +30,7 @@ declare class Context {
): Promise<undefined>;
capturePreviewAsBlob(): Promise<Blob>;
captureImageAsFile(): Promise<File>;
hasPendingEvent(): Promise<boolean>;
consumeEvents(): Promise<boolean>;
supportedOps(): SupportedOps;
delete(): void;