Class Effect.CppProxy

java.lang.Object
com.banuba.sdk.effect_player.Effect.CppProxy
All Implemented Interfaces:
Effect
Enclosing interface:
Effect

public static final class Effect.CppProxy extends Object implements Effect
  • Method Details

    • _djinni_private_destroy

      public void _djinni_private_destroy()
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • url

      public String url()
      Description copied from interface: Effect
      Thread-safe. May be called from any thread
      Specified by:
      url in interface Effect
    • name

      public String name()
      Specified by:
      name in interface Effect
    • callJsMethod

      public void callJsMethod(String methodName, String params)
      Description copied from interface: Effect
      Call js method in effect.
      Specified by:
      callJsMethod in interface Effect
      Parameters:
      methodName - JS global function name. Member functions are not supported.
      params - Function arguments.
    • evalJs

      public void evalJs(String script, JsCallback resultCallback)
      Description copied from interface: Effect
      Evaluate the `script` in effect. This method is thread safe.
      Specified by:
      evalJs in interface Effect
    • evalJsSync

      public String evalJsSync(String script)
      Description copied from interface: Effect
      Evaluate the `script` in effect. MUST be called from the render thread
      Specified by:
      evalJsSync in interface Effect
      Returns:
      JS evaluation result
    • reset

      public void reset()
      Description copied from interface: Effect
      Reset effect state MUST be called from the render thread
      Specified by:
      reset in interface Effect
    • update

      public void update()
      Description copied from interface: Effect
      Update effect state (evaluate scheduled JS calls) MUST be called from the render thread
      Specified by:
      update in interface Effect
    • deserialize

      public void deserialize(String resolvedUrl, String configOverride)
      Description copied from interface: Effect
      Deserialize effect from the provided `resoved_url`. If `configOverride` is an empty string, will use `config.json` under provided `resolvedUrl`, otherwise content of `configOverride` will be used. Can be called from any thread.
      Specified by:
      deserialize in interface Effect
    • activate

      public void activate(int fxWidth, int fxHeight, int surfaceWidth, int surfaceHeight)
      Description copied from interface: Effect
      activate current effect MUST be called from the render thread for OpenGL backends.
      Specified by:
      activate in interface Effect
    • dumpFs

      public void dumpFs(String outDir)
      Specified by:
      dumpFs in interface Effect
    • dump

      public void dump()
      Specified by:
      dump in interface Effect
    • dumpJson

      public String dumpJson()
      Specified by:
      dumpJson in interface Effect
    • status

      public EffectStatus status()
      Specified by:
      status in interface Effect
    • getNativeContext

      public long getNativeContext()
      Specified by:
      getNativeContext in interface Effect