Ionic: the camera asks for confirmation after each shot / takes several pictures

Can I disable these annoying "repeat" and "ok" buttons on top of the display? I can also configure the ngCordova plugin if you are directing me in the right direction.

I want to take some pictures. Now it takes time, because someone came up with what needs to be confirmed if the picture is enough. So, the other questions are that it is suggested to take a few shots and then confirm them all.

Both of the following lines give the same result:

navigator.camera.getPicture() 

or

 $cordovaCamera.getPicture() 

Annoying retry and ok buttons

+6
source share
1 answer

I also had the same requirement for one of my applications.

Here you go

https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview

This plugin provides the takePicture () method, which you can constantly call and receive all the images in an array or whatever you wish.

Read the plugin documentation for more details on the implementation.

For reference, here is an example application made using cordova-plugin-camera-preview

https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview-sample-app

To answer your question, the best way to allow users to confirm photos, I would suggest you first let the user capture as many photos that they want, and then display them as a gallery, where they can click on picture - they will see two options: 1. Close the photo 2. Take a photo.

Thus, users will have a good user interface.

+3
source

Source: https://habr.com/ru/post/1012337/


All Articles