Make my xamarin forms app able to open specific file types?

百般思念 提交于 2021-01-29 02:02:00

问题


I am building my first app with Xamarin forms, an EPUB reader. The core app is now working well and able to render documents. The question I am trying to answer is how I can register for my app as a handler for the EPUB document type so that if the file is opened from an email app my reader app will be available as a reader?

Ideally this should be a cross platform solution.

Thanks!


回答1:


Ideally this should be a cross platform solution.

Unfortunately, there is no cross platform solution that you can use to register to read the file types.

You will need to follow the platform specifications for that, iOS https://developer.xamarin.com/guides/ios/application_fundamentals/working_with_images/custom-document-types/

Android https://gist.github.com/brendanzagaeski/70afe08654927befb26b



来源:https://stackoverflow.com/questions/39222259/make-my-xamarin-forms-app-able-to-open-specific-file-types

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!