Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

SharingPanel.Present

Presents the sharing panel.

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

Parameters

none

Result

Returns OK or error.

Description

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.

Examples

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

💬 Ask a question or report a problem