Package com.banuba.sdk.effect_player
Class Effect.CppProxy
java.lang.Object
com.banuba.sdk.effect_player.Effect.CppProxy
- All Implemented Interfaces:
Effect
- Enclosing interface:
- Effect
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.banuba.sdk.effect_player.Effect
Effect.CppProxy -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidactivate(int fxWidth, int fxHeight, int surfaceWidth, int surfaceHeight) activate current effect MUST be called from the render thread for OpenGL backends.voidcallJsMethod(String methodName, String params) Call js method in effect.voiddeserialize(String resolvedUrl, String configOverride) Deserialize effect from the provided `resoved_url`.voidevalJs(String script, JsCallback resultCallback) Evaluate the `script` in effect.evalJsSync(String script) Evaluate the `script` in effect.protected voidfinalize()longname()voidreset()Reset effect state MUST be called from the render threadstatus()voidupdate()Update effect state (evaluate scheduled JS calls) MUST be called from the render threadurl()Thread-safe.
-
Method Details
-
_djinni_private_destroy
public void _djinni_private_destroy() -
finalize
-
url
Description copied from interface:EffectThread-safe. May be called from any thread -
name
-
callJsMethod
Description copied from interface:EffectCall js method in effect.- Specified by:
callJsMethodin interfaceEffect- Parameters:
methodName- JS global function name. Member functions are not supported.params- Function arguments.
-
evalJs
Description copied from interface:EffectEvaluate the `script` in effect. This method is thread safe. -
evalJsSync
Description copied from interface:EffectEvaluate the `script` in effect. MUST be called from the render thread- Specified by:
evalJsSyncin interfaceEffect- Returns:
- JS evaluation result
-
reset
public void reset()Description copied from interface:EffectReset effect state MUST be called from the render thread -
update
public void update()Description copied from interface:EffectUpdate effect state (evaluate scheduled JS calls) MUST be called from the render thread -
deserialize
Description copied from interface:EffectDeserialize 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:
deserializein interfaceEffect
-
activate
public void activate(int fxWidth, int fxHeight, int surfaceWidth, int surfaceHeight) Description copied from interface:Effectactivate current effect MUST be called from the render thread for OpenGL backends. -
status
-
getNativeContext
public long getNativeContext()- Specified by:
getNativeContextin interfaceEffect
-