Banuba SDK
js_callback.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 
13 namespace bnb { namespace interfaces {
14 
15 /** Callback for JS execution results. */
16 class BNB_EXPORT js_callback {
17 public:
18  virtual ~js_callback() {}
19 
20  /**
21  * This method will be executed on the render thread.
22  * Try not to return as fast as possible.
23  * param result String represenation of execution result.
24  */
25  virtual void on_result(const std::string & result) = 0;
26 };
27 
28 } } // namespace bnb::interfaces
29 /// @}
30 
bnb::interfaces::js_callback
Callback for JS execution results.
Definition: js_callback.hpp:16