Mobile Locker JavaScript SDK
    Preparing search index...

    Variable shareConst

    share: {
        presentation(
            recipients: ShareRecipient[],
            notificationLevel?: number,
            sendReminders?: boolean,
        ): void;
        email(
            to: string | { name?: string; email: string },
            subject: string,
            body?: string | null,
            attachment?: string | null,
            template?: string | null,
            formData?: unknown,
        ): void;
    } = ...

    Type Declaration

    • presentation: function
      • Share the current presentation with one or more recipients.

        Sends the presentation link via the Mobile Locker platform. No-op outside the Mobile Locker environment (e.g. local development).

        Parameters

        • recipients: ShareRecipient[]

          One or more recipients, each requiring at least an email.

        • notificationLevel: number = 2

          Controls when recipients receive email notifications. Use the mobilelocker.notificationLevels constants. Defaults to NOTIFY_EVERY (2).

        • sendReminders: boolean = true

          Whether to send follow-up reminder emails. Defaults to true.

        Returns void

        MobileLockerError if recipients is empty or any recipient is missing an email.

        mobilelocker.share.presentation(
        [{ email: 'jane@example.com', name: 'Jane' }],
        mobilelocker.notificationLevels.NOTIFY_FIRST,
        )
    • email: function
      • Send an email through the Mobile Locker platform.

        Parameters

        • to: string | { name?: string; email: string }

          Recipient email string, or an object with email and optional name.

        • subject: string

          Email subject line.

        • body: string | null = null

          Optional email body text.

        • attachment: string | null = null

          Optional path to a file to attach.

        • template: string | null = null

          Optional email template identifier.

        • formData: unknown = null

          Optional additional form data to include with the email record.

        Returns void

        mobilelocker.share.email(
        { name: 'Jane', email: 'jane@example.com' },
        'Thanks for stopping by',
        'It was great meeting you at the conference.',
        )