Mobile Locker JavaScript SDK
    Preparing search index...

    Variable presentationConst

    presentation: {
        get(): Promise<Presentation>;
        getEvents(): Promise<unknown[]>;
        getDeviceEvents(): Promise<unknown[]>;
        reload(): void;
        close(): void;
        getAll(): Promise<Presentation[]>;
        getByID(id: number): Promise<Presentation>;
        getByName(name: string): Promise<Presentation>;
        refresh(): Promise<Presentation[]>;
        download(id: number): Promise<DownloadResult>;
        openByID(id: number): void;
        openByExternalID(externalID: string): Promise<void>;
        openByName(name: string): Promise<void>;
        openPicker(): void;
    } = ...

    Type Declaration

    • get: function
    • getEvents: function
      • Get the analytics events recorded for the current presentation session.

        Returns Promise<unknown[]>

        Array of raw event objects.

        MobileLockerError on network failure or server error.

    • getDeviceEvents: function
      • Alias for getEvents.

        Returns Promise<unknown[]>

        Array of raw event objects.

    • reload: function
      • Reload the current presentation's web content.

        Triggers a full page reload inside the presentation webview.

        Returns void

    • close: function
    • getAll: function
    • getByID: function
    • getByName: function
    • refresh: function
    • download: function
      • Queue a presentation for download to the device.

        Parameters

        • id: number

          The numeric ID of the presentation to download.

        Returns Promise<DownloadResult>

        An object with status: 'queued', 'already_installed', 'not_available', or 'not_permitted'.

        MobileLockerError on network failure or server error.

    • openByID: function
      • Open a presentation by its numeric ID.

        In the iOS app, triggers native presentation navigation via the app bridge. In a browser, opens the presentation in a new tab using the platform web URL.

        Parameters

        • id: number

          The numeric ID of the presentation to open.

        Returns void

        mobilelocker.presentation.openByID(42)
        
    • openByExternalID: function
      • Open a presentation by its external CRM ID.

        In the iOS app, triggers native presentation navigation via the app bridge. In a browser, fetches all presentations, finds the match by external ID, then opens it.

        Parameters

        • externalID: string

          The external identifier for the presentation (e.g. a Salesforce ID).

        Returns Promise<void>

        MobileLockerError if no presentation with the given external ID is found.

        await mobilelocker.presentation.openByExternalID('a0B1234567890')
        
    • openByName: function
      • Open a presentation by its name.

        In the iOS app, triggers native presentation navigation via the app bridge. In a browser, fetches all presentations, finds the match by name, then opens it.

        Parameters

        • name: string

          The presentation name (case-sensitive).

        Returns Promise<void>

        MobileLockerError if no presentation with the given name is found.

        await mobilelocker.presentation.openByName('Kazaamax Rebate Calculator Demo');
        
    • openPicker: function
      • Open the native presentation picker so the user can choose a presentation to open.

        Returns void

        iOS app only. Throws in all other environments.

        MobileLockerError if called outside the iOS app.