@capgo/camera-preview 7.24.8 → 7.24.10

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.
package/README.md CHANGED
@@ -18,6 +18,21 @@
18
18
  <p>
19
19
  Capacitor plugin that allows camera interaction from Javascript and HTML<br>(based on cordova-plugin-camera-preview).
20
20
  </p>
21
+
22
+ ## Why Camera Preview?
23
+
24
+ A **free**, **fully-featured** alternative to paid camera plugins, built for maximum flexibility and performance:
25
+
26
+ - **Complete UI control** - Build your own camera interface with HTML/JS overlays instead of native constraints
27
+ - **Full hardware access** - Manual focus, zoom, exposure controls, flash modes, multiple cameras
28
+ - **Video recording** - Record with custom settings, no arbitrary limitations
29
+ - **Universal device support** - Tested across hundreds of Android and iOS devices
30
+ - **Performance optimized** - Direct camera stream access, efficient memory usage
31
+ - **Modern package management** - Supports both Swift Package Manager (SPM) and CocoaPods (SPM-ready for Capacitor 8)
32
+ - **Same JavaScript API** - Compatible interface with paid alternatives
33
+
34
+ Unlike restrictive paid plugins, you get full camera control to build exactly the experience you want - from QR scanners to professional video apps.
35
+
21
36
  <br>
22
37
 
23
38
  This plugin is compatible Capacitor 7 and above.
@@ -63,7 +63,7 @@ import org.json.JSONObject;
63
63
  )
64
64
  public class CameraPreview extends Plugin implements CameraXView.CameraXViewListener {
65
65
 
66
- private final String PLUGIN_VERSION = "";
66
+ private final String pluginVersion = "";
67
67
 
68
68
  @Override
69
69
  protected void handleOnPause() {
@@ -1947,7 +1947,7 @@ public class CameraPreview extends Plugin implements CameraXView.CameraXViewList
1947
1947
  public void getPluginVersion(final PluginCall call) {
1948
1948
  try {
1949
1949
  final JSObject ret = new JSObject();
1950
- ret.put("version", this.PLUGIN_VERSION);
1950
+ ret.put("version", this.pluginVersion);
1951
1951
  call.resolve(ret);
1952
1952
  } catch (final Exception e) {
1953
1953
  call.reject("Could not get plugin version", e);
@@ -34,7 +34,7 @@ extension UIWindow {
34
34
  */
35
35
  @objc(CameraPreview)
36
36
  public class CameraPreview: CAPPlugin, CAPBridgedPlugin, CLLocationManagerDelegate {
37
- private let PLUGIN_VERSION: String = "7.24.8"
37
+ private let pluginVersion: String = "7.24.10"
38
38
  public let identifier = "CameraPreviewPlugin"
39
39
  public let jsName = "CameraPreview"
40
40
  public let pluginMethods: [CAPPluginMethod] = [
@@ -2196,7 +2196,7 @@ public class CameraPreview: CAPPlugin, CAPBridgedPlugin, CLLocationManagerDelega
2196
2196
  }
2197
2197
 
2198
2198
  @objc func getPluginVersion(_ call: CAPPluginCall) {
2199
- call.resolve(["version": self.PLUGIN_VERSION])
2199
+ call.resolve(["version": self.pluginVersion])
2200
2200
  }
2201
2201
 
2202
2202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/camera-preview",
3
- "version": "7.24.8",
3
+ "version": "7.24.10",
4
4
  "description": "Camera preview",
5
5
  "license": "MIT",
6
6
  "repository": {