How to disable print option of QLPreviewController in the Xamarin iOS?

Pelin Konaray 291 Reputation points
2022-11-09T13:37:04.833+00:00

In my Xamarin.Froms application, on the iOS side, I open the files as preview with the help of QLPreviewController. When I open the preview and press the share button, the print option appears. (As in the picture below.)
258754-79571-1.jpg
How can I turn this off? When I searched, it says that the RightBarButtonItem value can be set enabled false or null. But this directly closes the share button. I want the share button to remain open but the print option to be turned off. How do I do this?

Thanks.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,312 questions
{count} votes