我有一个应用程序,要求通过手机摄像头一次拍摄多张图像。用户不想一次又一次打开相机。
我也尝试过https://github.com/jamesmontemagno/MediaPlugin插件,但它不支持连续图像捕获。一次单击一张图像。
有没有办法实现这种行为?
谢谢
答案 0 :(得分:1)
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.