Navaron Bracke

add stream getters to platform interface

@@ -27,6 +27,21 @@ abstract class MobileScannerPlatform extends PlatformInterface { @@ -27,6 +27,21 @@ abstract class MobileScannerPlatform extends PlatformInterface {
27 _instance = instance; 27 _instance = instance;
28 } 28 }
29 29
  30 + /// Get the stream of barcode captures.
  31 + Stream<BarcodeCapture?> get barcodesStream {
  32 + throw UnimplementedError('barcodesStream has not been implemented.');
  33 + }
  34 +
  35 + /// Get the stream of torch state changes.
  36 + Stream<TorchState> get torchStateStream {
  37 + throw UnimplementedError('torchStateStream has not been implemented.');
  38 + }
  39 +
  40 + /// Get the stream of zoom scale changes.
  41 + Stream<double> get zoomScaleStateStream {
  42 + throw UnimplementedError('zoomScaleStateStream has not been implemented.');
  43 + }
  44 +
30 /// Analyze a local image file for barcodes. 45 /// Analyze a local image file for barcodes.
31 /// 46 ///
32 /// The [path] is the path to the file on disk. 47 /// The [path] is the path to the file on disk.