Class DataCodeDelegate

All Implemented Interfaces:
DefaultDelegateAPI

public class DataCodeDelegate extends DefaultCodeDelegate
Basic data code delegate base class.
  • Constructor Details

    • DataCodeDelegate

      public DataCodeDelegate()
  • Method Details

    • init

      public void init()
      Hook called whenever the delegate needs to be initialized. Will be called when the root is started, on adding a component to a running root, and any time the code is updated. Because this code is called in a running root, the code should be suitable for real-time usage.
    • starting

      public void starting()
      Hook called whenever the root is started. This method will be called after init(). It is not called on code updates.
    • update

      public void update()
      Hook called on every clock update. This will vary depending on the root the component is installed into - it may correspond to every buffer or frame. If a component reacts solely to input and doesn't need to be called every cycle, do not override this method so that the delegate does not have to be connected to the clock (for efficiency).
    • stopping

      public void stopping()
      Hook called when the root is stopping.