A Little Suggestion on OnImagedSavedCallback

48 views
Skip to first unread message

Patrick Liao

unread,
Apr 2, 2021, 7:12:03 AMApr 2
to Android CameraX Discussion Group
Hi,

Is it possible to add an extra callback in OnImageSavedCallback called "onImageCaptured" ? I know onImageCapturedCallback exists, but it cannot do the file-saving stuff for us, which is a bit inconvenient...Such callback helps developers to make their UIs more responsive since the image-taking process usually requires the developer to "lock" the shutter button(s) (preventing the user from abusing the button since imageCapture is busy) and "unlock" once the image is captured and we don't really need to wait for File I/O to finish...

And for implementation, I think it should be pretty easy for the CameraX team to do it since I saw ``deliverCaptureResultToListeners(CameraCaptureResult)`` in ImageCapture's implementation.

Thank you.

Cheers,
Patrick Liao

Scott Nien

unread,
Apr 6, 2021, 4:34:02 AMApr 6
to Patrick Liao, Android CameraX Discussion Group
Thanks Patrick. 

This is a great suggestion. This definitely will help apps be more responsive.  We will consider adding it to the 1.1.0 alpha and will keep you posted. 

Scott

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/71124178-300f-41be-996c-4659e60e9eb3n%40android.com.

Julie Wu

unread,
Apr 6, 2021, 4:41:30 AMApr 6
to Android CameraX Discussion Group, Scott Nien, Android CameraX Discussion Group, lbypa...@gmail.com
Filed https://issuetracker.google.com/184611784 to track this feature request.
Reply all
Reply to author
Forward
0 new messages