- Inheritance
-
- Object
- PlatformInterface
- TotemAlectoPlatform
- Implementers
Methods
-
beep({int times = 1, int duration = 100})
→ Future<bool>
-
Emite beep na impressora
-
connect(String deviceName)
→ Future<bool>
-
Conecta a um dispositivo USB pelo nome
-
connectByIds(int vendorId, int productId)
→ Future<bool>
-
Conecta ao dispositivo USB por Vendor ID e Product ID
-
cutPaper()
→ Future<bool>
-
Corta o papel (corte total)
-
disconnect()
→ Future<bool>
-
Desconecta da impressora
-
feedPaper({int lines = 1})
→ Future<bool>
-
Alimenta o papel
-
getPlatformVersion()
→ Future<String?>
-
Retorna a versão da plataforma
-
hasPermission(String deviceName)
→ Future<bool>
-
Verifica se tem permissão para acessar o dispositivo USB
-
isConnected()
→ Future<bool>
-
Verifica se está conectado à impressora
-
isSupported()
→ Future<bool>
-
Verifica se o SDK USB é suportado neste dispositivo
-
listDevices()
→ Future<List<UsbDeviceInfo>>
-
Lista todos os dispositivos USB disponíveis
-
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
-
partialCutPaper()
→ Future<bool>
-
Corte parcial do papel
-
printPicture(Uint8List imageBytes, {int width = 0, TextAlignment alignment = TextAlignment.left, bool cutPaper = true})
→ Future<PrintResult>
-
Imprime uma imagem a partir de bytes
-
printPictureBase64(String base64Image, {TextAlignment alignment = TextAlignment.left, bool cutPaper = true})
→ Future<PrintResult>
-
Imprime uma imagem a partir de string Base64
-
printText(String text, {TextAlignment alignment = TextAlignment.left, bool cutPaper = true})
→ Future<PrintResult>
-
Imprime texto simples
-
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
-
requestPermission(String deviceName)
→ Future<bool>
-
Solicita permissão para acessar o dispositivo USB
-
runTest({int iterations = 10})
→ Future<bool>
-
Executa teste de conexão e impressão
-
toString()
→ String
-
A string representation of this object.
inherited