Type function Return value String Revision Release 2024.3703 Keywords getType, pasteboard See also Pasteboard pasteboard.setAllowedTypes() pasteboard.copy()
Returns the type of data of the top-most item on the pasteboard. Returns either "string"
, "url"
, "image"
when data is present. Otherwise returns nil
.
pasteboard.getType()
local pasteboard = require( "plugin.pasteboard" ) -- Get the type of data on the pasteboard local dataType = pasteboard.getType()