appProcess

API reference for the appProcess namespace.
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 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.