file Drop Target
fun Modifier.fileDropTarget(accept: (DroppedFiles) -> Boolean = { true }, onStarted: (DroppedFiles) -> Unit = {}, onEntered: (DroppedFiles) -> Unit = {}, onMoved: (DroppedFiles) -> Unit = {}, onExited: (DroppedFiles) -> Unit = {}, onChanged: (DroppedFiles) -> Unit = {}, onEnded: (DroppedFiles) -> Unit = {}, onDrop: (DroppedFiles) -> Unit): Modifier(source)
Adds a file drop target to this modifier chain.
All callbacks receive the paths currently being dragged or dropped. The target only participates when accept returns true.
Parameters
accept
returns true when this target should handle the dragged files.
on Started
called when an accepted file drag starts.
on Entered
called when an accepted file drag enters this target.
on Moved
called when an accepted file drag moves over this target.
on Exited
called when an accepted file drag exits this target.
on Changed
called when an accepted file drag changes.
on Ended
called when an accepted file drag ends.
on Drop
called when files are dropped on this target.