supports static method
The supports()
static method of the ClipboardItem interface
returns true
if the given is supported by the clipboard, and false
otherwise.
Note that the
Clipboard API
mandates support for plain text, HTML and PNG files.
The supports()
method will always return true
for these MIME types, so
testing them is unnecessary .
Implementation
external static bool supports(String type);