Skip to content
JDesk
Reference

Java API

The public Java API surface of JDesk, module dev.jdesk.api.

Every type in dev.jdesk.api is dependency-free and stable.

  • JDeskApplicationbuilder() with id, commands, capabilities, window, lifecycle, run(args).
  • WindowConfigid, title, size, minSize, resizable, rememberBounds, entry.
  • @DesktopCommand / @RequiresCapability / @PublicDesktopCommand — command annotations.
  • InvocationContextwindowId, requestId, events(), isCancelled().
  • EventEmitteremit(name, payload).
  • UiDispatcherisUiThread, execute, submit, assertUiThread.
  • JDeskException / ErrorCode — the only identifiers allowed across the boundary.