Package com.banuba.sdk.effect_player
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.banuba.sdk.effect_player.EffectManager
EffectManager.CppProxy
-
Method Summary
Modifier and Type Method Description void
_djinni_private_destroy()
void
addEffectActivatedListener(EffectActivatedListener effectActivatedListener)
Add callback to receive notifications on effect change.void
addEffectEventListener(EffectEventListener effectEventListener)
Add callback to receive events from effect.void
addErrorListener(ErrorListener errorListener)
Add callback to receive errors messages from Effect Player.void
addHintListener(HintListener hintListener)
Add callback to receive user-visible messages from effects.void
changeCacheQuota(int size, int count)
size in Mb, effects count Thread-safe.Effect
current()
get active Thread-safe.protected void
finalize()
void
forceCacheReload()
Forces cache reload on the next load/load_async call Thread-safe.static EffectInfo
getEffectInfo(java.lang.String url)
Get effect info.Effect
load(java.lang.String url)
load and activate effect sync MUST be called from the render threadEffect
loadAsync(java.lang.String url)
load effect async, activate in the draw() call when it will be ready Thread-safe.void
removeEffectActivatedListener(EffectActivatedListener effectActivatedListener)
Remove callback to receive notifications on effect change.void
removeEffectEventListener(EffectEventListener effectEventListener)
Remove callback to receive events from effect.void
removeErrorListener(ErrorListener errorListener)
Remove callback to receive errors messages from Effect Player.void
removeHintListener(HintListener hintListener)
Remove callback to receive user-visible messages from effects.void
setEffectSize(int fxWidth, int fxHeight)
Changes effect player render size, should be called on render thread.void
setEffectVolume(float volume)
Set effect audio volume.void
unload(Effect effect)
Unload effect from cache.Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
_djinni_private_destroy
public void _djinni_private_destroy() -
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
addErrorListener
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 interfaceEffectManager
-
removeErrorListener
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 interfaceEffectManager
-
addHintListener
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 interfaceEffectManager
-
removeHintListener
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 interfaceEffectManager
-
addEffectEventListener
Description copied from interface:EffectManager
Add callback to receive events from effect. Thread-safe. May be called from any thread- Specified by:
addEffectEventListener
in interfaceEffectManager
-
removeEffectEventListener
Description copied from interface:EffectManager
Remove callback to receive events from effect. Thread-safe. May be called from any thread- Specified by:
removeEffectEventListener
in interfaceEffectManager
-
addEffectActivatedListener
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 interfaceEffectManager
-
removeEffectActivatedListener
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 interfaceEffectManager
-
load
Description copied from interface:EffectManager
load and activate effect sync MUST be called from the render thread- Specified by:
load
in interfaceEffectManager
-
loadAsync
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 interfaceEffectManager
-
unload
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 interfaceEffectManager
-
current
Description copied from interface:EffectManager
get active Thread-safe. May be called from any thread- Specified by:
current
in interfaceEffectManager
-
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 interfaceEffectManager
-
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 interfaceEffectManager
-
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 interfaceEffectManager
- 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 interfaceEffectManager
-
getEffectInfo
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
-