API reference
Design
addAudioTrackaddElementAtCursoraddElementAtPointaddNativeElementaddPagecreateRichtextRangeeditContentgetCurrentPageContextgetDefaultPageDimensionsgetDesignMetadatagetDesignTokeninitAppElementoverlay.registerOnCanOpenopenDesignrequestExportselection.registerOnChangesetCurrentPageBackgroundui.startDragToCursorui.startDragToPointui.startDrag
Intents: data
Intents: design
Platform
appProcessappProcess.broadcastMessageappProcess.currentappProcess.current.getInfoappProcess.current.requestCloseappProcess.current.setOnDisposeappProcess.requestCloseappProcess.registerOnMessageappProcess.registerOnStateChangefeatures.isSupportedfeatures.registerOnSupportChangegetPlatformInfonotification.addToastrequestOpenExternalUrl
features.isSupported
API reference for the features.isSupported 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.
Checks if the specified SDK methods are supported in the current context.
Usage
Checking a single feature
import { features } from '@canva/platform';import { addElementAtPoint } from '@canva/design';const isSupported = features.isSupported(addElementAtPoint);
TYPESCRIPT
Checking multiple features
import { features } from '@canva/platform';import { addElementAtPoint, addElementAtCursor } from '@canva/design';const areSupported = features.isSupported(addElementAtPoint, addElementAtCursor);
TYPESCRIPT
Parameters
features
Feature[]
RequiredThe SDK methods to be checked for support.
Returns
boolean