Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Navaron Bracke
2023-12-05 14:00:02 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
50438b2a52cb248a701ff0dbeaf1f8393e1bafe3
50438b2a
1 parent
831adf00
add detect method to barcode reader interface
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
lib/src/web/barcode_reader.dart
lib/src/web/barcode_reader.dart
View file @
50438b2
...
...
@@ -5,6 +5,7 @@ import 'package:js/js.dart';
import
'package:mobile_scanner/src/enums/mobile_scanner_error_code.dart'
;
import
'package:mobile_scanner/src/enums/torch_state.dart'
;
import
'package:mobile_scanner/src/mobile_scanner_exception.dart'
;
import
'package:mobile_scanner/src/objects/barcode_capture.dart'
;
import
'package:mobile_scanner/src/objects/start_options.dart'
;
import
'package:web/web.dart'
;
...
...
@@ -21,6 +22,13 @@ abstract class BarcodeReader {
/// The script url for the barcode library.
String
get
scriptUrl
;
/// Start detecting barcodes.
///
/// The returned stream will emit a [BarcodeCapture] for each detected barcode.
Stream
<
BarcodeCapture
>
detectBarcodes
()
{
throw
UnimplementedError
(
'detectBarcodes() has not been implemented.'
);
}
/// Load the barcode reader library.
///
/// Does nothing if the library is already loaded.
...
...
Please
register
or
login
to post a comment