检测用户何时在应用程序中打开文件 [英] Detect when user opens file in app

查看:102
本文介绍了检测用户何时在应用程序中打开文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读本文档,了解如何在iOS应用上预览文件.

I was reading this documentation on how to preview a file on my iOS app.

https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/PreviewingandOpeningItems.html#//apple_ref/doc/uid/TP40010410-SW1

是否可以检测用户选择了哪个应用程序?还是以某种方式知道他是否真的选择了任何选择?

Is there any to detect which app did the user choose? Or any way to kno if he actually tapped on any option?

我的问题:iBooks大文件(> 700mb).用户选择预览,然后点击右上角并选择在iBooks上打开.跳转到iBooks大约需要20到45秒.如果我知道用户轻按了任何应用程序,那么我至少可以显示负载或其他内容,以便他知道即将发生的事情.

My problem: iBooks large file (> 700mb). User chooses preview, then taps on the top right corner and chooses to open on iBooks. It takes between 20 to 45 seconds until it jumps to iBooks. If I know that the user tapped any app I could at least show a loading or whatever so he knows something is about to happen.

推荐答案

您可以使用UIDocumentInteractionControllerDelegate方法来实现.下面是方法列表:

You can use UIDocumentInteractionControllerDelegate methods to achieve this. Here are the list of methods:

查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆