Home > front end >  Open iOS 11 Files app and display my app's Documents folder
Open iOS 11 Files app and display my app's Documents folder

Time:10-24

My app stores some apps in the Documents folder. The user can see these files by opening the the built-in iOS app called "Files" and selecting "on my iPhone" and the name of my app. Now I'd like to open the "Files" app programmatically. This will save the user the steps of going to the home screen, tapping the "Files" icon and navigating to my folder.

I found this question Open iOS 11 Files app via URL Scheme or some other way that seems to do exactly what I want, but it is in Swift and I was not able to translate this to C# myself.

What is the C# way of the same thing as in the above question?

CodePudding user response:

you can open the Files app with the scheme shareddocuments

var url = new NSUrl("shareddocuments://"   Uri.EscapeDataString(folderPath));
UIApplication.SharedApplication.OpenUrl(url);
  • Related