drag

Implement native system file drag-and-drop functionality.

Method

startDrag(filePaths)

Display notification window

  • filePaths string[] - File paths to drag

  • Returns Promise<>

await eagle.drag.startDrag([
    "C:\\Users\\User\\Pictures\\drag1.jpg",
    "C:\\Users\\User\\Pictures\\drag2.jpg",
]);

Note: This function is similar to Electron API's webContents.startDrag(item) feature.

最后更新于