danielleushuis-capacitor-camera-preview
Advanced tools
Comparing version 0.0.1-beta.20 to 0.0.1-beta.21
declare module "@capacitor/core" { | ||
interface PluginRegistry { | ||
CameraPreviewIos: CameraPreviewPlugin; | ||
CameraPreviewCapacitor: CameraPreviewPlugin; | ||
} | ||
@@ -5,0 +5,0 @@ } |
@@ -12,3 +12,3 @@ import { WebPlugin } from "@capacitor/core"; | ||
} | ||
declare const CameraPreview: CameraPreviewWeb; | ||
export { CameraPreview }; | ||
declare const CameraPreviewCapacitor: CameraPreviewWeb; | ||
export { CameraPreviewCapacitor }; |
@@ -13,3 +13,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
super({ | ||
name: "CameraPreview", | ||
name: "CameraPreviewCapacitor", | ||
platforms: ["web"] | ||
@@ -88,6 +88,6 @@ }); | ||
} | ||
const CameraPreview = new CameraPreviewWeb(); | ||
export { CameraPreview }; | ||
const CameraPreviewCapacitor = new CameraPreviewWeb(); | ||
export { CameraPreviewCapacitor }; | ||
import { registerWebPlugin } from "@capacitor/core"; | ||
registerWebPlugin(CameraPreview); | ||
registerWebPlugin(CameraPreviewCapacitor); | ||
//# sourceMappingURL=web.js.map |
{ | ||
"name": "danielleushuis-capacitor-camera-preview", | ||
"version": "0.0.1-beta.20", | ||
"version": "0.0.1-beta.21", | ||
"description": "Camera preview", | ||
@@ -27,3 +27,3 @@ "main": "dist/esm/index.js", | ||
"android/", | ||
"DanielleushuisCapacitorCameraPreview.podspec" | ||
"CameraPreviewCapacitor.podspec" | ||
], | ||
@@ -30,0 +30,0 @@ "keywords": [ |
@@ -99,5 +99,5 @@ # Capacitor Camera Preview | ||
const { CameraPreview } = Plugins | ||
const { CameraPreviewCapacitor } = Plugins | ||
CameraPreview.start(); | ||
CameraPreviewCapacitor.start(); | ||
``` | ||
@@ -118,3 +118,3 @@ | ||
```javascript | ||
CameraPreview.stop(); | ||
CameraPreviewCapacitor.stop(); | ||
``` | ||
@@ -151,3 +151,3 @@ | ||
```javascript | ||
const result = await CameraPreview.capture(); | ||
const result = await CameraPreviewCapacitor.capture(); | ||
const base64PictureData = result.value; | ||
@@ -154,0 +154,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1515560