The share plugin aims to provide a simple API for sharing your project.
NOTE: Sharing can behave differently on different platforms so you should use our API when you want to share.
- Table of Contents
Initialization options for the share plugin.
The project url to be shared
The operating mode of the plugin -
Self means that the player will handle the sharing.
Proxy means that the player only informs about the share intention to the parent.
When calling share.share(), if
mode=self it will call
navigator.share() if available, or open a default modal with different social network options to share to.
mode=proxy it will trigger a share.intent event.
The share plugin’s version string.
console.log('The share plugin version is', player.share.version);