Interface PlatformService

    • Method Detail

      • getTargetPlatforms

        List<Platform> getTargetPlatforms()
        Gets the platform handlers applicable to this platform.
      • open

        void open​(URL url)
           throws IOException
        Opens a URL in a platform-dependent way. Typically the URL is opened in an external web browser instance, but the behavior is ultimately defined by the available platform handler implementations.
        Throws:
        IOException
      • exec

        int exec​(String... args)
          throws IOException
        Executes a native program and waits for it to return.
        Returns:
        the exit code of the execution.
        Throws:
        IOException
      • registerAppMenus

        boolean registerAppMenus​(Object menus)
        Informs the active platform handlers of a UI's newly created application menu structure. Each active platform handler may choose to do something platform-specific with the menus.
        Parameters:
        menus - The UI's newly created menu structure
        Returns:
        true iff the menus should not be added to the UI as normal because a platform handler did something platform-specific with them instead.