Newer Version Available

This content describes an older version of this product. View Latest

getEnvironmentContext()

Retrieves the environment context information.

Signature

public Canvas.EnvironmentContext getEnvironmentContext()

Return Value

Type: Canvas.EnvironmentContext

Usage

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

Example

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.