File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ Or if you use Maven :
44
44
45
45
cam.setCameraCallback(new EZCamCallback() {
46
46
@Override
47
- public void onCameraReady() {
47
+ public void onCameraReady() {
48
48
// triggered after cam.open(...)
49
49
// you can set capture settings for example:
50
50
cam.setCaptureSetting(CaptureRequest.COLOR_CORRECTION_ABERRATION_MODE, CameraMetadata.COLOR_CORRECTION_ABERRATION_MODE_HIGH_QUALITY);
@@ -55,19 +55,19 @@ Or if you use Maven :
55
55
}
56
56
57
57
@Override
58
- public void onPicture(Image image) {
58
+ public void onPicture(Image image) {
59
59
File file = new File(getFilesDir(), "image.jpg"); // internal storage
60
60
File file = new File(getExternalFilesDir(null), "image.jpg") // external storage, need permissions
61
61
cam.saveImage(image, file);
62
62
}
63
63
64
64
@Override
65
- public void onError(String message) {
65
+ public void onError(String message) {
66
66
// all errors will be passed through this methods
67
67
}
68
68
69
69
@Override
70
- public void onCameraDisconnected() {
70
+ public void onCameraDisconnected() {
71
71
// camera disconnected
72
72
}
73
73
});
You can’t perform that action at this time.
0 commit comments