PickOptions.FileTypes Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
List of file types that file file picker should return.
public Xamarin.Essentials.FilePickerFileType FileTypes { get; set; }
Property Value
Remarks
On Android and iOS the files not matching this list is only displayed grayed out. When the array is null or empty, all file types can be selected while picking. The contents of this array is platform specific; every platform has its own way to specify the file types. On Android you can specify one or more MIME types, e.g. "image/png"; also wild card characters can be used, e.g. "image/*". On iOS you can specify UTType constants, e.g. UTType.Image. On UWP, specify a list of extensions, like this: ".jpg", ".png".