Nnextop / app

IPC Channel Reference

Framework channels handled by registerNextOP. (You normally use the hooks, not these directly.) User channels should use the app: prefix.

ChannelKindUsed byPayload → Result
fs:readFileinvokeuseFs.readFile(filePath) → string
fs:writeFileinvokeuseFs.writeFile(filePath, content) → true
window:minimizeinvokeuseWindow.minimize—
window:maximizeinvokeuseWindow.maximizetoggles maximize
window:closeinvokeuseWindow.close—
window:isMaximizedinvokeuseWindow.isMaximized→ boolean
set-menusenduseMenu.setMenu(template)
open-externalsendLink / window.nextop.openExternal(url)
show-notificationsenduseNotification({ title, body })
shell-executeinvokeuseShell.execute({ command, args }) → ShellResult
read-clipboardinvokeuseClipboard.readText(type?) → string
write-clipboardsenduseClipboard.writeText({ text, type })
secure-store:isAvailableinvokeuseSecureStore.isAvailable→ boolean
secure-store:setinvokeuseSecureStore.setItem(key, value) → true
secure-store:getinvokeuseSecureStore.getItem(key) → string | null
secure-store:removeinvokeuseSecureStore.removeItem(key) → true
secure-store:hasinvokeuseSecureStore.hasItem(key) → boolean
secure-store:clearinvokeuseSecureStore.clear→ true
open-internal-windowsendLink target="_blank"(url, options?)
dialog:showOpenDialoginvokeuseDialog.showOpenDialog(options?) → string[] | null
dialog:showSaveDialoginvokeuseDialog.showSaveDialog(options?) → string | null
tray:createinvokeuseTray({ tooltip?, menuTemplate?, icon? }) → true
tray:destroysenduseTray (unmount)—
tray:setToolTipsenduseTray.setToolTip(tooltip)
tray:setMenusenduseTray.setMenu(menuTemplate)
tray:clickon (main → renderer)useTray.onClick—
global-shortcut:registerinvokeuseGlobalShortcut(accelerator) → boolean
global-shortcut:unregistersenduseGlobalShortcut (unmount)(accelerator)
global-shortcut:triggeredon (main → renderer)useGlobalShortcut(accelerator)
store:getinvokeuseStore.getItem(key) → T | null
store:setinvokeuseStore.setItem(key, value) → true
store:removeinvokeuseStore.removeItem(key) → true
store:hasinvokeuseStore.hasItem(key) → boolean
store:clearinvokeuseStore.clear→ true