Banuba SDK
Loading...
Searching...
No Matches
effect_event_listener.hpp
Go to the documentation of this file.
1/// \file
2/// \addtogroup EffectPlayer
3/// @{
4///
5// AUTOGENERATED FILE - DO NOT MODIFY!
6// This file was generated by Djinni from effect_player.djinni
7
8#pragma once
9
10#include <bnb/utils/defs.hpp>
11#include <string>
12#include <unordered_map>
13
14namespace bnb { namespace interfaces {
15
16/** Callback interface for effect events. */
17class BNB_EXPORT effect_event_listener {
18public:
19 virtual ~effect_event_listener() {}
20
21 /**
22 * Callback function for custom effect events.
23 * Function that is to be invoked by effect on certain events (e.g. analytics).
24 *
25 * @note The function is executed in Render thread.
26 *
27 * @param name event name
28 * @param params map of (string, string) which describes events parameters (key-value pairs)
29 */
30 virtual void on_effect_event(const std::string & name, const std::unordered_map<std::string, std::string> & params) = 0;
31};
32
33} } // namespace bnb::interfaces
34/// @}
35
Callback interface for effect events.
virtual void on_effect_event(const std::string &name, const std::unordered_map< std::string, std::string > &params)=0
Callback function for custom effect events.