Типы файлов средства выбора файлов Xamarin для IOS

У меня есть приложение xamarin, и я использую Essential File Picker для выбора файлов из библиотеки. Я пытаюсь найти способ определить файлы doc и docx для IOS, что я не понимаю. для Android у меня все получилось. Ниже приведен код, который я использовал.

`

    private List<string> androidAcceptableList = new List<string> { "application/pdf", "image/*" }; //TODO:Read from configuration
            private List<string> iOsAcceptableList = new List<string> {  "application/pdf",
          "application/msword",
          "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
          "image/*"}; //TODO:Read from configuration
    var customFileTypes = new FilePickerFileType(new Dictionary<DevicePlatform, IEnumerable<string>> {
                    { DevicePlatform.iOS,iOsAcceptableList },
                    { DevicePlatform.Android, androidAcceptableList}
                });
var resp = FilePicker.PickAsync(new PickOptions { FileTypes = FileTypesList() });

`


person Abi P    schedule 14.04.2021    source источник
comment
com.microsoft.word.doc, org.openxmlformats.wordprocessingml.document.   -  person Abi P    schedule 20.04.2021
comment
Заголовок stackoverflow.com/questions/47865646/   -  person Abi P    schedule 20.04.2021


Ответы (1)


Как открыть файлы документов, например (.pdf, .doc, .docx) в ios mobile при нажатии кнопки с использованием swift3.0?

com.microsoft.word.doc,org.openxmlformats.wordprocessingml.document для Doc и Docx соответственно,

person Abi P    schedule 20.04.2021