Showing
1 changed file
with
3 additions
and
0 deletions
| @@ -179,6 +179,9 @@ class MobileScannerController extends ValueNotifier<MobileScannerState> { | @@ -179,6 +179,9 @@ class MobileScannerController extends ValueNotifier<MobileScannerState> { | ||
| 179 | /// Start scanning for barcodes. | 179 | /// Start scanning for barcodes. |
| 180 | /// Upon calling this method, the necessary camera permission will be requested. | 180 | /// Upon calling this method, the necessary camera permission will be requested. |
| 181 | /// | 181 | /// |
| 182 | + /// The [cameraDirection] can be used to specify the camera direction. | ||
| 183 | + /// If this is null, this defaults to the [facing] value. | ||
| 184 | + /// | ||
| 182 | /// Throws a [MobileScannerException] if starting the scanner failed. | 185 | /// Throws a [MobileScannerException] if starting the scanner failed. |
| 183 | Future<void> start({CameraFacing? cameraDirection}) async { | 186 | Future<void> start({CameraFacing? cameraDirection}) async { |
| 184 | if (_isDisposed) { | 187 | if (_isDisposed) { |
-
Please register or login to post a comment