---
schema_version: "1"
id: 2fc92f170b221c0b0fa8b36f6f21413770efdfcbea7546fbfd767e5f84fc1a30
title: CanvasLifecycleHandler Methods
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_canvas_CanvasLifecycleHandler_methods.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_canvas_CanvasLifecycleHandler_methods.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3a39b071e68b6660b4d59baaca812f0bd4cae0122900f390a32385e0d4460db6
---
# CanvasLifecycleHandler Methods

The following are methods for CanvasLifecycleHandler.

- **[excludeContextTypes()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_canvas_CanvasLifecycleHandler_excludeContextTypes.htm)**  
    Lets the implementation exclude parts of the CanvasRequest context, if the application does not need it.
- **[onRender(renderContext)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_canvas_CanvasLifecycleHandler_onRender.htm)**  
    Invoked when a canvas app is rendered. Provides the ability to set and retrieve canvas application and environment context information during the application render phase.