getRenderingMode()
Obtains the mode that the Constellation UI is rendered in.
Constellation UI can be rendered in the following modes:
- When Constellation UI is rendered as a full portal, the rendering mode is FULL_PORTAL.
- When Constellation UI is rendered through Web embed channels into web pages, the rendering mode is EMBED.
- When Constellation UI is rendered within legacy sections or harnesses, the rendering mode is HYBRID.
- When Constellation UI is rendered during authoring, the rendering mode is PREVIEW.
Returns
The rendering mode as a string.
Parameters
This API does not have parameters.
Usage example
In this example, the API returns the mode that the Constellation UI can be rendered in.
const renderingMode = PCore.getEnvironmentInfo().getRenderingMode();
Previous topic getOperatorWorkGroup() Next topic getTheme()