TcpPrinterConnector class
- Implemented types
Constructors
Properties
-
currentStatus
→ Stream<
TCPStatus> -
Gets the current state of the TCP module
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ TCPStatus
-
getter/setter pair
Methods
-
connect(
TcpPrinterInput model) → Future< bool> -
override
-
disconnect(
{int? delayMs}) → Future< bool> -
delayMs
: milliseconds to wait after destroying the socketoverride -
discovery(
{TcpPrinterInput? model}) → Stream< PrinterDevice> - Starts a scan for network printers.
-
getDefaultPrinter(
) → Future< String> -
override
-
listenSocket(
Ping ping) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
List< int> bytes) → Future<bool> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → TcpPrinterConnector
-
no setter
Static Methods
-
discoverPrinters(
{String? ipAddress, int? port, Duration? timeOut}) → Future< List< PrinterDiscovered< >TcpPrinterInfo> >