toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-browser
/
web.clipboard
/
Clipboard
Clipboard
sealed
external
class
Clipboard
:
EventTarget
(
source
)
Available only in secure contexts.
MDN Reference
Members
Functions
dispatch
Event
Link copied to clipboard
fun
dispatchEvent
(
event
:
Event
)
:
Boolean
read
Link copied to clipboard
suspend
fun
read
(
)
:
ClipboardItems
MDN Reference
read
Async
Link copied to clipboard
fun
readAsync
(
)
:
Promise
<
ClipboardItems
>
read
Text
Link copied to clipboard
suspend
fun
readText
(
)
:
String
MDN Reference
read
Text
Async
Link copied to clipboard
fun
readTextAsync
(
)
:
Promise
<
String
>
write
Link copied to clipboard
suspend
fun
write
(
data
:
ClipboardItems
)
MDN Reference
write
Async
Link copied to clipboard
fun
writeAsync
(
data
:
ClipboardItems
)
:
Promise
<
Void
>
write
Text
Link copied to clipboard
suspend
fun
writeText
(
data
:
String
)
MDN Reference
write
Text
Async
Link copied to clipboard
fun
writeTextAsync
(
data
:
String
)
:
Promise
<
Void
>