openScanner method

Future<OpenScannerResponse> openScanner(
  1. String scannerId
)

Opens a scanner for exclusive access. On success, the response containing a scanner handle and configuration will be sent to the callback. |scannerId| : Scanner id previously returned from getScannerList indicating which scanner should be opened. |callback| : Called with the result.

Implementation

Future<OpenScannerResponse> openScanner(String scannerId) async {
  var $res = await promiseToFuture<$js.OpenScannerResponse>(
      $js.chrome.documentScan.openScanner(scannerId));
  return OpenScannerResponse.fromJS($res);
}