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-11-27 17:08:13 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1c9e0f5b23865583a481598f4adefb29d566cacf
1c9e0f5b
1 parent
5a2d63cb
add a stub for the start method
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
lib/src/web/barcode_reader.dart
lib/src/web/barcode_reader.dart
View file @
1c9e0f5
...
...
@@ -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/start_options.dart'
;
import
'package:web/web.dart'
;
/// This class represents the base interface for a barcode reader implementation.
...
...
@@ -71,6 +72,14 @@ abstract class BarcodeReader {
throw
UnimplementedError
(
'setTorchState() has not been implemented.'
);
}
/// Start the barcode reader and initialize the video stream.
///
/// The [options] are used to configure the barcode reader.
/// The [containerElement] will become the parent of the video output element.
Future
<
void
>
start
(
StartOptions
options
,
{
required
HTMLElement
containerElement
})
{
throw
UnimplementedError
(
'start() has not been implemented.'
);
}
/// Stop the barcode reader and dispose of the video stream.
Future
<
void
>
stop
()
{
throw
UnimplementedError
(
'stop() has not been implemented.'
);
...
...
Please
register
or
login
to post a comment