Committed by
GitHub
Merge pull request #460 from TarasBounty/patch-1
fix: Update switchCamera() documentation.
Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -283,9 +283,9 @@ class MobileScannerController { | @@ -283,9 +283,9 @@ class MobileScannerController { | ||
| 283 | await _methodChannel.invokeMethod('torch', torchState.value.index); | 283 | await _methodChannel.invokeMethod('torch', torchState.value.index); |
| 284 | } | 284 | } |
| 285 | 285 | ||
| 286 | - /// Switches the torch on or off. | 286 | + /// Changes the state of the camera (front or back). |
| 287 | /// | 287 | /// |
| 288 | - /// Only works if torch is available. | 288 | + /// Does nothing if the device has no front camera. |
| 289 | Future<void> switchCamera() async { | 289 | Future<void> switchCamera() async { |
| 290 | await _methodChannel.invokeMethod('stop'); | 290 | await _methodChannel.invokeMethod('stop'); |
| 291 | final CameraFacing facingToUse = | 291 | final CameraFacing facingToUse = |
-
Please register or login to post a comment