简体   繁体   中英

How to take multiple pictures using camera in Xamarin Forms?

I have an application in which I have a requirement to take multiple images in one shot by phone camera. User don't want to open camera again and again.

I have tried https://github.com/jamesmontemagno/MediaPlugin Plugin also but it do not support continuous Images capturing. It clicks one image at a time.

Is there a way to achieve this behaviour?

Thanks

Can you try this in media plugin
for (int i = 0; i < 3; i++)
{

                            file = await MediaPicker.TakePhotoAsync(new StoreCameraMediaOptions { SaveToAlbum = true, Name = "", Directory = "" });
                            if (file != null)
{
//code to save
}

The user can press cancel at anytime to stop taking pictures, and it'll hit the return and stop running the code. But its ran the logic to save the images each time a photo has been taken.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM