MethodChannelSupvanPrinter class
Implementation of SupvanPrinterPlatform using MethodChannel + EventChannel.
- Inheritance
-
- Object
- PlatformInterface
- SupvanPrinterPlatform
- MethodChannelSupvanPrinter
Constructors
Properties
-
connectionState
→ Stream<
PrinterConnectionState> -
Stream of connection state changes.
no setteroverride
- 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 setteroverride
Methods
-
cancelPrint(
) → Future< void> -
Cancel the current print job (iOS only, no-op on Android).
override
-
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.override -
disconnect(
) → Future< bool> -
Disconnect from the current printer.
override
-
getStatus(
) → Future< PrinterStatus> -
Get current printer status.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
print(
PrintJob job) → Future< bool> -
Submit a print job.
override
-
startScan(
) → Future< void> -
Start scanning for Bluetooth printers.
override
-
stopScan(
) → Future< void> -
Stop scanning for Bluetooth printers.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited