Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to send files to another app on ios

Dropbox application permit to send files to other applications like teamviewer or iBook. How do they do that?

I thought the only way to send data to another application was the url scheme.

like image 978
Anthony Avatar asked Dec 01 '25 13:12

Anthony


1 Answers

I think Dropbox using Document Interaction API to provide this functionality.

Quotes from docs:

You can use a document interaction controller to display a file preview or to prompt the user to choose an action for a file.

  • To modally display a file preview, call the presentPreviewAnimated: method.
  • To prompt the user with a set of options, including an option to open the file in another app, call the presentOptionsMenuFromRect:inView:animated: or presentOptionsMenuFromBarButtonItem:animated: method.
  • To prompt the user only to open the file in another app, call the presentOpenInMenuFromRect:inView:animated: or presentOpenInMenuFromBarButtonItem:animated: method.
like image 98
4ndrew Avatar answered Dec 04 '25 06:12

4ndrew



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!