copyToClipboard
Copies text to the clipboard.
Field Configurations
Key | Type | Description | Default Value |
---|---|---|---|
"params" (required) | Object | undefined | null |
Parameters
Key | Type | Description | Default Value |
---|---|---|---|
"async" | Boolean | Specifies whether the action should perform asynchronously. | null |
"text" (required) | String | The text to copy. | null |
Inherited
From Base Action
Base Action
Field Configurations
Key | Type | Description | Default Value |
---|---|---|---|
"dynamicParams" | Object | Dynamic params to retrieve data from a specific context e.g. a userSetting. | null |
"leadingDelimiter" | String | The leading mustache delimiter to use. | null |
"params" | Object,Array | Object containing the properties of the action. | null |
"trailingDelimiter" | String | The trailing mustache delimiter to use. | null |
"type" | String | Type name of the action. | null |
Examples
Example 1: Copy a text to the clipboard
Goal: Create a copyToClipboard action copying the given text to the clipboard of the device.
To achieve this the following code can be used:
{
"type": "copyToClipboard",
"params": {
"text": "Copy this text."
}
}
The text
parameter specifies the text to be copied to the device's clipboard.
Result:
A copyToClipboard action has been created.