Newer Version Available

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

getApplicationContext()

Retrieves the application context information.

Signature

public Canvas.ApplicationContext getApplicationContext()

Return Value

Type: Canvas.ApplicationContext

Usage

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

Example

The following example implementation of the CanvasLifecycleHandler onRender() method uses the provided RenderContext to retrieve the application context information and then checks the namespace, version, and app URL.