App development
Create an app
Create a support ticket
Search…
Overview
Quick start
Changelog
Platform concepts
Apps
Extensions
Regions
Authentication
Deprecation policy
Extensions
Content extensions
Editing extensions
Publish extensions
Frontend development
Assets
Development URL
Error handling
Localization
Notifications
Rich controls
JSX
WebGL
Backend development
Base URL
Continuation
Signature verification
SDKs
Distribution
UX guidelines
Submission checklist
Creating the App Directory listing
Client API
EditingExtensionClient.API
create
onReady
onControlsEvent
onLayoutChange
onPresetsRequest
onPresetSelected
onImageUpdate
onSaveRequest
onTouchModeExit
onViewportResize
updateControlPanel
updateLayout
remoteProcess
reportError
showNotification
toggleSpinner
toggleTouchMode
exit
CanvaDataType
CanvaElement
CanvaElementLayout
CanvaImageBlob
CanvaImageHelpers
CanvaImageUrl
CanvaMedia
init
Server API
Overview
GET /apps/configured
POST /configuration
POST /configuration/delete
POST /content/resources/find
POST /editing/image/process
POST /editing/image/process/get
POST /publish/resources/find
POST /publish/resources/get
POST /publish/resources/upload
Redirect URL
Reference
Locales
Powered By
GitBook
toggleTouchMode
API reference for the "toggleTouchMode" method.
Enables or disables
touch mode
.
To call this method, select
Enable touch interactions
in the Developer Portal.
Usage
1
const
canva
=
window
.
canva
.
init
();
2
​
3
canva
.
onReady
(
async
(
opts
)
=>
{
4
// Enable touch mode
5
canva
.
toggleTouchMode
(
true
);
6
​
7
// Disable touch mode
8
// canva.toggleTouchMode(false);
9
});
Copied!
Parameters
Name
Type
Required
Description
visible
boolean
Yes
Set to
true
to enable touch mode. Set to
false
to disable touch mode.
Returns
void
Previous
toggleSpinner
Next
exit
Last modified
7mo ago
Copy link
Contents
Usage
Parameters
Returns