MethodChannelTotemAlecto class
An implementation of TotemAlectoPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- TotemAlectoPlatform
- MethodChannelTotemAlecto
Constructors
Properties
- eventChannel → EventChannel
-
The event channel for 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
-
printerEvents
→ Stream<
PrinterEvent> -
Stream de eventos da impressora
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
beep(
{int times = 1, int duration = 100}) → Future< bool> -
Emite beep na impressora
override
-
connect(
String deviceName) → Future< bool> -
Conecta a um dispositivo USB pelo nome
override
-
connectByIds(
int vendorId, int productId) → Future< bool> -
Conecta ao dispositivo USB por Vendor ID e Product ID
override
-
cutPaper(
) → Future< bool> -
Corta o papel (corte total)
override
-
disconnect(
) → Future< bool> -
Desconecta da impressora
override
-
feedPaper(
{int lines = 1}) → Future< bool> -
Alimenta o papel
override
-
getPlatformVersion(
) → Future< String?> -
Retorna a versão da plataforma
override
-
hasPermission(
String deviceName) → Future< bool> -
Verifica se tem permissão para acessar o dispositivo USB
override
-
isConnected(
) → Future< bool> -
Verifica se está conectado à impressora
override
-
isSupported(
) → Future< bool> -
Verifica se o SDK USB é suportado neste dispositivo
override
-
listDevices(
) → Future< List< UsbDeviceInfo> > -
Lista todos os dispositivos USB disponíveis
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openCashDrawer(
{int pin = 2, int onTime = 100}) → Future< bool> -
Abre a gaveta de dinheiro
override
-
partialCutPaper(
) → Future< bool> -
Corte parcial do papel
override
-
printPicture(
Uint8List imageBytes, {int width = 0, TextAlignment alignment = TextAlignment.left, bool cutPaper = true}) → Future< PrintResult> -
Imprime uma imagem a partir de bytes
override
-
printPictureBase64(
String base64Image, {TextAlignment alignment = TextAlignment.left, bool cutPaper = true}) → Future< PrintResult> -
Imprime uma imagem a partir de string Base64
override
-
printText(
String text, {TextAlignment alignment = TextAlignment.left, bool cutPaper = true}) → Future< PrintResult> -
Imprime texto simples
override
-
printTextFormatted(
String text, {TextAlignment alignment = TextAlignment.left, FontAttributes fontAttributes = const FontAttributes(), int fontWidth = 0, int fontHeight = 0, int fontType = 0, bool cutPaper = true}) → Future< PrintResult> -
Imprime texto com formatação
override
-
requestPermission(
String deviceName) → Future< bool> -
Solicita permissão para acessar o dispositivo USB
override
-
runTest(
{int iterations = 10}) → Future< bool> -
Executa teste de conexão e impressão
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited