getEnvironmentContext()

Retrieves the environment context information.

public Canvas.EnvironmentContext getEnvironmentContext()

Type: Canvas.EnvironmentContext

Use this method to get the environment context information for your canvas app.

The following example implementation of the CanvasLifecycleHandler onRender() method uses the provided RenderContext to retrieve the environment context information and then modifies the custom parameters.