Interface IEvent

interface IEvent {
    onDragDrop: (callback: (payload: DragDropPayload) => void) => void;
    onDragEnter: (callback: (payload: DragDropPayload) => void) => void;
    onDragLeave: (callback: () => void) => void;
    onDragOver: (callback: (payload: DragOverPayload) => void) => void;
    onWindowBlur: (callback: () => void) => void;
    onWindowCloseRequested: (callback: () => void) => void;
    onWindowFocus: (callback: () => void) => void;
}

Properties

onDragDrop: (callback: (payload: DragDropPayload) => void) => void

Get files dropped on the window

onDragEnter: (callback: (payload: DragDropPayload) => void) => void

Listen to drag enter event, when mouse drag enters the window

onDragLeave: (callback: () => void) => void

Listen to drag leave event, when mouse drag leaves the window

onDragOver: (callback: (payload: DragOverPayload) => void) => void

Get the position of the dragged item

onWindowBlur: (callback: () => void) => void

Listen to window blur (defocus) event

onWindowCloseRequested: (callback: () => void) => void

Listen to window close request event

onWindowFocus: (callback: () => void) => void

Listen to window on focus event