MethodChannelBleGprinter class
An implementation of BleGprinterPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- BleGprinterPlatform
- MethodChannelBleGprinter
Constructors
Properties
- eventChannel → EventChannel
-
The event channel used to receive printer events.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
-
onPrinterEvent
→ Stream<
Map< String, dynamic> > -
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connectPrinter(
String deviceAddress, String deviceName) → Future< bool> -
override
-
disconnectPrinter(
) → Future< bool> -
override
-
getPlatformVersion(
) → Future< String?> -
override
-
getPrinterStatus(
{int instruction = 1}) → Future< Map< String, dynamic> > -
override
-
isConnected(
) → Future< bool> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printPdf(
String pdfPath, {int width = 70, int height = 50, int dpi = 300, int density = 11, int speed = 2, int paperType = 1, int instruction = 1}) → Future< Map< String, dynamic> > -
override
-
searchPrinters(
{bool onlyGprinter = true}) → Future< bool> -
override
-
stopSearch(
) → Future< bool> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited