Pop camera immediately after image taken #235
-
I dont seem to be able to listen for the camera capture event. In my usecase I want to be able to open the camera capture an image and then pop the camera immediately after (without tapping the preview). However it only seems there is an "onMedieaTap" event. Anyone got a work around for this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
You can listen to |
Beta Was this translation helpful? Give feedback.
-
@eudaldpons @Tryanium , well lets start off by defining the following:
then we must use a
when using CameraAwesomeBuilder.custom you do need to define the buttons as per the documentation (buttons to take image etc.), since my usecase was to capture one image and then process it and not allowing anything else, this is then is defined in a column (usually covering the entire page)
with that you should be able to click the button, sets the isProcessing to true making the button not clickable and then since ur listening to the fact that i let this just to see the Author and or anyone else post a solution to it, but once again both github & stackoverflow disappoint me as usually they never offer such responses to questions. anyhow, i hope this solves your issue. |
Beta Was this translation helpful? Give feedback.
You can listen to
cameraState.captureState$
to react to different capture states.In your case, you probably want a
MediaCapture
with aMediaCaptureStatus.success
before popping.