---
schema_version: "1"
id: ad6ebe68ab000080839bad085871b4db99f60bb6f33b2c2473b30df7b9af8771
title: Distributing Your CanvasLifecycleHandler Class
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/canvas-framework/guides/platform-connect/using/lifecycle/canvas-distributing-your-canvaslifecyclehandler.md
canonical_url: https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-distributing-your-canvaslifecyclehandler.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3260eba7038355dcdb6848a0dc7a41dcbfc08b94d0065a343a2559b61b0b950f
products:
  - Canvas Developer Guide
  - Platform Developer Content
---

# Distributing Your CanvasLifecycleHandler Class

If you package and distribute your canvas app, make sure to include your CanvasLifecycleHandler class in your package.

Use the following steps to include your CanvasLifecycleHandler implementation in your canvas app package.

1.  In Salesforce, from Setup, enter `Packages` in the `Quick Find` box, then select **Packages**.

2.  Find the package for your canvas app, and then click the package name to go to the package detail page.

3.  On the package detail page, under Components, click **Add**.

4.  In the Add to Package page, in the `Component Type` field, select **Apex Class**. A list of available Apex classes is shown.

5.  Select the checkbox next to your Apex class for your CanvasLifecycleHandler implementation, and then click **Add To Package**.


