getAsString

external fun getAsString(callback: FunctionStringCallback?)(source)

The DataTransferItem.getAsString() method invokes the given callback with the drag data item's string data as the argument if the item's kind is a Plain unicode string (i.e., kind is string).

MDN Reference