API reference
Design
addAudioTrackaddElementAtCursoraddElementAtPointaddNativeElementaddPagecreateRichtextRangeeditContentgetCurrentPageContextgetDefaultPageDimensionsgetDesignMetadatagetDesignTokeninitAppElementopenDesignoverlay.registerOnCanOpenrequestExportselection.registerOnChangesetCurrentPageBackgroundui.startDragToCursorui.startDragToPointui.startDrag
Intents: data
Intents: design
Platform
appProcessappProcess.broadcastMessageappProcess.currentappProcess.current.getInfoappProcess.current.requestCloseappProcess.current.setOnDisposeappProcess.requestCloseappProcess.registerOnMessageappProcess.registerOnStateChangefeatures.isSupportedfeatures.registerOnSupportChangegetPlatformInfonotification.addToastrequestOpenExternalUrl
overlay.registerOnCanOpen
API reference for the overlay.registerOnCanOpen method.
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.
Registers a callback that runs when the canOpen
state of an overlay target changes.
Parameters
opts
object
Required
Options for configuring the callback.
target
Target
Required
The target to check the canOpen
state of.
This must be "image_selection"
.
onCanOpen
function
Required
A callback that runs when the canOpen
state of the specified target changes.
This callback fires immediately.
Parameters
event
OverlayOpenableEvent<Target>
Required
Information about whether or not an overlay can be opened for the specified target.
Returns
void
Returns
() => void