On September 25th, 2024, we released v2 of the Apps SDK. To learn what’s new and how to upgrade, see Migration FAQ and Migration guide.

appProcess.current

API reference for the appProcess.current property.
This version of the API is a preview. Preview APIs are unstable and may change without warning. You can't release public apps using this API until it's stable.

Provides methods for interacting with the current app process.

Methods

getInfofunctionRequired

Returns information about the current app process.

To learn more, see appProcess.current.getInfo.

requestClosefunctionRequired

Requests the termination of the current process.

To learn more, see appProcess.current.requestClose.

setOnDisposefunctionRequired

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

To learn more, see appProcess.current.setOnDispose.