appProcess

API reference for the appProcess namespace.

Provides methods for interacting with an app process.

#currentCurrentAppProcess
Required

The current app process.

To learn more, see appProcess.current.

#requestClosefunction
Required

Requests the termination of the specified app process.

To learn more, see appProcess.requestClose.

#registerOnStateChangefunction
Required

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

To learn more, see appProcess.registerOnStateChange.

#registerOnMessagefunction
Required

Registers a callback that listens for broadcasted messages.

To learn more, see appProcess.registerOnMessage.

#broadcastMessagefunction
Required

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

To learn more, see appProcess.broadcastMessage.