setDropTargetData

open fun setDropTargetData(format: String, callback: (String?) -> Unit)

Sets the current widget as a D&D drop target with helper callback accepting String data.

Parameters

format

accepted D&D data format

callback

a callback function accepting String data called after any drop event