Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How to hide the share button in UIDocumentInteractionController to restrict user to only preview doc

$
0
0

Hi,

I have written DependencyService for iOS and have below code to open up a pdf document in preview mode. This has a DONE button to dismiss preview and Share button at right (to share the document).
I want to restrict user from sharing the document.
How can I remove this Share button which comes by default ?

NSUrl URL = new NSUrl (path, false);
UIDocumentInteractionController documentInteractionController = UIDocumentInteractionController.FromUrl (URL);
documentInteractionController.Delegate = new UIDocumentInteractionControllerDelegateClass (UIApplication.SharedApplication.KeyWindow.RootViewController.ChildViewControllers[0].ChildViewControllers[ChildViewControllers.Length]);
documentInteractionController.PresentPreview (true);


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>