Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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.