Class RecorderExtension

java.lang.Object
org.openpatch.scratch.recorder.RecorderExtension
All Implemented Interfaces:
Extension

public final class RecorderExtension extends Object implements Extension
Registers the recorder extension; found through ServiceLoader, learners never see it.
  • Constructor Details

    • RecorderExtension

      public RecorderExtension()
  • Method Details

    • id

      public String id()
      Description copied from interface: Extension
      A short unique id such as "tiled", used in messages.
      Specified by:
      id in interface Extension
    • name

      public String name()
      Description copied from interface: Extension
      A name for people, such as "Tiled maps".
      Specified by:
      name in interface Extension
    • version

      public String version()
      Description copied from interface: Extension
      The extension's own version.
      Specified by:
      version in interface Extension
    • install

      public void install(ExtensionContext ctx)
      Hands every drawn frame to the recorders that are recording; frames are read back only then.
      Specified by:
      install in interface Extension
    • requires

      public String requires()
      First-party extensions are released together with the core.
      Specified by:
      requires in interface Extension