capacitor-community-multilens-camerapreview 0.0.11-a → 5.0.1
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/CapacitorCommunityMultilensCamerapreview.podspec +17 -17
- package/README.md +16 -26
- package/android/build.gradle +55 -55
- package/android/src/main/AndroidManifest.xml +4 -4
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraActivity.java +1008 -1008
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraPreview.java +544 -544
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CustomSurfaceView.java +23 -23
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CustomTextureView.java +29 -29
- package/android/src/main/java/com/ahm/capacitor/camera/preview/Preview.java +386 -386
- package/android/src/main/java/com/ahm/capacitor/camera/preview/TapGestureDetector.java +24 -24
- package/android/src/main/res/layout/bridge_layout_main.xml +15 -15
- package/android/src/main/res/layout/camera_activity.xml +68 -68
- package/android/src/main/res/values/camera_ids.xml +4 -4
- package/android/src/main/res/values/camera_theme.xml +9 -9
- package/android/src/main/res/values/colors.xml +3 -3
- package/android/src/main/res/values/strings.xml +3 -3
- package/android/src/main/res/values/styles.xml +3 -3
- package/dist/docs.json +1 -11
- package/dist/esm/definitions.d.ts +80 -81
- package/dist/esm/definitions.js +1 -1
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +4 -4
- package/dist/esm/index.js +6 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +28 -29
- package/dist/esm/web.js +155 -158
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +149 -152
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +149 -152
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/CameraController.swift +733 -783
- package/ios/Plugin/Info.plist +24 -24
- package/ios/Plugin/Plugin.h +10 -10
- package/ios/Plugin/Plugin.m +18 -19
- package/ios/Plugin/Plugin.swift +308 -316
- package/package.json +78 -78
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
package com.ahm.capacitor.camera.preview;
|
|
2
|
-
|
|
3
|
-
import android.content.Context;
|
|
4
|
-
import android.view.SurfaceHolder;
|
|
5
|
-
import android.view.SurfaceView;
|
|
6
|
-
|
|
7
|
-
class CustomSurfaceView extends SurfaceView implements SurfaceHolder.Callback {
|
|
8
|
-
|
|
9
|
-
private final String TAG = "CustomSurfaceView";
|
|
10
|
-
|
|
11
|
-
CustomSurfaceView(Context context) {
|
|
12
|
-
super(context);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@Override
|
|
16
|
-
public void surfaceCreated(SurfaceHolder holder) {}
|
|
17
|
-
|
|
18
|
-
@Override
|
|
19
|
-
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {}
|
|
20
|
-
|
|
21
|
-
@Override
|
|
22
|
-
public void surfaceDestroyed(SurfaceHolder holder) {}
|
|
23
|
-
}
|
|
1
|
+
package com.ahm.capacitor.camera.preview;
|
|
2
|
+
|
|
3
|
+
import android.content.Context;
|
|
4
|
+
import android.view.SurfaceHolder;
|
|
5
|
+
import android.view.SurfaceView;
|
|
6
|
+
|
|
7
|
+
class CustomSurfaceView extends SurfaceView implements SurfaceHolder.Callback {
|
|
8
|
+
|
|
9
|
+
private final String TAG = "CustomSurfaceView";
|
|
10
|
+
|
|
11
|
+
CustomSurfaceView(Context context) {
|
|
12
|
+
super(context);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@Override
|
|
16
|
+
public void surfaceCreated(SurfaceHolder holder) {}
|
|
17
|
+
|
|
18
|
+
@Override
|
|
19
|
+
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {}
|
|
20
|
+
|
|
21
|
+
@Override
|
|
22
|
+
public void surfaceDestroyed(SurfaceHolder holder) {}
|
|
23
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
package com.ahm.capacitor.camera.preview;
|
|
2
|
-
|
|
3
|
-
import android.content.Context;
|
|
4
|
-
import android.graphics.SurfaceTexture;
|
|
5
|
-
import android.view.SurfaceHolder;
|
|
6
|
-
import android.view.TextureView;
|
|
7
|
-
|
|
8
|
-
class CustomTextureView extends TextureView implements TextureView.SurfaceTextureListener {
|
|
9
|
-
|
|
10
|
-
private final String TAG = "CustomTextureView";
|
|
11
|
-
|
|
12
|
-
CustomTextureView(Context context) {
|
|
13
|
-
super(context);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@Override
|
|
17
|
-
public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {}
|
|
18
|
-
|
|
19
|
-
@Override
|
|
20
|
-
public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {}
|
|
21
|
-
|
|
22
|
-
@Override
|
|
23
|
-
public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@Override
|
|
28
|
-
public void onSurfaceTextureUpdated(SurfaceTexture surface) {}
|
|
29
|
-
}
|
|
1
|
+
package com.ahm.capacitor.camera.preview;
|
|
2
|
+
|
|
3
|
+
import android.content.Context;
|
|
4
|
+
import android.graphics.SurfaceTexture;
|
|
5
|
+
import android.view.SurfaceHolder;
|
|
6
|
+
import android.view.TextureView;
|
|
7
|
+
|
|
8
|
+
class CustomTextureView extends TextureView implements TextureView.SurfaceTextureListener {
|
|
9
|
+
|
|
10
|
+
private final String TAG = "CustomTextureView";
|
|
11
|
+
|
|
12
|
+
CustomTextureView(Context context) {
|
|
13
|
+
super(context);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@Override
|
|
17
|
+
public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {}
|
|
18
|
+
|
|
19
|
+
@Override
|
|
20
|
+
public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {}
|
|
21
|
+
|
|
22
|
+
@Override
|
|
23
|
+
public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@Override
|
|
28
|
+
public void onSurfaceTextureUpdated(SurfaceTexture surface) {}
|
|
29
|
+
}
|