-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathNativeImageStoreIOSSpec.g.h
75 lines (63 loc) · 4.03 KB
/
NativeImageStoreIOSSpec.g.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
* This file is auto-generated from a NativeModule spec file in js.
*
* This is a C++ Spec class that should be used with MakeTurboModuleProvider to register native modules
* in a way that also verifies at compile time that the native module matches the interface required
* by the TurboModule JS spec.
*/
#pragma once
// clang-format off
#include <NativeModules.h>
#include <tuple>
namespace Microsoft::ReactNativeSpecs {
struct ImageStoreIOSSpec_getBase64ForTag_errorCallback_error {
std::string message;
};
struct ImageStoreIOSSpec_addImageFromBase64_errorCallback_error {
std::string message;
};
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ImageStoreIOSSpec_getBase64ForTag_errorCallback_error*) noexcept {
winrt::Microsoft::ReactNative::FieldMap fieldMap {
{L"message", &ImageStoreIOSSpec_getBase64ForTag_errorCallback_error::message},
};
return fieldMap;
}
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ImageStoreIOSSpec_addImageFromBase64_errorCallback_error*) noexcept {
winrt::Microsoft::ReactNative::FieldMap fieldMap {
{L"message", &ImageStoreIOSSpec_addImageFromBase64_errorCallback_error::message},
};
return fieldMap;
}
struct ImageStoreIOSSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
static constexpr auto methods = std::tuple{
Method<void(std::string, Callback<std::string>, Callback<ImageStoreIOSSpec_getBase64ForTag_errorCallback_error>) noexcept>{0, L"getBase64ForTag"},
Method<void(std::string, Callback<bool>) noexcept>{1, L"hasImageForTag"},
Method<void(std::string) noexcept>{2, L"removeImageForTag"},
Method<void(std::string, Callback<std::string>, Callback<ImageStoreIOSSpec_addImageFromBase64_errorCallback_error>) noexcept>{3, L"addImageFromBase64"},
};
template <class TModule>
static constexpr void ValidateModule() noexcept {
constexpr auto methodCheckResults = CheckMethods<TModule, ImageStoreIOSSpec>();
REACT_SHOW_METHOD_SPEC_ERRORS(
0,
"getBase64ForTag",
" REACT_METHOD(getBase64ForTag) void getBase64ForTag(std::string uri, std::function<void(std::string)> const & successCallback, std::function<void(ImageStoreIOSSpec_getBase64ForTag_errorCallback_error const &)> const & errorCallback) noexcept { /* implementation */ }\n"
" REACT_METHOD(getBase64ForTag) static void getBase64ForTag(std::string uri, std::function<void(std::string)> const & successCallback, std::function<void(ImageStoreIOSSpec_getBase64ForTag_errorCallback_error const &)> const & errorCallback) noexcept { /* implementation */ }\n");
REACT_SHOW_METHOD_SPEC_ERRORS(
1,
"hasImageForTag",
" REACT_METHOD(hasImageForTag) void hasImageForTag(std::string uri, std::function<void(bool)> const & callback) noexcept { /* implementation */ }\n"
" REACT_METHOD(hasImageForTag) static void hasImageForTag(std::string uri, std::function<void(bool)> const & callback) noexcept { /* implementation */ }\n");
REACT_SHOW_METHOD_SPEC_ERRORS(
2,
"removeImageForTag",
" REACT_METHOD(removeImageForTag) void removeImageForTag(std::string uri) noexcept { /* implementation */ }\n"
" REACT_METHOD(removeImageForTag) static void removeImageForTag(std::string uri) noexcept { /* implementation */ }\n");
REACT_SHOW_METHOD_SPEC_ERRORS(
3,
"addImageFromBase64",
" REACT_METHOD(addImageFromBase64) void addImageFromBase64(std::string base64ImageData, std::function<void(std::string)> const & successCallback, std::function<void(ImageStoreIOSSpec_addImageFromBase64_errorCallback_error const &)> const & errorCallback) noexcept { /* implementation */ }\n"
" REACT_METHOD(addImageFromBase64) static void addImageFromBase64(std::string base64ImageData, std::function<void(std::string)> const & successCallback, std::function<void(ImageStoreIOSSpec_addImageFromBase64_errorCallback_error const &)> const & errorCallback) noexcept { /* implementation */ }\n");
}
};
} // namespace Microsoft::ReactNativeSpecs