Skip to main content

Sharing

Overview

A non visible component which uses Sharing Web API for sharing text, links, files, and other content to an arbitrary share target selected by the user.

Blocks

Events

On Share Success

Invokes on share operation is successful.

loading block...

On Share Error

Invokes when there is problem after the Share block is used.

loading block...

variabletypedescription
messageStringDictionary

Methods

Can Share

Returns: Boolean

Returns true, if the share API works in the current browser. Returns false, if the share API does'nt work in the current browser.

loading block...

Share

It invokes the native sharing mechanism of the device to share data such as text, URLs. The available share targets depend on the device, but might include the clipboard, contacts and email applications, websites, Bluetooth, etc.

When the operation is successful the On Share Success block is invoked, if the operation got any error the On Share Error block is invoked.

loading block...

Input ParamsTypeDescription
titleStringA string representing a title to be shared. May be ignored by the target.
textStringA string representing text to be shared.
urlStringA string representing a URL to be shared.