Package-level declarations

Types

Link copied to clipboard
class StargateMenu(items: List<StargateMenuItem>, onMenuOpened: () -> Unit? = null, onMenuClosed: () -> Unit? = null) : Dbusmenu

Server-side implementation of the com.canonical.dbusmenu interface. Export this object at DBUS_MENU_OBJECT_PATH alongside the StatusNotifierItem, and return DBUS_MENU_OBJECT_PATH from StargateStatusNotifierItem.getMenu so the tray host can find it.

Link copied to clipboard
sealed class StargateMenuItem

Represents an item in a DBusMenu context menu.

Link copied to clipboard
abstract class StargateStatusNotifierItem(val menu: StargateMenu? = null, onActivate: (token: String?) -> Unit, onSecondaryActivate: (token: String?) -> Unit) : StatusNotifierItem

Base class for StatusNotifierItem implementations. Handles the XDG activation token lifecycle and dispatches activate/secondary-activate callbacks. Subclasses provide application-specific identity and icon properties.

Link copied to clipboard
class StatusNotifierManager(connection: DBusConnection) : AutoCloseable

Wrapper around the org.kde.StatusNotifierWatcher D-Bus interface. Provides access to the KDE StatusNotifier protocol for system tray integration.

Properties

Link copied to clipboard

D-Bus object path for the DBusMenu exported alongside a StatusNotifierItem.

Link copied to clipboard
const val DBUS_MENU_VERSION: Long = 3

com.canonical.dbusmenu protocol version implemented by this library.

Link copied to clipboard

D-Bus bus name for the StatusNotifierWatcher.

Link copied to clipboard

D-Bus object path for the StatusNotifierItem exported by this process.

Link copied to clipboard

Prefix for the well-known bus name claimed by a StatusNotifierItem. Full name: "$STATUS_NOTIFIER_ITEM_SERVICE_PREFIX-{pid}-1"

Link copied to clipboard

D-Bus object path for the StatusNotifierWatcher.

Functions

Link copied to clipboard
Link copied to clipboard