AboutSupportDeveloper GuideVersion 15.0.8
  • Registers a StorefrontProvider.

    Parameters

    Returns Promise<StoreRegistration>

    Throws

    Error if a provider with the same id already exists.

    Throws

    Error if Workspace Platform is not initialized.

    Example

    import { Storefront, type StorefrontProvider } from "@openfin/workspace";

    const myStorefrontProvider: StorefrontProvider = {
    id: "my-storefront-id"
    title: "My StorefrontProvider"
    icon: "https://cdn.openfin.co/demos/notifications/generator/images/icon-blue.png",
    getApps: () => {...},
    getNavigation: () => {...},
    getLandingPage: () => {...},
    getFooter: () => {...},
    launchApp: () => {...}
    };

    await Storefront.register(myStorefrontProvider);