Skip to content

Commit

Permalink
add some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dwikyhardi committed Nov 20, 2024
1 parent 5d1ac3f commit f7ebe34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/src/mobile_scanner_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,11 @@ class MobileScannerController extends ValueNotifier<MobileScannerState> {
await MobileScannerPlatform.instance.dispose();
}

/// Exposes the [addBarcode] method.
///
/// This method is used for adding a barcode to the barcode stream.
/// so when using [analyzeImage] the return value
/// can be used in [MobileScanner] using [onDetect] callback.
void addBarcode(BarcodeCapture? barcode) {
if (_barcodesController.isClosed || barcode == null) {
return;
Expand Down

0 comments on commit f7ebe34

Please sign in to comment.