LeviLamina
Loading...
Searching...
No Matches
TelemetryExtension.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/code_builder/platform/webview/Extension.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Json { class Value; }
11namespace Webview { struct TelemetryCommonProperties; }
12// clang-format on
13
14namespace Webview {
15
16class TelemetryExtension : public ::Webview::Extension {
17public:
18 // member variables
19 // NOLINTBEGIN
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 TelemetryExtension& operator=(TelemetryExtension const&);
28 TelemetryExtension(TelemetryExtension const&);
29 TelemetryExtension();
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34#ifdef LL_PLAT_S
35 virtual void setupMessageSender(::std::function<void(::std::string, ::std::string, ::std::string)>) /*override*/;
36#else // LL_PLAT_C
37 virtual void
38 setupMessageSender(::std::function<void(::std::string, ::std::string, ::std::string)> messageSender) /*override*/;
39#endif
40
41#ifdef LL_PLAT_S
42 virtual bool shouldProcessMessage(::std::string const&, ::std::string const&) /*override*/;
43#else // LL_PLAT_C
44 virtual bool shouldProcessMessage(::std::string const& _namespace, ::std::string const& func) /*override*/;
45#endif
46
47#ifdef LL_PLAT_S
48 virtual bool
49 onMessageReceived(::std::string const&, ::std::string const&, ::std::optional<::Json::Value>) /*override*/;
50#else // LL_PLAT_C
51 virtual bool onMessageReceived(
52 ::std::string const& func,
53 ::std::string const& arguments,
54 ::std::optional<::Json::Value>
55 ) /*override*/;
56#endif
57
58#ifdef LL_PLAT_S
59 virtual void onLoadingBegin(::std::function<void(::std::string)>) /*override*/;
60#else // LL_PLAT_C
61 virtual void onLoadingBegin(::std::function<void(::std::string)> handler) /*override*/;
62#endif
63
64 // NOLINTEND
65
66public:
67 // member functions
68 // NOLINTBEGIN
69#ifdef LL_PLAT_C
70 MCNAPI explicit TelemetryExtension(
71 ::std::function<void(::Webview::TelemetryCommonProperties&, ::std::string, ::std::string)> log
72 );
73#endif
74 // NOLINTEND
75
76public:
77 // constructor thunks
78 // NOLINTBEGIN
79#ifdef LL_PLAT_C
80 MCNAPI void* $ctor(::std::function<void(::Webview::TelemetryCommonProperties&, ::std::string, ::std::string)> log);
81#endif
82 // NOLINTEND
83
84public:
85 // virtual function thunks
86 // NOLINTBEGIN
87#ifdef LL_PLAT_C
88 MCNAPI void $setupMessageSender(::std::function<void(::std::string, ::std::string, ::std::string)> messageSender);
89
90 MCNAPI bool $shouldProcessMessage(::std::string const& _namespace, ::std::string const& func);
91
92 MCNAPI bool
93 $onMessageReceived(::std::string const& func, ::std::string const& arguments, ::std::optional<::Json::Value>);
94
95 MCNAPI void $onLoadingBegin(::std::function<void(::std::string)> handler);
96#endif
97
98
99 // NOLINTEND
100
101public:
102 // vftables
103 // NOLINTBEGIN
104 MCNAPI static void** $vftable();
105 // NOLINTEND
106};
107
108} // namespace Webview
Definition Value.h:16
static MCAPI void ** $vftable()
Definition Extension.h:12
Definition TelemetryCommonProperties.h:7
Definition Alias.h:14