How to achieve this share menu customization?

Hi,

i was playing around with the honey app for iPad and came across this dialog that appeared to prompt me to enable permissions. How would i achieve this? The button when clicked toggled system permissions

That is a Safari Web Extension, and it is using the permissions APIs described in:

https://developer.apple.com/documentation/safariservices/safari_web_extensions/managing_safari_web_extension_permissions

How to achieve this share menu customization?
 
 
Q