@capgo/camera-preview 7.24.10 → 7.24.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -427,6 +427,11 @@ public class CameraPreview extends Plugin implements CameraXView.CameraXViewList
|
|
|
427
427
|
call.reject("flashMode required parameter is missing");
|
|
428
428
|
return;
|
|
429
429
|
}
|
|
430
|
+
|
|
431
|
+
if (cameraXView == null || !cameraXView.isRunning()) {
|
|
432
|
+
call.reject("Camera is not running");
|
|
433
|
+
return;
|
|
434
|
+
}
|
|
430
435
|
cameraXView.setFlashMode(flashMode);
|
|
431
436
|
call.resolve();
|
|
432
437
|
}
|
|
@@ -34,7 +34,7 @@ extension UIWindow {
|
|
|
34
34
|
*/
|
|
35
35
|
@objc(CameraPreview)
|
|
36
36
|
public class CameraPreview: CAPPlugin, CAPBridgedPlugin, CLLocationManagerDelegate {
|
|
37
|
-
private let pluginVersion: String = "7.24.
|
|
37
|
+
private let pluginVersion: String = "7.24.11"
|
|
38
38
|
public let identifier = "CameraPreviewPlugin"
|
|
39
39
|
public let jsName = "CameraPreview"
|
|
40
40
|
public let pluginMethods: [CAPPluginMethod] = [
|