ScannerInfo constructor
ScannerInfo({})
Implementation
ScannerInfo({
/// The ID of a specific scanner.
required String scannerId,
/// A human-readable name for the scanner to display in the UI.
required String name,
/// The scanner manufacturer.
required String manufacturer,
/// The scanner model if it is available, or a generic description.
required String model,
/// For matching against other `ScannerInfo` entries that point
/// to the same physical device.
required String deviceUuid,
/// Indicates how the scanner is connected to the computer.
required ConnectionType connectionType,
/// If true, the scanner connection's transport cannot be intercepted by a
/// passive listener, such as TLS or USB.
required bool secure,
/// An array of MIME types that can be requested for returned scans.
required List<String> imageFormats,
/// A human-readable description of the protocol or driver used to
/// access the scanner, such as Mopria, WSD, or epsonds. This is primarily
/// useful for allowing a user to choose between protocols if a device
/// supports multiple protocols.
required String protocolType,
}) : _wrapped = $js.ScannerInfo(
scannerId: scannerId,
name: name,
manufacturer: manufacturer,
model: model,
deviceUuid: deviceUuid,
connectionType: connectionType.toJS,
secure: secure,
imageFormats: imageFormats.toJSArray((e) => e.toJS),
protocolType: protocolType,
);