2 years ago

#54970

test-img

Damn Vegetables

Kotlin Compose Desktop, can I drag a file path from my application to a third-party application?

If I create a Windows/Linux desktop application using Kotlin Compose Desktop, can I drag a file (i.e., the file path) from my application into another application? I could do it in C# (WinForms) relatively with the following two lines of code:

var data = new DataObject(DataFormats.FileDrop, filePathStringArray);
myListViewControl.DoDragDrop(data, DragDropEffects.Copy);

enter image description here

kotlin

kotlin-multiplatform

compose-desktop

compose-multiplatform

0 Answers

Your Answer

Accepted video resources