Sharing

Sharing API calls work in conjunction with our getPlugin() method. For instance, all of our sharing instances are using the getPlugin(‘sharing’) API call to refer to this particular plugin. The following will target our sharing plugin:

Endpoints

MethodDescription
sharingPlugin.open()Opens the sharing plugin. This will also pause content if it is triggered during playback.
sharingPlugin.close()Closes the sharing plugin if it is opened. This will resume playback if the sharing overlay was triggered during content.


Events

MethodDescription
sharingPlugin.on('open')Listens for the opening of the plugin
sharingPlugin.on('close')Listens for the closing of the plugin
sharingPlugin.on('click')Triggers whenever somebody shares content from within the sharing plugin

© 2007-2024 Longtail Ad Solutions, Inc.