31 lines
854 B
Dart
31 lines
854 B
Dart
import 'dart:async';
|
|
import 'dart:typed_data';
|
|
|
|
import 'package:aman_kassa_flutter/core/base/base_service.dart';
|
|
import 'package:aman_kassa_flutter/core/models/bluetooth_device.dart';
|
|
|
|
// Stub implementation — bluetooth print disabled
|
|
class BluePrintService extends BaseService {
|
|
BluetoothDevice? _device;
|
|
|
|
Future<void> scan() async {}
|
|
|
|
Future<void> stopScan() async {}
|
|
|
|
Stream<List<BluetoothDevice>> get scanResult =>
|
|
Stream<List<BluetoothDevice>>.value([]);
|
|
|
|
Stream<bool> get isScanning => Stream<bool>.value(false);
|
|
|
|
Stream<int> get state => Stream<int>.value(0);
|
|
|
|
set device(BluetoothDevice device) => _device = device;
|
|
|
|
Future<bool> connect() async => false;
|
|
|
|
Future<bool> disconnect() async => true;
|
|
|
|
Future<bool> printBytes(Uint8List bytes,
|
|
{int chunkSizeBytes = 20, int queueSleepTimeMs = 20}) async => false;
|
|
}
|