/// <inheritdoc /> public Task <MediaFile> PickPhotoAsync(PickMediaOptions options = null) { options = options ?? new PickMediaOptions(); this.CheckPhotoUsageDescription(); // TODO Use inheritance here var cameraOptions = new StoreMediaOptions { PhotoSize = options.PhotoSize, CompressionQuality = options.CompressionQuality }; return(this.GetMediaAsync(UIImagePickerControllerSourceType.PhotoLibrary, Constants.TypeImage, cameraOptions)); }
/// <inheritdoc /> public async Task <MediaFile> PickPhotoAsync(PickMediaOptions options = null) { var picker = new FileOpenPicker(); picker.SuggestedStartLocation = PickerLocationId.PicturesLibrary; picker.ViewMode = PickerViewMode.Thumbnail; foreach (var filter in SupportedImageFileTypes) { picker.FileTypeFilter.Add(filter); } var result = await picker.PickSingleFileAsync(); if (result == null) { return(null); } return(new MediaFile(result.Path, () => result.OpenStreamForReadAsync().Result)); }
/// <inheritdoc /> public Task <MediaFile> PickPhotoAsync(PickMediaOptions options = null) { throw new NotImplementedException(); }
public Task <MediaFile> PickPhotoAsync(PickMediaOptions options = null) { throw new NotImplementedInReferenceAssemblyException(); }