Loading...

Logo
DocumentationBehaviorsCustomClipboard
Custom

Clipboard

Last updated February 28, 2023

Description

The Clipboard behavior will copy or paste contents from the clipboard upon execution. Note that when pasting content from other apps, iOS may ask you for permission before doing so - users have the option to revoke permissions.

Properties

Triggers Immediately

Clipboard Action

Select an action to perform on the clipboard.

  • Copy: Copies the provided text or image to the clipboard.
  • Paste: Outputs the previous copied text or image from the clipboard.
Content Type

Select the type of content you wish to copy or paste.

  • Text: This will output the previously copied text from the clipboard when in paste mode. When copying text, you will have an input field where you can enter what you wish to copy to the clipboard.
  • Image: This will output the previously copied image from the clipboard when in paste mode. When copying images, you will have a field where you can select a Load Image behavior that you wish to copy the image contents of.

Outputs

Contents

When pasting content, this output field will be populated with the result. When pasting images, you can put this output to a Set Graphic behavior to see the result.

Error

If the behavior encounters any error while performing an action, the error output field will be populated with the error message. This can happen when the app has insufficient permissions to copy and paste.

Example

Your project can generate text output and this behavior can be used to allow the user to copy the text to use somewhere else.