Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Presents the sharing panel.

Component Version macOS Windows Linux Server iOS SDK
SharingPanel 11.4 ❌ No ❌ No ❌ No ❌ No ✅ Yes
MBS( "SharingPanel.Present" )




Returns OK or error.


Presents the sharing panel.
This will show a view controller that you use to offer standard services from your application.
Your script may call this in a script and then exit. Wait for the script trigger, while no script runs.


Share a picture from container:

# clear it
Set Variable [ $r ; Value: MBS( "SharingPanel.Clear" ) ]
# add our document
Set Variable [ $r ; Value: MBS( "SharingPanel.AddImageContainer"; Test::Container) ]
# set trigger
Set Variable [ $r ; Value: MBS( "SharingPanel.SetScript"; Get(FileName); "Dismissed" ) ]
# Show the window
Set Variable [ $r ; Value: MBS( "SharingPanel.Present" ) ]

See also

Example Databases

This function checks for a license.

Created 28th August 2021, last changed 28th August 2021

SharingPanel.ItemCount - SharingPanel.RemoveAll