- Inheritance
-
- Object
- PlatformInterface
- NtbpPluginPlatform
- Implementers
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkDevicePairingStatus(String address)
→ Future<String>
-
Check device pairing status
-
clearBuffer()
→ Future<bool>
-
Clear the print buffer
-
clearPrintBuffer()
→ Future<bool>
-
Clear the print buffer
-
connectToDevice(BluetoothDevice device)
→ Future<bool>
-
Connect to a Bluetooth device
-
disconnect()
→ Future<bool>
-
Disconnect from current device
-
executePrint(int copies, int labels)
→ Future<bool>
-
Execute the print job
-
feedPaper(int lines)
→ Future<bool>
-
Feed paper by specified number of lines
-
getConnectionStatus()
→ Future<String>
-
Get connection status
-
getDetailedConnectionStatus()
→ Future<Map<String, dynamic>>
-
Get detailed connection status for debugging
-
getDiscoveredDevices()
→ Future<List<BluetoothDevice>>
-
Get list of discovered devices
-
getLabelPaperConfig(double width, double height, String unit)
→ Future<Map<String, dynamic>>
-
Get label paper configuration for specific dimensions
-
getPlatformVersion()
→ Future<String?>
-
-
getPrinterStatus()
→ Future<Map<String, dynamic>>
-
Get printer status
-
getStoredPinCode(String address)
→ Future<String?>
-
Get stored PIN code for a device
-
initializeProtocolPrinter(String printerModel, double labelWidth, double labelHeight, String unit, int dpi)
→ Future<bool>
-
Initialize printer with protocol-specific settings
-
isBluetoothAvailable()
→ Future<bool>
-
Check if Bluetooth is available on the device
-
isConnected()
→ Future<bool>
-
Check if connected to a device
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
print(List<PrintCommand> commands)
→ Future<bool>
-
Print text or commands
-
printBarcode(String data)
→ Future<bool>
-
Print a barcode
-
printBarcodeAdvanced(String data, {double? x, double? y, int? rotation, String? codePage})
→ Future<bool>
-
Advanced barcode printing with positioning
-
printBarcodeWithText(String barcodeData, String textData, {double? x, double? y, int? barcodeHeight, int? textFont, double? textScale})
→ Future<bool>
-
Print barcode with text below it in one operation
-
printBlock(String text, {double? x, double? y, double? width, double? height, int? lineWidth, int? lineStyle})
→ Future<bool>
-
Print a block with text
-
printCustomLabel({required String qrData, required String textData, required double width, required double height, String? unit, int? dpi, double? qrSize, double? textSize})
→ Future<bool>
-
Print custom label with user-defined dimensions and sizes
-
printImage(String imagePath, {double? x, double? y, double? width, double? height})
→ Future<bool>
-
Print an image
-
printLabelSequence(List<Map<String, dynamic>> labelDataList)
→ Future<bool>
-
Print sequence of labels from backend data
-
printMultipleLabelsWithGapDetection({required List<Map<String, dynamic>> labelDataList, required double width, required double height, String? unit, int? dpi, int? copiesPerLabel, int? textSize})
→ Future<bool>
-
Print multiple labels with different content and proper gap detection
-
printProfessionalLabel({required String qrData, required String textData, required double labelWidth, required double labelHeight, String? labelUnit, int? dpi, int? copies, String? speedMode})
→ Future<bool>
-
Print professional label with QR code and text positioning
-
printQRCode(String data)
→ Future<bool>
-
Print a QR code
-
printQRCodeAdvanced(String data, {double? x, double? y, String? size, String? errorCorrection, String? model, int? rotation})
→ Future<bool>
-
Advanced QR code printing with positioning and options
-
printSingleLabelWithGapDetection({required String qrData, required String textData1, required String textData2, required String textData3, required double width, required double height, String? unit, int? dpi, int? copies, int? textSize})
→ Future<bool>
-
Print single label with gap detection and proper positioning
-
printSmartLabel(Map<String, dynamic> labelData)
→ Future<bool>
-
Print smart label with auto-positioning based on label size
-
printSmartSequence(List<Map<String, dynamic>> labelDataList)
→ Future<bool>
-
Print a sequence of smart labels with gap detection
-
printText(String text)
→ Future<bool>
-
Print a simple text string
-
printTextAdvanced(String text, {double? x, double? y, int? fontNumber, String? codePage, int? rotation, double? xMultiplication, double? yMultiplication})
→ Future<bool>
-
Advanced text printing with positioning and formatting
-
printWithProtocol(String protocolName, Map<String, dynamic> printData)
→ Future<bool>
-
Print using protocol system
-
removeStoredPinCode(String address)
→ Future<bool>
-
Remove stored PIN code for a device
-
requestBluetoothPermissions()
→ Future<bool>
-
Request Bluetooth permissions
-
requestDevicePairing(String address)
→ Future<String>
-
Request device pairing
-
requestDevicePairingWithPin(String address, String pinCode)
→ Future<String>
-
Request device pairing with PIN code
-
sendProtocolCommands(List<int> commands, String protocolName)
→ Future<bool>
-
Send protocol commands to printer (for protocol system)
-
setPrintArea(double width, double height)
→ Future<bool>
-
Set print area size
-
startScan()
→ Future<void>
-
Start scanning for Bluetooth devices
-
stopScan()
→ Future<void>
-
Stop scanning for Bluetooth devices
-
toString()
→ String
-
A string representation of this object.
inherited