SupvanPrinterPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • SupvanPrinterPlatform
Implementers

Constructors

SupvanPrinterPlatform()

Properties

connectionState Stream<PrinterConnectionState>
Stream of connection state changes.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanResults Stream<PrinterDevice>
Stream of discovered devices during scanning.
no setter

Methods

cancelPrint() Future<void>
Cancel the current print job (iOS only, no-op on Android).
connect(String deviceId, {bool bypassWhitelist = false}) Future<bool>
Connect to a printer by device id. bypassWhitelist (Android only) uses reflection to bypass SDK device name whitelist check.
disconnect() Future<bool>
Disconnect from the current printer.
getStatus() Future<PrinterStatus>
Get current printer status.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
print(PrintJob job) Future<bool>
Submit a print job.
startScan() Future<void>
Start scanning for Bluetooth printers.
stopScan() Future<void>
Stop scanning for Bluetooth printers.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance SupvanPrinterPlatform
getter/setter pair