BNBEffectEventListener
Objective-C
@protocol BNBEffectEventListener
Swift
protocol BNBEffectEventListener
Callback interface for effect events.
-
Callback function for custom effect events. Function that is to be invoked by effect on certain events (e.g. analytics).
Note
The function is executed in Render thread.
Declaration
Objective-C
- (void)onEffectEvent:(nonnull NSString *)name params:(nonnull NSDictionary<NSString *, NSString *> *)params;
Swift
func onEffectEvent(_ name: String, params: [String : String])
Parameters
name
event name
params
map of (string, string) which describes events parameters (key-value pairs)