Skip to content
LeviMC
English
AutoLightDark
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 virtual void
35 setupMessageSender(::std::function<void(::std::string, ::std::string, ::std::string)> messageSender) /*override*/;
36
37 virtual bool shouldProcessMessage(::std::string const& _namespace, ::std::string const& func) /*override*/;
38
39 virtual bool onMessageReceived(
40 ::std::string const& _namespace,
41 ::std::string const& func,
42 ::std::optional<::Json::Value> arguments
43 ) /*override*/;
44
45 virtual void onLoadingBegin(::std::function<void(::std::string)> handler) /*override*/;
46 // NOLINTEND
47
48public:
49 // virtual function thunks
50 // NOLINTBEGIN
51#ifdef LL_PLAT_C
52 MCNAPI void $setupMessageSender(::std::function<void(::std::string, ::std::string, ::std::string)> messageSender);
53
54 MCNAPI bool $shouldProcessMessage(::std::string const& _namespace, ::std::string const& func);
55
56 MCNAPI bool $onMessageReceived(
57 ::std::string const& _namespace,
58 ::std::string const& func,
59 ::std::optional<::Json::Value> arguments
60 );
61
62 MCNAPI void $onLoadingBegin(::std::function<void(::std::string)> handler);
63#endif
64
65
66 // NOLINTEND
67
68public:
69 // vftables
70 // NOLINTBEGIN
71 MCNAPI static void** $vftable();
72 // NOLINTEND
73};
74
75} // namespace Webview
Definition Value.h:16
static MCAPI void ** $vftable()
Definition Extension.h:12
Definition TelemetryCommonProperties.h:7
Definition Alias.h:14