On September 25th, 2024, we released v2 of the Apps SDK. To learn what’s new and how to upgrade, see Migration FAQ and Migration guide.

features.isSupported

API reference for the features.isSupported method.

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

featuresFeature[]
Required

The SDK methods to be checked for support.

Returns

boolean