@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Clipboard")
public class Clipboard
extends EventTarget
| Modifier | Constructor and Description |
|---|---|
protected |
Clipboard() |
| Modifier and Type | Method and Description |
|---|---|
Promise<JsArray<ClipboardItem>> |
read()
The read() method of the Clipboard interface requests a copy of the clipboard's contents, delivering the data to the returned Promise when the promise is resolved.
|
Promise<java.lang.String> |
readText()
The Clipboard interface's readText() method returns a Promise which resolves with a copy of the textual contents of the system clipboard.
|
Promise<java.lang.Void> |
write(ClipboardItem[] data)
The Clipboard method write() writes arbitrary data, such as images, to the clipboard.
|
Promise<java.lang.Void> |
write(JsArray<ClipboardItem> data)
The Clipboard method write() writes arbitrary data, such as images, to the clipboard.
|
Promise<java.lang.Void> |
writeText(java.lang.String data)
The Clipboard interface's writeText() property writes the specified text string to the system clipboard.
|
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, values@Nonnull public Promise<JsArray<ClipboardItem>> read()
@Nonnull public Promise<java.lang.String> readText()
@Nonnull public Promise<java.lang.Void> write(@Nonnull JsArray<ClipboardItem> data)
@Nonnull public Promise<java.lang.Void> write(@Nonnull ClipboardItem[] data)
@Nonnull public Promise<java.lang.Void> writeText(@Nonnull java.lang.String data)