PrinterManager class

Class for communicating with Zebra printers using Link-OS SDK

Constructors

PrinterManager()
Factory constructor
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
onConnectionStateChanged ↔ void Function(Map<String, dynamic> info)?
Callback for when connection state changes
getter/setter pair
onDiscoveryFinished ↔ void Function(List<DiscoveredPrinter> printers)?
Callback for when discovery is finished
getter/setter pair
onPrinterFound ↔ void Function(DiscoveredPrinter printer)?
Callback for when a printer is found during discovery
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkPrinterStatus(String macAddress) Future<PrinterStatus>
Checks the printer status
connect(String address) Future<bool>
Connects to a Zebra printer and maintains the connection
disconnect({String? address}) Future<bool>
Disconnects from a Zebra printer
getPairedPrinters() Future<List<BluetoothDevice>>
Gets paired (bonded) Bluetooth devices Uses Android Bluetooth API to get bonded devices
getPrinterInfo(String macAddress) Future<PrinterInfo>
Gets information about the printer
isConnected({String? address}) Future<bool>
Checks if printer is currently connected
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printTestLabel(String macAddress) Future<String>
Prints a test label
sendCpclToPrinter(String macAddress, String cpclData, String charsetName) Future<String>
Sends CPCL code to the printer
sendZplToPrinter(String macAddress, String zplData) Future<String>
Sends ZPL code to the printer
startDiscovery({String type = 'both'}) Future<List<DiscoveredPrinter>>
Starts discovering Zebra printers using Zebra Link-OS SDK
stopDiscovery() Future<bool>
Stops the printer discovery process
toString() String
A string representation of this object.
inherited
unpairPrinter(String address) Future<bool>
Unpairs a Bluetooth device Uses Android Bluetooth API to remove bonding

Operators

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