initialize MethodStatic

Initializes Presentation library for the backend.

Example:

import { Presentation, PresentationManagerMode } from "@bentley/presentation-backend";

// initialize presentation-backend
Presentation.initialize({
  rulesetDirectories: [path.join("assets", "presentation_rules")],
  localeDirectories: [path.join("assets", "locales")],
  mode: PresentationManagerMode.ReadOnly,
});

Important: The method should be called after a call to IModelHost.startup

initialize(props?: PresentationProps): void

Parameter Type Description
props PresentationProps Optional properties for PresentationManager

Returns - void

Defined in

Last Updated: 13 June, 2024