API reference
Design
addAudioTrackaddElementAtCursoraddElementAtPointaddNativeElementaddPagecreateRichtextRangeeditContentgetCurrentPageContextgetDefaultPageDimensionsgetDesignTokeninitAppElementoverlay.registerOnCanOpenrequestExportselection.registerOnChangesetCurrentPageBackgroundui.startDragToCursorui.startDragToPointui.startDrag
Platform
appProcessappProcess.broadcastMessageappProcess.currentappProcess.current.getInfoappProcess.current.requestCloseappProcess.current.setOnDisposeappProcess.requestCloseappProcess.registerOnMessageappProcess.registerOnStateChangefeatures.isSupportedfeatures.registerOnSupportChangegetPlatformInforequestOpenExternalUrl
overlay.registerOnCanOpen
API reference for the overlay.registerOnCanOpen method.
Registers a callback that runs when the canOpen
state of an overlay target changes.
Parameters
opts
object
RequiredOptions for configuring the callback.
target
Target
RequiredThe target to check the canOpen
state of.
This must be "image_selection"
.
onCanOpen
function
RequiredA callback that runs when the canOpen
state of the specified target changes.
This callback fires immediately.
Parameters
event
OverlayOpenableEvent<Target>
RequiredInformation about whether or not an overlay can be opened for the specified target.
Returns
void
Returns
() => void