首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >用于IOS的Xamarin文件选取器文件类型

用于IOS的Xamarin文件选取器文件类型
EN

Stack Overflow用户
提问于 2021-04-14 18:55:54
回答 1查看 75关注 0票数 0

我有一个xamarin应用程序,我正在使用Essential File Picker从库中选择文件。我正在尝试找到一种方法来为IOS定义doc和docx文件,但我没有得到正确的结果。对于Android,我已经准备好了。下面是我使用的代码。

`

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
    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() });

`

EN

回答 1

Stack Overflow用户

发布于 2021-04-20 15:57:50

How to open the Document files e.g(.pdf,.doc,.docx) in ios mobile when a button action using swift3.0?

“"org.openxmlformats.wordprocessingml.document”“,分别表示com.microsoft.word.doc和Docx。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67097556

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文