Interface Effect

All Known Implementing Classes:
Effect.CppProxy

public interface Effect
  • Nested Class Summary

    Nested Classes
    Modifier and Type Interface Description
    static class  Effect.CppProxy  
  • Method Summary

    Modifier and Type Method Description
    void callJsMethod​(java.lang.String methodName, java.lang.String params)
    Adds js method call to call queue.
    void reset()
    reset effect state MUST be called from the render thread
    java.lang.String url()
    Thread-safe.
  • Method Details

    • url

      @NonNull java.lang.String url()
      Thread-safe. May be called from any thread
    • callJsMethod

      void callJsMethod​(@NonNull java.lang.String methodName, @NonNull java.lang.String params)
      Adds js method call to call queue. Queue is performed during the *draw* operation. If there is an effect in loading state, all calls will be performed when the effect loading is finished. Thread-safe. May be called from any thread
      Parameters:
      methodName - JS global function name. Member functions are not supported.
      params - Function arguments as JSON string.
    • reset

      void reset()
      reset effect state MUST be called from the render thread