getData

fun getData(format: String): String(source)

The DataTransfer.getData() method retrieves drag data (as a string) for the specified type.

MDN Reference