public async void takePictures() { //Take picture camera loop bool isCamera = true; while (isCamera) { var file = await CrossMedia.Current.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions { Name = "photo.jpg", Directory = "Pictures", SaveToAlbum = false }); if (file != null) { ImageMediaContent newMedia = new ImageMediaContent(file.Path); card?.addMedia(newMedia); MediaManager.addNewMedia(newMedia); } else { isCamera = false; } } await Navigation.PopAsync(); }
public PictureView(ImageMediaContent imageMedia) { InitializeComponent(); this.BindingContext = imageMedia; }