How to restrict the apps in the share dialog in Xamarin Forms?

196 Views Asked by At

I can share some text or files with external apps with Xamarin.Essentials: Share Feature.

Well, can I restrict the apps shown in the popup to share? For example, can I set it to show gmail but not whatsapp in the popup? I need this for both ios and android in the Xamarin.Forms app. How to handle it?

Thanks.

1

There are 1 best solutions below

0
Guangyu Bai - MSFT On

The Xamarin.Essentials: Share Feature only provide the the method to share the file or text for other applications. The system will detect the file type (MIME) and request a share. Each platform may only support specific file extensions.

Here is the Share Class API, you can refer to this.