getAsString

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

The getAsString() method of the DataTransferItem interface 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