MethodChannelNtbpPlugin class

An implementation of NtbpPluginPlatform that uses method channels.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkDevicePairingStatus(String address) Future<String>
Check device pairing status
override
clearBuffer() Future<bool>
Clear the print buffer
override
clearPrintBuffer() Future<bool>
Clear the print buffer
override
connectToDevice(BluetoothDevice device) Future<bool>
Connect to a Bluetooth device
override
disconnect() Future<bool>
Disconnect from current device
override
executePrint(int copies, int labels) Future<bool>
Execute the print job
override
feedPaper(int lines) Future<bool>
Feed paper by specified number of lines
override
getConnectionStatus() Future<String>
Get connection status
override
getDetailedConnectionStatus() Future<Map<String, dynamic>>
Get detailed connection status for debugging
override
getDiscoveredDevices() Future<List<BluetoothDevice>>
Get list of discovered devices
override
getLabelPaperConfig(double width, double height, String unit) Future<Map<String, dynamic>>
Get label paper configuration for specific dimensions
override
getPlatformVersion() Future<String?>
override
getPrinterStatus() Future<Map<String, dynamic>>
Get printer status
override
getStoredPinCode(String address) Future<String?>
Get stored PIN code for a device
override
initializeProtocolPrinter(String printerModel, double labelWidth, double labelHeight, String unit, int dpi) Future<bool>
Initialize printer with protocol-specific settings
override
isBluetoothAvailable() Future<bool>
Check if Bluetooth is available on the device
override
isConnected() Future<bool>
Check if connected to a device
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
print(List<PrintCommand> commands) Future<bool>
Print text or commands
override
printBarcode(String data) Future<bool>
Print a barcode
override
printBarcodeAdvanced(String data, {double? x, double? y, int? rotation, String? codePage}) Future<bool>
Advanced barcode printing with positioning
override
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
override
printBlock(String text, {double? x, double? y, double? width, double? height, int? lineWidth, int? lineStyle}) Future<bool>
Print a block with text
override
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
override
printImage(String imagePath, {double? x, double? y, double? width, double? height}) Future<bool>
Print an image
override
printLabelSequence(List<Map<String, dynamic>> labelDataList) Future<bool>
Print sequence of labels from backend data
override
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
override
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
override
printQRCode(String data) Future<bool>
Print a QR code
override
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
override
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
override
printSmartLabel(Map<String, dynamic> labelData) Future<bool>
Print smart label with auto-positioning based on label size
override
printSmartSequence(List<Map<String, dynamic>> labelDataList) Future<bool>
Print a sequence of smart labels with gap detection
override
printText(String text) Future<bool>
Print a simple text string
override
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
override
printWithProtocol(String protocolName, Map<String, dynamic> printData) Future<bool>
Print using protocol system
override
removeStoredPinCode(String address) Future<bool>
Remove stored PIN code for a device
override
requestBluetoothPermissions() Future<bool>
Request Bluetooth permissions
override
requestDevicePairing(String address) Future<String>
Request device pairing
override
requestDevicePairingWithPin(String address, String pinCode) Future<String>
Request device pairing with PIN code
override
sendProtocolCommands(List<int> commands, String protocolName) Future<bool>
Send protocol commands to printer (for protocol system)
override
setPrintArea(double width, double height) Future<bool>
Set print area size
override
startScan() Future<void>
Start scanning for Bluetooth devices
override
stopScan() Future<void>
Stop scanning for Bluetooth devices
override
toString() String
A string representation of this object.
inherited

Operators

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