Represents a concrete container.

Hierarchy

Implements

Constructors

Properties

globalShortcut: GlobalShortcutManager

Register/unregister global keyboard shortcut with the operating system.

hostType: string

Display type of current Container.

Retrieve information about screen size and displays.

storage: Storage

Persistent storage

uuid: string

Unique v4 GUID for this Container instance

windowOptionsPropertyKey: string = "desktopJS-options"

Accessors

Methods

  • Adds an icon and context menu to the system notification area.

    Parameters

    • details: TrayIconDetails

      Details for the tray icon.

    • Optional listener: (() => void)

      (Optional) Callback for when the tray icon is clicked.

        • (): void
        • Returns void

    • Optional menuItems: MenuItem[]

      (Optional) Context menu.

    Returns any

  • Set information on the container based on the options

    Parameters

    • options: any

    Returns any

  • Display a notification.

    Parameters

    • title: string

      Defines a title for the notification. Depending on container and choice of notification mechanism, this might not be shown.

    • Optional options: NotificationOptions

      Notification options.

    Returns any