StargateStatusNotifierItem

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

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.

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).

onActivate

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.

onSecondaryActivate

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.

Constructors

Link copied to clipboard
constructor(menu: StargateMenu? = null, onActivate: (token: String?) -> Unit, onSecondaryActivate: (token: String?) -> Unit)

Properties

Link copied to clipboard
open override val attentionIconName: String
Link copied to clipboard
Link copied to clipboard
open override val attentionMovieName: String
Link copied to clipboard
open override val category: String
Link copied to clipboard
open override val iconName: String
Link copied to clipboard
Link copied to clipboard
open override val iconThemePath: String
Link copied to clipboard
abstract override val id: String
Link copied to clipboard
open override val isItemIsMenu: Boolean
Link copied to clipboard
open val isRemote: Boolean
Link copied to clipboard
open override val menu: DBusPath
Link copied to clipboard
open override val objectPath: String
Link copied to clipboard
open override val overlayIconName: String
Link copied to clipboard
Link copied to clipboard
open override val status: String
Link copied to clipboard
abstract override val title: String
Link copied to clipboard
open override val toolTip: PropertyToolTipStruct
Link copied to clipboard
open override val windowId: Int

Functions

Link copied to clipboard
open override fun Activate(x: Int, y: Int)
Link copied to clipboard
open override fun ContextMenu(x: Int, y: Int)
Link copied to clipboard
open override fun getAttentionIconName(): String
Link copied to clipboard
open override fun getAttentionMovieName(): String
Link copied to clipboard
open override fun getCategory(): String
Link copied to clipboard
open override fun getIconName(): String
Link copied to clipboard
Link copied to clipboard
open override fun getIconThemePath(): String
Link copied to clipboard
abstract override fun getId(): String
Link copied to clipboard
open override fun getMenu(): DBusPath
Link copied to clipboard
open override fun getObjectPath(): String
Link copied to clipboard
open override fun getOverlayIconName(): String
Link copied to clipboard
Link copied to clipboard
open override fun getStatus(): String
Link copied to clipboard
abstract override fun getTitle(): String
Link copied to clipboard
open override fun getToolTip(): PropertyToolTipStruct
Link copied to clipboard
abstract fun getToolTipInfo(): Pair<String, String>
Link copied to clipboard
open override fun getWindowId(): Int
Link copied to clipboard
open override fun isItemIsMenu(): Boolean
Link copied to clipboard
open override fun ProvideXdgActivationToken(token: String)
Link copied to clipboard
open override fun Scroll(delta: Int, orientation: String)
Link copied to clipboard
open override fun SecondaryActivate(x: Int, y: Int)