initialize MethodStatic

Initializes Presentation library for the frontend.

Example:

await Presentation.initialize({
  // specify `clientId` so Presentation framework can share caches
  // between sessions for the same clients
  clientId: MyAppFrontend.getClientId(),

  // specify locale for localizing presentation data
  activeLocale: IModelApp.i18n.languageList()[0],

  // specify the preferred unit system
  activeUnitSystem: PresentationUnitSystem.Metric,
});

The method should be called after a call to IModelApp.startup

initialize(props?: PresentationManagerProps): Promise<void>

Parameter Type Description
props PresentationManagerProps Optional properties to use when creating PresentationManager. If not provided
or provided with activeLocale not set, Presentation.i18n.languageList()[0] is used as active locale.

Returns - Promise<void>

Defined in

Last Updated: 12 June, 2024