Class SdlApplication

java.lang.Object
arc.backend.sdl.SdlApplication
All Implemented Interfaces:
Application, Disposable

public class SdlApplication extends Object implements Application
  • Constructor Details

  • Method Details

    • getWindow

      public long getWindow()
    • openFolder

      public boolean openFolder(String file)
      Description copied from interface: Application
      Open a folder in the system's file browser.
      Specified by:
      openFolder in interface Application
      Returns:
      whether this operation was successful.
    • openURI

      public boolean openURI(String url)
      Description copied from interface: Application
      Launches the default browser to display a URI. If the default browser is not able to handle the specified URI, the application registered for handling URIs of the specified type is invoked. The application is determined from the protocol and path of the URI. A best effort is made to open the given URI; however, since external applications are involved, no guarantee can be made as to whether the URI was actually opened. If it is known that the URI was not opened, false will be returned; otherwise, true will be returned.
      Specified by:
      openURI in interface Application
      Parameters:
      url - the URI to be opened.
      Returns:
      false if it is known the uri was not opened, true otherwise.
    • getListeners

      public Seq<ApplicationListener> getListeners()
      Description copied from interface: Application
      Returns a list of all the application listeners used.
      Specified by:
      getListeners in interface Application
    • getType

      public Application.ApplicationType getType()
      Specified by:
      getType in interface Application
      Returns:
      what Application.ApplicationType this application has, e.g. Android or Desktop
    • getClipboardText

      public String getClipboardText()
      Specified by:
      getClipboardText in interface Application
    • setClipboardText

      public void setClipboardText(String text)
      Specified by:
      setClipboardText in interface Application
    • post

      public void post(Runnable runnable)
      Description copied from interface: Application
      Posts a runnable on the main loop thread.
      Specified by:
      post in interface Application
    • exit

      public void exit()
      Description copied from interface: Application
      Schedule an exit from the application. On android, this will cause a call to pause() and dispose() some time in the future, it will not immediately finish your application. On iOS this should be avoided in production as it breaks Apples guidelines.
      Specified by:
      exit in interface Application