StartScanResponse constructor

StartScanResponse({
  1. required String scannerHandle,
  2. required OperationResult result,
  3. String? job,
})

Implementation

StartScanResponse({
  /// Provides the same scanner handle that was passed to
  /// `startScan()`.
  required String scannerHandle,

  /// The result of starting a scan. If the value of this is
  /// `SUCCESS`, the `job` property will be populated.
  required OperationResult result,

  /// If `result` is `SUCCESS`, provides a
  /// handle that can be used to read scan data or cancel the job.
  String? job,
}) : _wrapped = $js.StartScanResponse(
        scannerHandle: scannerHandle,
        result: result.toJS,
        job: job,
      );