Interface for connecting the Modal Dressing Room Component (MDRC) with the host website. THe adaptor is responsible for providing information about the content in the dressing room. This covers garments, avatars and scenes. Furthermore, it provides (optional) functionality for further functionality like add to cart, looking sharing or custom avatars.

interface HostAdaptor {
    analytics?: AnalyticsConfig;
    animations?: IAnimationProvider;
    avatars: ByMode<IAvatarProvider>;
    callbacks?: IHostCallbacks;
    commerce?: ICommerceProvider;
    customAvatars?: ByMode<IMutableAvatarProvider>;
    dressingRoom: {
        mode: RenderMode;
        options?: IDressingRoomOptions;
    };
    garments: ByMode<IGarmentProvider>;
    inventory?: IInventoryProvider;
    logger?: ILoggingProvider;
    performanceMetrics?: IPerformanceMetricsProvider;
    scenes: ByMode<ISceneProvider>;
    sharing?: ISharingProvider;
    translator?: ITranslator;
}

Properties

analytics?: AnalyticsConfig
animations?: IAnimationProvider

Mandatory provider to populate the dressing room with avatars.

callbacks?: IHostCallbacks
dressingRoom: {
    mode: RenderMode;
    options?: IDressingRoomOptions;
}

Mandatory provider to populate the dressing room with garments.

inventory?: IInventoryProvider
performanceMetrics?: IPerformanceMetricsProvider

Mandatory provider to populate the dressing room with scenes.

translator?: ITranslator