flutter plugin for zebra multiplatform sdk

flutter_zsdk_platform_interface.dart 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import 'package:flutter_zsdk/src/models/bluetooth_printer.dart';
  2. import 'package:plugin_platform_interface/plugin_platform_interface.dart';
  3. import 'flutter_zsdk_method_channel.dart';
  4. abstract class FlutterZsdkPlatform extends PlatformInterface {
  5. /// Constructs a FlutterZsdkPlatform.
  6. FlutterZsdkPlatform() : super(token: _token);
  7. static final Object _token = Object();
  8. static FlutterZsdkPlatform _instance = MethodChannelFlutterZsdk();
  9. /// The default instance of [FlutterZsdkPlatform] to use.
  10. ///
  11. /// Defaults to [MethodChannelFlutterZsdk].
  12. static FlutterZsdkPlatform get instance => _instance;
  13. /// Platform-specific implementations should set this with their own
  14. /// platform-specific class that extends [FlutterZsdkPlatform] when
  15. /// they register themselves.
  16. static set instance(FlutterZsdkPlatform instance) {
  17. PlatformInterface.verifyToken(instance, _token);
  18. _instance = instance;
  19. }
  20. Future<String?> getPlatformVersion() {
  21. throw UnimplementedError('platformVersion() has not been implemented.');
  22. }
  23. Future<Stream<dynamic>> findBluetoothPrinters() {
  24. throw UnimplementedError('findBluetoothPrinters() has not been implemented.');
  25. }
  26. Future<void> openConnection(String macAddress) {
  27. throw UnimplementedError('openConnection() has not been implemented.');
  28. }
  29. Future<bool> isConnected() {
  30. throw UnimplementedError('isConnected() has not been implemented.');
  31. }
  32. Future<void> closeConnection() {
  33. throw UnimplementedError('closeConnection() has not been implemented.');
  34. }
  35. Future<void> printZplOverBluetooth() {
  36. throw UnimplementedError('printZplOverBluetooth() has not been implemented.');
  37. }
  38. }