Detect when user opens file in application

I read this documentation on how to view a file in an iOS app.

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

Can I determine which application the user has selected? Or any kno way if he really tapped on any option?

My problem: a large iBooks file (> 700 MB). The user selects a preview, then clicks in the upper right corner and selects open on iBooks. It will take 20 to 45 seconds until it switches to iBooks. If I know that the user used any application, I could at least show the download or something else so that he knows that something will happen.

+2
source share
1 answer

You can use methods to achieve this UIDocumentInteractionControllerDelegate. Here is a list of methods:

enter image description here

Apple Document Link

+4
source

Source: https://habr.com/ru/post/1527943/


All Articles