getTrayPosition

Determines the position of the system tray icons based on the current operating system.

The method evaluates the operating system in use and retrieves the corresponding tray position.

  • On Windows, it uses the platform's native library to determine the tray position.

  • On macOS, it defaults to a specific standard position.

  • On Linux, the position can be fetched from an application-specific properties file, if available.

  • For unknown or unsupported operating systems, a default position is returned.

Return

The computed tray position as a TrayPosition enum value.