Class EffectManager.CppProxy

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

public static final class EffectManager.CppProxy
extends java.lang.Object
implements EffectManager
  • Method Details

    • _djinni_private_destroy

      public void _djinni_private_destroy()
    • finalize

      protected void finalize() throws java.lang.Throwable
      Overrides:
      finalize in class java.lang.Object
      Throws:
      java.lang.Throwable
    • addErrorListener

      public void addErrorListener​(ErrorListener errorListener)
      Description copied from interface: EffectManager
      Add callback to receive errors messages from Effect Player. Thread-safe. May be called from any thread
      Specified by:
      addErrorListener in interface EffectManager
    • removeErrorListener

      public void removeErrorListener​(ErrorListener errorListener)
      Description copied from interface: EffectManager
      Remove callback to receive errors messages from Effect Player. Thread-safe. May be called from any thread
      Specified by:
      removeErrorListener in interface EffectManager
    • addHintListener

      public void addHintListener​(HintListener hintListener)
      Description copied from interface: EffectManager
      Add callback to receive user-visible messages from effects. You should display them on UI. Thread-safe. May be called from any thread
      Specified by:
      addHintListener in interface EffectManager
    • removeHintListener

      public void removeHintListener​(HintListener hintListener)
      Description copied from interface: EffectManager
      Remove callback to receive user-visible messages from effects. Thread-safe. May be called from any thread
      Specified by:
      removeHintListener in interface EffectManager
    • addEffectEventListener

      public void addEffectEventListener​(EffectEventListener effectEventListener)
      Description copied from interface: EffectManager
      Add callback to receive events from effect. Thread-safe. May be called from any thread
      Specified by:
      addEffectEventListener in interface EffectManager
    • removeEffectEventListener

      public void removeEffectEventListener​(EffectEventListener effectEventListener)
      Description copied from interface: EffectManager
      Remove callback to receive events from effect. Thread-safe. May be called from any thread
      Specified by:
      removeEffectEventListener in interface EffectManager
    • addEffectActivatedListener

      public void addEffectActivatedListener​(EffectActivatedListener effectActivatedListener)
      Description copied from interface: EffectManager
      Add callback to receive notifications on effect change. Thread-safe. May be called from any thread
      Specified by:
      addEffectActivatedListener in interface EffectManager
    • removeEffectActivatedListener

      public void removeEffectActivatedListener​(EffectActivatedListener effectActivatedListener)
      Description copied from interface: EffectManager
      Remove callback to receive notifications on effect change. Thread-safe. May be called from any thread
      Specified by:
      removeEffectActivatedListener in interface EffectManager
    • load

      public Effect load​(java.lang.String url)
      Description copied from interface: EffectManager
      load and activate effect sync MUST be called from the render thread
      Specified by:
      load in interface EffectManager
    • loadAsync

      public Effect loadAsync​(java.lang.String url)
      Description copied from interface: EffectManager
      load effect async, activate in the draw() call when it will be ready Thread-safe. May be called from any thread
      Specified by:
      loadAsync in interface EffectManager
    • unload

      public void unload​(Effect effect)
      Description copied from interface: EffectManager
      Unload effect from cache. if no currently loading effect - works the same way as load(""); launches empty effect loading. MUST be called from the render thread
      Specified by:
      unload in interface EffectManager
    • current

      public Effect current()
      Description copied from interface: EffectManager
      get active Thread-safe. May be called from any thread
      Specified by:
      current in interface EffectManager
    • changeCacheQuota

      public void changeCacheQuota​(int size, int count)
      Description copied from interface: EffectManager
      size in Mb, effects count Thread-safe. May be called from any thread
      Specified by:
      changeCacheQuota in interface EffectManager
    • forceCacheReload

      public void forceCacheReload()
      Description copied from interface: EffectManager
      Forces cache reload on the next load/load_async call Thread-safe. May be called from any thread
      Specified by:
      forceCacheReload in interface EffectManager
    • setEffectVolume

      public void setEffectVolume​(float volume)
      Description copied from interface: EffectManager
      Set effect audio volume. Thread-safe. May be called from any thread
      Specified by:
      setEffectVolume in interface EffectManager
      Parameters:
      volume - A value in range `[0, 1]`, where `1` means maximum volume.
    • setEffectSize

      public void setEffectSize​(int fxWidth, int fxHeight)
      Description copied from interface: EffectManager
      Changes effect player render size, should be called on render thread. MUST be called from the render thread
      Specified by:
      setEffectSize in interface EffectManager
    • getEffectInfo

      @NonNull public static EffectInfo getEffectInfo​(@NonNull java.lang.String url)
      Description copied from interface: EffectManager
      Get effect info. May be called before loading effect "render type" and "recognizer features" fields won't be filled Thread-safe. May be called from any thread