API reference
Design
addAudioTrackaddElementAtCursoraddElementAtPointaddNativeElementaddPagecreateRichtextRangeeditContentgetCurrentPageContextgetDefaultPageDimensionsgetDesignTokeninitAppElementoverlay.registerOnCanOpenopenDesignrequestExportselection.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.
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
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