I am trying to use the Xamarin.Essentials FilePicker to let the user select a CSS file. My code:
The above works fine when I build for MacOS platform. I am also trying to add a entry there for DevicePlatform.iOS but I do not know the string to pass for a CSS file or it's UTType. I found one for HTML but not CSS.
Thanks.
Code Block var customFileType = new FilePickerFileType(new Dictionary<DevicePlatform, IEnumerable<string>> { {DevicePlatform.macOS, new[] {"css"} } }); var pickResult = await FilePicker.PickAsync(new PickOptions { FileTypes = customFileType, PickerTitle = "Select stylesheet to install" });
The above works fine when I build for MacOS platform. I am also trying to add a entry there for DevicePlatform.iOS but I do not know the string to pass for a CSS file or it's UTType. I found one for HTML but not CSS.
Thanks.