Gets information about the current process.
Usage
import { appProcess } from "@canva/platform";const context = appProcess.current.getInfo();if (context.surface === "object_panel") {console.log("The process is running in the object panel");}
tsx
Returns
Required
The information about the current process.
Required
The location in Canva where the process is running.
The possible values are:
"object_panel"
"selected_image_overlay"
Required
The unique ID of the process.
Optional
Arbitrary parameters passed from the app to the process when the process launches.