appProcess.current

API reference for the appProcess.current property.

An object that contains methods for interacting with the current process.

import { appProcess } from "@canva/preview/platform";
console.log(appProcess.current);
tsx
#getInfofunction
Required

Gets information about the current process.

To learn more, see appProcess.current.getInfo.

#requestClosefunction
Required

Requests the termination of the current process.

To learn more, see appProcess.current.requestClose.

#setOnDisposefunction
Required

Registers a callback that runs when the current process is about to close.

To learn more, see appProcess.current.setOnDispose.