Sharing
Events
onShare
onShare
This subscription will trigger whenever a user clicks the share icon.
Note:
Once you attach your listener to the "onShare" event iPaper's sharing modal will no longer open when the share button is clicked. You will have to handle sharing using your own logic.
You can revert back to using iPaper's sharing modal by simply unsubscribing from the "onShare" event.
The share payload contains all properties that can be used to link back to the Flipbook and open it on the page where the share event was invoked:
Property
Type
Description
baseUrl
string
The base URL of the shared Flipbook
url
string
The full URL of the shared Flipbook which includes the page number
page
number
The number of the page where the share event was triggered
Last updated