britzl
britzl/defold-clipboard/clipboard
Defold native extension to access the clipboard
- GitHub: britzl/defold-clipboard — pinned to
1.24.0(released while Defold 1.6.3 was current)- Pick a release from britzl/defold-clipboard releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as clipboard from "clipboard"
- Pick a release from britzl/defold-clipboard releases and add its Source code (zip) URL (or a packaged
- Asset Portal: defold-clipboard
Functions
clipboard.copy(text: string)
Copy text to the clipboard.
Parameters
text:string
clipboard.paste(): string
Get text from the clipboard.
Returns
text:string