SharingPanel.Present
--------------------

Presents the sharing panel.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SharingPanel](component_SharingPanel.md) | [11.4](newinversion114.md) | ❌ 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](SharingPanelClear.md)" ) \]   
\# add our document   
Set Variable \[ $r ; Value: MBS ( "[SharingPanel.AddImageContainer](SharingPanelAddImageContainer.md)"; Test::Container ) \]   
\# set trigger   
Set Variable \[ $r ; Value: MBS ( "[SharingPanel.SetScript](SharingPanelSetScript.md)"; Get(FileName); "Dismissed" ) \]   
\# Show the window   
Set Variable \[ $r ; Value: MBS ( "SharingPanel.Present" ) \]  
### See also

- [SharingPanel.AddImageContainer](SharingPanelAddImageContainer.md)
- [SharingPanel.AddText](SharingPanelAddText.md)
- [SharingPanel.Clear](SharingPanelClear.md)
- [SharingPanel.IsPresented](SharingPanelIsPresented.md)
- [SharingPanel.Result](SharingPanelResult.md)
- [SharingPanel.SetScript](SharingPanelSetScript.md)

### Example Databases

- [iOS/Examples/SharingPanel](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/iOS/Examples/SharingPanel.shtml#1ScriptAnchor_)

This function checks for a license.

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

  
[SharingPanel.ItemCount](SharingPanelItemCount.md) - [SharingPanel.RemoveAll](SharingPanelRemoveAll.md)

[HTML Version](SharingPanelPresent.shtml)