Skip to content

Commit 872616a

Browse files
align both edit mehtods with new API
1 parent 7a81c2c commit 872616a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

android/src/main/java/com/capacitorjs/plugins/camera/IonCameraFlow.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ class IonCameraFlow(
331331
saveToGallery = false,
332332
includeMetadata = false
333333
)
334-
val imageBase64 = call.data.getString("base64")
334+
val imageBase64 = call.getString("inputImage")
335335
if (imageBase64 == null) return
336336
manager.editImage(plugin.activity, imageBase64, editLauncher)
337337
}
@@ -687,8 +687,7 @@ class IonCameraFlow(
687687

688688
private fun handleEditBase64Result(image: String) {
689689
val ret = JSObject()
690-
ret.put("format", "jpeg")
691-
ret.put("base64String", image)
690+
ret.put("outputImage", image)
692691
currentCall?.resolve(ret)
693692
currentCall = null
694693
}

0 commit comments

Comments
 (0)