NyxPrinterPlatform class abstract
Abstract class that serves as the platform interface for the Nyx Printer.
This class defines the common methods for interacting with the Nyx printer across different platforms (iOS, Android). Platform-specific implementations should extend this class and override the methods to perform actual printer operations.
- Inheritance
-
- Object
- PlatformInterface
- NyxPrinterPlatform
- Implementers
Constructors
- NyxPrinterPlatform()
- The constructor for NyxPrinterPlatform.
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
-
getVersion(
) → Future< int?> - Retrieves the version of the connected printer.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paperOut(
) → Future< int?> - Checks if the printer is out of paper.
-
printBarcode(
String text, int width, int height) → Future< int?> - Prints a barcode with the specified data and dimensions.
-
printBitmap(
Uint8List bytes) → Future< int?> - Prints a bitmap image provided as a byte array.
-
printQrCode(
String text, int width, int height) → Future< int?> - Prints a QR code with the specified data and dimensions.
-
printText(
String text, NyxTextFormat textFormat) → Future< int?> - Prints the provided text with the specified text format.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ NyxPrinterPlatform
-
Gets the current instance of the platform interface.
getter/setter pair