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/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
47 virtual ~TelemetryExtension() /*override*/ = default;
48 // NOLINTEND
49
50public:
51 // virtual function thunks
52 // NOLINTBEGIN
53#ifdef LL_PLAT_C
54 MCNAPI void $setupMessageSender(::std::function<void(::std::string, ::std::string, ::std::string)> messageSender);
55
56 MCNAPI bool $shouldProcessMessage(::std::string const& _namespace, ::std::string const& func);
57
58 MCNAPI bool $onMessageReceived(
59 ::std::string const& _namespace,
60 ::std::string const& func,
61 ::std::optional<::Json::Value> arguments
62 );
63
64 MCNAPI void $onLoadingBegin(::std::function<void(::std::string)> handler);
65#endif
66
67
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCNAPI static void** $vftable();
74 // NOLINTEND
75};
76
77} // namespace Webview
Definition Value.h:16
static MCAPI void ** $vftable()
Definition Extension.h:12
Definition TelemetryCommonProperties.h:7
Definition Alias.h:14