ShareScreen

UI for sharing the interactive video (used in place of the native OS sharing when one isn’t available)

Props

  • isTouchEnabled (boolean) - Whether the devices is touch enabled
  • sharePlatforms - A list of social platforms available to share on and the relevant data required for shareOnPlatform

API

  • show() - Shows the share screen
  • hide() - Hides the share screen
  • shareOnPlatform(projectLink {string}, platformUrl {string}, platform {string}) - Shares on a social platform.

Events

  • `SHARESCREEN_OPEN: ekoshell.menu.share.open’,
  • `SHARESCREEN_CLOSE: ekoshell.menu.share.close’,
  • `SHARESCREEN_PLATFORM: ekoshell.menu.share.platform’,
  • `SHARESCREEN_COPY: ekoshell.menu.share.copy’

Plugin Options

Accepts a list of social platforms available to share on and their relevant data.
Gets passed on as a prop.

Schema:

"sharescreen": {
    "type": "object",
    "properties": {
        "platforms": {
            "type": "array",
            "items": {
                "type": "object",
                "required": [
                    "platform",
                    "url"
                ],
                "properties": {
                    "platform": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    }
                }
            }
        }
    }
}

parentContainer

root

Rate this page: X
Tell us more!