closeScanner method
Closes a previously opened scanner handle. A response indicating the
outcome will be sent to the callback. Even if the response is not a
success, the supplied handle will become invalid and should not be used
for further operations.
|scannerHandle| : Open scanner handle previously returned from
openScanner
.
|callback| : Called with the result.
Implementation
Future<CloseScannerResponse> closeScanner(String scannerHandle) async {
var $res = await promiseToFuture<$js.CloseScannerResponse>(
$js.chrome.documentScan.closeScanner(scannerHandle));
return CloseScannerResponse.fromJS($res);
}