Banuba SDK
Instance Methods | List of all members
BNBEffect Class Reference

#import <BNBEffect.h>

Inheritance diagram for BNBEffect:

Instance Methods

(nonnull NSString *) - url
 Thread-safe. More...
 
(void) - callJsMethod:params:
 Adds js method call to call queue. More...
 
(void) - reset
 reset effect state MUST be called from the render thread More...
 

Detailed Description

Definition at line 7 of file BNBEffect.h.

Method Documentation

◆ callJsMethod:params:

- (void) callJsMethod: (nonnull NSString *)  methodName
params: (nonnull NSString *)  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
methodNameJS global function name. Member functions are not supported.
paramsFunction arguments as JSON string.

◆ reset

- (void) reset

reset effect state MUST be called from the render thread

◆ url

- (nonnull NSString *) url

Thread-safe.

May be called from any thread


The documentation for this class was generated from the following file: