The DragDrop class / ui.DragDrop methods |
Select the MIME type before getting the data.
Call the selectMimeType() method to check that data is available in a format identified by the MIME type passed as parameter.
If this type of data is available in the buffer, the method returns TRUE and you can later get the data with getBuffer().
The selectMimeType() method is typically used in ON DRAG_ENTER, ON DRAG_OVER to deny the drag & drop operation if none of the supported MIME types is available in the buffer.