Interface Scriptable

  • All Known Implementing Classes:
    Script

    public interface Scriptable
    Interface representing a script that can be executed. Implementations of this interface define the main loop of a script.
    • Method Detail

      • stop

        void stop​(java.lang.Runnable callback)
        Gracefully stops a running asynchronous loop().
        Parameters:
        callback - Callback function to execute once the the loop() is stopped.
      • onStart

        void onStart()
      • onStop

        void onStop()