API reference
Design
addAudioTrackaddElementAtCursoraddElementAtPointaddNativeElementaddPagecreateRichtextRangeeditContentgetCurrentPageContextgetDefaultPageDimensionsgetDesignTokeninitAppElementoverlay.registerOnCanOpenrequestExportselection.registerOnChangesetCurrentPageBackgroundui.startDragToCursorui.startDragToPointui.startDrag
Platform
appProcessappProcess.broadcastMessageappProcess.currentappProcess.current.getInfoappProcess.current.requestCloseappProcess.current.setOnDisposeappProcess.requestCloseappProcess.registerOnMessageappProcess.registerOnStateChangefeatures.isSupportedfeatures.registerOnSupportChangegetPlatformInforequestOpenExternalUrl
API reference
We provide the following APIs for Canva Apps:
Asset
Design
- addAudioTrack
- addElementAtCursor
- addElementAtPoint
- addNativeElement
- addPage
- createRichtextRange
- editContent
- getCurrentPageContext
- getDefaultPageDimensions
- getDesignToken
- initAppElement
- overlay.registerOnCanOpen
- requestExport
- selection.registerOnChange
- setCurrentPageBackground
- ui.startDragToCursor
- ui.startDragToPoint
- ui.startDrag
Platform
- appProcess
- appProcess.broadcastMessage
- appProcess.current
- appProcess.current.getInfo
- appProcess.current.requestClose
- appProcess.current.setOnDispose
- appProcess.requestClose
- appProcess.registerOnMessage
- appProcess.registerOnStateChange
- features.isSupported
- features.registerOnSupportChange
- getPlatformInfo
- requestOpenExternalUrl