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

API reference for the appProcess namespace.

Provides methods for interacting with an app process.

Properties

currentCurrentAppProcessRead-only
Required

The current app process.

For more information, see appProcess.current.

Methods

requestClosefunction
Required

Requests the termination of the specified app process.

For more information, see appProcess.requestClose.

registerOnStateChangefunction
Required

Registers a callback that runs when the state of the specified app process changes.

For more information, see appProcess.registerOnStateChange.

registerOnMessagefunction
Required

Registers a callback that listens for broadcasted messages.

For more information, see appProcess.registerOnMessage.

broadcastMessagefunction
Required

Broadcasts a message to all of the app's active processes, not including the current process.

For more information, see appProcess.broadcastMessage.