• Shows a modal view to share contents. The provided assets will be added so they can be shared.

    Example

    import { Showpad } from '@showpad/experience-app-sdk'

    const assetSlugs = ['648b2eb8-6fa1-40f2-b787-39cb1d51db69']

    const shareResult = await Showpad.share('email', assetSlugs)

    Parameters

    • type: ShareType

      The type of the modal is either email or link.

    • assetSlugs: string[]

    Returns Promise<keyof ShareResultType>

    If some of the assets are not shareable (expired, deleted, unshareable, …), the modal will still be shown, but the callback function will be called with result partial.

    In this case, the Showpad client will show a warning message to the user that some content cannot be shared.

    If none of the provided assets can be shared, a warning will be shown, but no sharing modal will be displayed and the result will be error.

Generated using TypeDoc