Stargate Status Notifier Item
constructor(menu: StargateMenu? = null, onActivate: (token: String?) -> Unit, onSecondaryActivate: (token: String?) -> Unit)(source)
Parameters
menu
Optional context menu exported via the com.canonical.dbusmenu protocol. When provided, getMenu returns DBUS_MENU_OBJECT_PATH and the caller is responsible for exporting the StargateMenu object at that path (see StatusNotifierManager.registerItem).
on Activate
Called on the D-Bus thread when the host activates the item (e.g. double-click). Receives the XDG activation token (if any) provided by the host before the activate call. Implementations must marshal any UI work to the GTK main thread themselves.
on Secondary Activate
Called on the D-Bus thread when the host secondary-activates the item (e.g. middle-click). Receives the XDG activation token (if any) provided by the host before the activate call. Implementations must marshal any UI work to the GTK main thread themselves.