MCPcopy Create free account
hub / github.com/HumbleUI/JWM / get

Method get

shared/java/Clipboard.java:42–47  ·  view source on GitHub ↗

Get the system clipboard content. Clipboard content returned as an entry with specified format and serialized byte data. Uses provided formats list to extract preferred clipboard data. First format has the highest priority, last specified format has the lowest priority. If

(ClipboardFormat... formats)

Source from the content-addressed store, hash-verified

40 * @return Extracted clipboard entry; may be null
41 */
42 @Nullable
43 public static ClipboardEntry get(ClipboardFormat... formats) {
44 assert _onUIThread() : "Should be run on UI thread";
45 assert formats.length > 0: "must contain at least one format entry";
46 return _nGet(formats);
47 }
48
49 /**
50 * <p>Get list of currently available clipboard data formats.</p>

Callers 3

acceptMethod · 0.95
fromStringMethod · 0.45

Calls 2

_onUIThreadMethod · 0.95
_nGetMethod · 0.95

Tested by

no test coverage detected