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)
| 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> |
no test coverage detected