API reference
Design
addAudioTrackaddElementAtCursoraddElementAtPointaddNativeElementaddPagecreateRichtextRangeeditContentgetCurrentPageContextgetDefaultPageDimensionsgetDesignTokeninitAppElementoverlay.registerOnCanOpenrequestExportselection.registerOnChangesetCurrentPageBackgroundui.startDragToCursorui.startDragToPointui.startDrag
Platform
appProcessappProcess.broadcastMessageappProcess.currentappProcess.current.getInfoappProcess.current.requestCloseappProcess.current.setOnDisposeappProcess.requestCloseappProcess.registerOnMessageappProcess.registerOnStateChangefeatures.isSupportedfeatures.registerOnSupportChangegetPlatformInforequestOpenExternalUrl
Requests the termination of the specified app process.
Once called, this method:
- Transitions the state of the process to
"closing"
. - Invokes all registered
setOnDispose
callbacks. - Waits for the process to finish closing.
- Transitions the state of the process to
"closed"
.
Each time the state changes, all of the registerOnStateChange
callbacks are called..
Parameters
target
AppProcessId
REQUIRED
The ID of an app process.
params
T
REQUIRED
Parameters to pass to the setOnDispose
callback. Any kind of structured data can be passed via this property.
Properties of params
reason
CloseReason
REQUIRED
The reason the app process is closing.
The available options include:
"completed"
"aborted"
Returns
Promise<void>