react-native-google-maps-plus 1.3.0-dev.1 → 1.3.0-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +107 -5
- package/android/src/main/java/com/rngooglemapsplus/LocationHandler.kt +0 -1
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +48 -4
- package/android/src/main/java/com/rngooglemapsplus/extensions/IndoorBuildingExtension.kt +33 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNLatLngBoundsExtension.kt +17 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNSize.kt +7 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNSnapshotFormat.kt +16 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNSnapshotResultType.kt +9 -0
- package/ios/GoogleMapViewImpl.swift +277 -121
- package/ios/RNGoogleMapsPlusView.swift +78 -27
- package/ios/extensions/IndoorBuilding+Extension.swift +33 -0
- package/ios/extensions/RNLatLngBounds+Extension.swift +16 -0
- package/ios/extensions/RNSize+Extension.swift +7 -0
- package/ios/extensions/RNSnapshotFormat+Extension.swift +28 -0
- package/ios/extensions/RNSnapshotResultType+Extension.swift +12 -0
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +8 -3
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +25 -1
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +4 -0
- package/nitrogen/generated/android/c++/JFunc_void_RNIndoorBuilding.hpp +81 -0
- package/nitrogen/generated/android/c++/JFunc_void_RNIndoorLevel.hpp +78 -0
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +99 -7
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +9 -2
- package/nitrogen/generated/android/c++/JRNIndoorBuilding.hpp +86 -0
- package/nitrogen/generated/android/c++/JRNIndoorLevel.hpp +66 -0
- package/nitrogen/generated/android/c++/JRNLatLngBounds.hpp +58 -0
- package/nitrogen/generated/android/c++/JRNSize.hpp +57 -0
- package/nitrogen/generated/android/c++/JRNSnapshotFormat.hpp +62 -0
- package/nitrogen/generated/android/c++/JRNSnapshotOptions.hpp +71 -0
- package/nitrogen/generated/android/c++/JRNSnapshotResultType.hpp +59 -0
- package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +8 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorBuilding.kt +81 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorLevel.kt +81 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +42 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIndoorBuilding.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIndoorLevel.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLatLngBounds.kt +32 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNSize.kt +32 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNSnapshotFormat.kt +22 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNSnapshotOptions.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNSnapshotResultType.kt +21 -0
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +16 -0
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +148 -0
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +21 -0
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +60 -5
- package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +10 -0
- package/nitrogen/generated/ios/swift/Func_void_RNIndoorBuilding.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_RNIndoorLevel.swift +47 -0
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +7 -2
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +122 -4
- package/nitrogen/generated/ios/swift/RNIndoorBuilding.swift +116 -0
- package/nitrogen/generated/ios/swift/RNIndoorLevel.swift +118 -0
- package/nitrogen/generated/ios/swift/RNLatLngBounds.swift +46 -0
- package/nitrogen/generated/ios/swift/RNSize.swift +46 -0
- package/nitrogen/generated/ios/swift/RNSnapshotFormat.swift +44 -0
- package/nitrogen/generated/ios/swift/RNSnapshotOptions.swift +87 -0
- package/nitrogen/generated/ios/swift/RNSnapshotResultType.swift +40 -0
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +7 -0
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +22 -3
- package/nitrogen/generated/shared/c++/RNIndoorBuilding.hpp +82 -0
- package/nitrogen/generated/shared/c++/RNIndoorLevel.hpp +80 -0
- package/nitrogen/generated/shared/c++/RNLatLngBounds.hpp +72 -0
- package/nitrogen/generated/shared/c++/RNSize.hpp +71 -0
- package/nitrogen/generated/shared/c++/RNSnapshotFormat.hpp +80 -0
- package/nitrogen/generated/shared/c++/RNSnapshotOptions.hpp +87 -0
- package/nitrogen/generated/shared/c++/RNSnapshotResultType.hpp +76 -0
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +24 -0
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +4 -0
- package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +2 -0
- package/package.json +1 -1
- package/src/RNGoogleMapsPlusView.nitro.ts +19 -2
- package/src/types.ts +38 -2
|
@@ -34,10 +34,16 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
|
|
|
34
34
|
namespace margelo::nitro::rngooglemapsplus { struct RNIOSLocationConfig; }
|
|
35
35
|
// Forward declaration of `RNIOSPermissionResult` to properly resolve imports.
|
|
36
36
|
namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
37
|
+
// Forward declaration of `RNIndoorBuilding` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNIndoorBuilding; }
|
|
39
|
+
// Forward declaration of `RNIndoorLevel` to properly resolve imports.
|
|
40
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNIndoorLevel; }
|
|
37
41
|
// Forward declaration of `RNInitialProps` to properly resolve imports.
|
|
38
42
|
namespace margelo::nitro::rngooglemapsplus { struct RNInitialProps; }
|
|
39
43
|
// Forward declaration of `RNKMLayer` to properly resolve imports.
|
|
40
44
|
namespace margelo::nitro::rngooglemapsplus { struct RNKMLayer; }
|
|
45
|
+
// Forward declaration of `RNLatLngBounds` to properly resolve imports.
|
|
46
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNLatLngBounds; }
|
|
41
47
|
// Forward declaration of `RNLatLng` to properly resolve imports.
|
|
42
48
|
namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
|
|
43
49
|
// Forward declaration of `RNLineCapType` to properly resolve imports.
|
|
@@ -74,6 +80,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNPolyline; }
|
|
|
74
80
|
namespace margelo::nitro::rngooglemapsplus { struct RNPosition; }
|
|
75
81
|
// Forward declaration of `RNRegion` to properly resolve imports.
|
|
76
82
|
namespace margelo::nitro::rngooglemapsplus { struct RNRegion; }
|
|
83
|
+
// Forward declaration of `RNSize` to properly resolve imports.
|
|
84
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNSize; }
|
|
77
85
|
// Forward declaration of `RNUserInterfaceStyle` to properly resolve imports.
|
|
78
86
|
namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
79
87
|
|
|
@@ -97,9 +105,12 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
|
97
105
|
#include "RNIOSLocationAccuracy.hpp"
|
|
98
106
|
#include "RNIOSLocationConfig.hpp"
|
|
99
107
|
#include "RNIOSPermissionResult.hpp"
|
|
108
|
+
#include "RNIndoorBuilding.hpp"
|
|
109
|
+
#include "RNIndoorLevel.hpp"
|
|
100
110
|
#include "RNInitialProps.hpp"
|
|
101
111
|
#include "RNKMLayer.hpp"
|
|
102
112
|
#include "RNLatLng.hpp"
|
|
113
|
+
#include "RNLatLngBounds.hpp"
|
|
103
114
|
#include "RNLineCapType.hpp"
|
|
104
115
|
#include "RNLineJoinType.hpp"
|
|
105
116
|
#include "RNLocation.hpp"
|
|
@@ -117,6 +128,7 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
|
117
128
|
#include "RNPolyline.hpp"
|
|
118
129
|
#include "RNPosition.hpp"
|
|
119
130
|
#include "RNRegion.hpp"
|
|
131
|
+
#include "RNSize.hpp"
|
|
120
132
|
#include "RNUserInterfaceStyle.hpp"
|
|
121
133
|
#include <NitroModules/Promise.hpp>
|
|
122
134
|
#include <NitroModules/PromiseHolder.hpp>
|
|
@@ -1033,6 +1045,91 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1033
1045
|
return *optional;
|
|
1034
1046
|
}
|
|
1035
1047
|
|
|
1048
|
+
// pragma MARK: std::vector<RNIndoorLevel>
|
|
1049
|
+
/**
|
|
1050
|
+
* Specialized version of `std::vector<RNIndoorLevel>`.
|
|
1051
|
+
*/
|
|
1052
|
+
using std__vector_RNIndoorLevel_ = std::vector<RNIndoorLevel>;
|
|
1053
|
+
inline std::vector<RNIndoorLevel> create_std__vector_RNIndoorLevel_(size_t size) noexcept {
|
|
1054
|
+
std::vector<RNIndoorLevel> vector;
|
|
1055
|
+
vector.reserve(size);
|
|
1056
|
+
return vector;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
// pragma MARK: std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>
|
|
1060
|
+
/**
|
|
1061
|
+
* Specialized version of `std::function<void(const RNIndoorBuilding&)>`.
|
|
1062
|
+
*/
|
|
1063
|
+
using Func_void_RNIndoorBuilding = std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>;
|
|
1064
|
+
/**
|
|
1065
|
+
* Wrapper class for a `std::function<void(const RNIndoorBuilding& / * indoorBuilding * /)>`, this can be used from Swift.
|
|
1066
|
+
*/
|
|
1067
|
+
class Func_void_RNIndoorBuilding_Wrapper final {
|
|
1068
|
+
public:
|
|
1069
|
+
explicit Func_void_RNIndoorBuilding_Wrapper(std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>&& func): _function(std::make_unique<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>>(std::move(func))) {}
|
|
1070
|
+
inline void call(RNIndoorBuilding indoorBuilding) const noexcept {
|
|
1071
|
+
_function->operator()(indoorBuilding);
|
|
1072
|
+
}
|
|
1073
|
+
private:
|
|
1074
|
+
std::unique_ptr<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>> _function;
|
|
1075
|
+
} SWIFT_NONCOPYABLE;
|
|
1076
|
+
Func_void_RNIndoorBuilding create_Func_void_RNIndoorBuilding(void* _Nonnull swiftClosureWrapper) noexcept;
|
|
1077
|
+
inline Func_void_RNIndoorBuilding_Wrapper wrap_Func_void_RNIndoorBuilding(Func_void_RNIndoorBuilding value) noexcept {
|
|
1078
|
+
return Func_void_RNIndoorBuilding_Wrapper(std::move(value));
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
// pragma MARK: std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>>
|
|
1082
|
+
/**
|
|
1083
|
+
* Specialized version of `std::optional<std::function<void(const RNIndoorBuilding& / * indoorBuilding * /)>>`.
|
|
1084
|
+
*/
|
|
1085
|
+
using std__optional_std__function_void_const_RNIndoorBuilding_____indoorBuilding______ = std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>>;
|
|
1086
|
+
inline std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>> create_std__optional_std__function_void_const_RNIndoorBuilding_____indoorBuilding______(const std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>& value) noexcept {
|
|
1087
|
+
return std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>>(value);
|
|
1088
|
+
}
|
|
1089
|
+
inline bool has_value_std__optional_std__function_void_const_RNIndoorBuilding_____indoorBuilding______(const std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>>& optional) noexcept {
|
|
1090
|
+
return optional.has_value();
|
|
1091
|
+
}
|
|
1092
|
+
inline std::function<void(const RNIndoorBuilding& /* indoorBuilding */)> get_std__optional_std__function_void_const_RNIndoorBuilding_____indoorBuilding______(const std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>>& optional) noexcept {
|
|
1093
|
+
return *optional;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
// pragma MARK: std::function<void(const RNIndoorLevel& /* indoorLevel */)>
|
|
1097
|
+
/**
|
|
1098
|
+
* Specialized version of `std::function<void(const RNIndoorLevel&)>`.
|
|
1099
|
+
*/
|
|
1100
|
+
using Func_void_RNIndoorLevel = std::function<void(const RNIndoorLevel& /* indoorLevel */)>;
|
|
1101
|
+
/**
|
|
1102
|
+
* Wrapper class for a `std::function<void(const RNIndoorLevel& / * indoorLevel * /)>`, this can be used from Swift.
|
|
1103
|
+
*/
|
|
1104
|
+
class Func_void_RNIndoorLevel_Wrapper final {
|
|
1105
|
+
public:
|
|
1106
|
+
explicit Func_void_RNIndoorLevel_Wrapper(std::function<void(const RNIndoorLevel& /* indoorLevel */)>&& func): _function(std::make_unique<std::function<void(const RNIndoorLevel& /* indoorLevel */)>>(std::move(func))) {}
|
|
1107
|
+
inline void call(RNIndoorLevel indoorLevel) const noexcept {
|
|
1108
|
+
_function->operator()(indoorLevel);
|
|
1109
|
+
}
|
|
1110
|
+
private:
|
|
1111
|
+
std::unique_ptr<std::function<void(const RNIndoorLevel& /* indoorLevel */)>> _function;
|
|
1112
|
+
} SWIFT_NONCOPYABLE;
|
|
1113
|
+
Func_void_RNIndoorLevel create_Func_void_RNIndoorLevel(void* _Nonnull swiftClosureWrapper) noexcept;
|
|
1114
|
+
inline Func_void_RNIndoorLevel_Wrapper wrap_Func_void_RNIndoorLevel(Func_void_RNIndoorLevel value) noexcept {
|
|
1115
|
+
return Func_void_RNIndoorLevel_Wrapper(std::move(value));
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
// pragma MARK: std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>>
|
|
1119
|
+
/**
|
|
1120
|
+
* Specialized version of `std::optional<std::function<void(const RNIndoorLevel& / * indoorLevel * /)>>`.
|
|
1121
|
+
*/
|
|
1122
|
+
using std__optional_std__function_void_const_RNIndoorLevel_____indoorLevel______ = std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>>;
|
|
1123
|
+
inline std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>> create_std__optional_std__function_void_const_RNIndoorLevel_____indoorLevel______(const std::function<void(const RNIndoorLevel& /* indoorLevel */)>& value) noexcept {
|
|
1124
|
+
return std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>>(value);
|
|
1125
|
+
}
|
|
1126
|
+
inline bool has_value_std__optional_std__function_void_const_RNIndoorLevel_____indoorLevel______(const std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>>& optional) noexcept {
|
|
1127
|
+
return optional.has_value();
|
|
1128
|
+
}
|
|
1129
|
+
inline std::function<void(const RNIndoorLevel& /* indoorLevel */)> get_std__optional_std__function_void_const_RNIndoorLevel_____indoorLevel______(const std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>>& optional) noexcept {
|
|
1130
|
+
return *optional;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1036
1133
|
// pragma MARK: std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>
|
|
1037
1134
|
/**
|
|
1038
1135
|
* Specialized version of `std::function<void(const RNRegion&, const RNCamera&, bool)>`.
|
|
@@ -1070,6 +1167,48 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1070
1167
|
return *optional;
|
|
1071
1168
|
}
|
|
1072
1169
|
|
|
1170
|
+
// pragma MARK: std::optional<RNLatLngBounds>
|
|
1171
|
+
/**
|
|
1172
|
+
* Specialized version of `std::optional<RNLatLngBounds>`.
|
|
1173
|
+
*/
|
|
1174
|
+
using std__optional_RNLatLngBounds_ = std::optional<RNLatLngBounds>;
|
|
1175
|
+
inline std::optional<RNLatLngBounds> create_std__optional_RNLatLngBounds_(const RNLatLngBounds& value) noexcept {
|
|
1176
|
+
return std::optional<RNLatLngBounds>(value);
|
|
1177
|
+
}
|
|
1178
|
+
inline bool has_value_std__optional_RNLatLngBounds_(const std::optional<RNLatLngBounds>& optional) noexcept {
|
|
1179
|
+
return optional.has_value();
|
|
1180
|
+
}
|
|
1181
|
+
inline RNLatLngBounds get_std__optional_RNLatLngBounds_(const std::optional<RNLatLngBounds>& optional) noexcept {
|
|
1182
|
+
return *optional;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
// pragma MARK: std::shared_ptr<Promise<std::optional<std::string>>>
|
|
1186
|
+
/**
|
|
1187
|
+
* Specialized version of `std::shared_ptr<Promise<std::optional<std::string>>>`.
|
|
1188
|
+
*/
|
|
1189
|
+
using std__shared_ptr_Promise_std__optional_std__string___ = std::shared_ptr<Promise<std::optional<std::string>>>;
|
|
1190
|
+
inline std::shared_ptr<Promise<std::optional<std::string>>> create_std__shared_ptr_Promise_std__optional_std__string___() noexcept {
|
|
1191
|
+
return Promise<std::optional<std::string>>::create();
|
|
1192
|
+
}
|
|
1193
|
+
inline PromiseHolder<std::optional<std::string>> wrap_std__shared_ptr_Promise_std__optional_std__string___(std::shared_ptr<Promise<std::optional<std::string>>> promise) noexcept {
|
|
1194
|
+
return PromiseHolder<std::optional<std::string>>(std::move(promise));
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
// pragma MARK: std::optional<RNSize>
|
|
1198
|
+
/**
|
|
1199
|
+
* Specialized version of `std::optional<RNSize>`.
|
|
1200
|
+
*/
|
|
1201
|
+
using std__optional_RNSize_ = std::optional<RNSize>;
|
|
1202
|
+
inline std::optional<RNSize> create_std__optional_RNSize_(const RNSize& value) noexcept {
|
|
1203
|
+
return std::optional<RNSize>(value);
|
|
1204
|
+
}
|
|
1205
|
+
inline bool has_value_std__optional_RNSize_(const std::optional<RNSize>& optional) noexcept {
|
|
1206
|
+
return optional.has_value();
|
|
1207
|
+
}
|
|
1208
|
+
inline RNSize get_std__optional_RNSize_(const std::optional<RNSize>& optional) noexcept {
|
|
1209
|
+
return *optional;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1073
1212
|
// pragma MARK: std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>
|
|
1074
1213
|
/**
|
|
1075
1214
|
* Specialized version of `std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>`.
|
|
@@ -1081,5 +1220,14 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1081
1220
|
// pragma MARK: std::weak_ptr<HybridRNGoogleMapsPlusViewSpec>
|
|
1082
1221
|
using std__weak_ptr_HybridRNGoogleMapsPlusViewSpec_ = std::weak_ptr<HybridRNGoogleMapsPlusViewSpec>;
|
|
1083
1222
|
inline std__weak_ptr_HybridRNGoogleMapsPlusViewSpec_ weakify_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(const std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>& strong) noexcept { return strong; }
|
|
1223
|
+
|
|
1224
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::optional<std::string>>>>
|
|
1225
|
+
using Result_std__shared_ptr_Promise_std__optional_std__string____ = Result<std::shared_ptr<Promise<std::optional<std::string>>>>;
|
|
1226
|
+
inline Result_std__shared_ptr_Promise_std__optional_std__string____ create_Result_std__shared_ptr_Promise_std__optional_std__string____(const std::shared_ptr<Promise<std::optional<std::string>>>& value) noexcept {
|
|
1227
|
+
return Result<std::shared_ptr<Promise<std::optional<std::string>>>>::withValue(value);
|
|
1228
|
+
}
|
|
1229
|
+
inline Result_std__shared_ptr_Promise_std__optional_std__string____ create_Result_std__shared_ptr_Promise_std__optional_std__string____(const std::exception_ptr& error) noexcept {
|
|
1230
|
+
return Result<std::shared_ptr<Promise<std::optional<std::string>>>>::withError(error);
|
|
1231
|
+
}
|
|
1084
1232
|
|
|
1085
1233
|
} // namespace margelo::nitro::rngooglemapsplus::bridge::swift
|
|
@@ -34,10 +34,16 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
|
|
|
34
34
|
namespace margelo::nitro::rngooglemapsplus { struct RNIOSLocationConfig; }
|
|
35
35
|
// Forward declaration of `RNIOSPermissionResult` to properly resolve imports.
|
|
36
36
|
namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
37
|
+
// Forward declaration of `RNIndoorBuilding` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNIndoorBuilding; }
|
|
39
|
+
// Forward declaration of `RNIndoorLevel` to properly resolve imports.
|
|
40
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNIndoorLevel; }
|
|
37
41
|
// Forward declaration of `RNInitialProps` to properly resolve imports.
|
|
38
42
|
namespace margelo::nitro::rngooglemapsplus { struct RNInitialProps; }
|
|
39
43
|
// Forward declaration of `RNKMLayer` to properly resolve imports.
|
|
40
44
|
namespace margelo::nitro::rngooglemapsplus { struct RNKMLayer; }
|
|
45
|
+
// Forward declaration of `RNLatLngBounds` to properly resolve imports.
|
|
46
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNLatLngBounds; }
|
|
41
47
|
// Forward declaration of `RNLatLng` to properly resolve imports.
|
|
42
48
|
namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
|
|
43
49
|
// Forward declaration of `RNLineCapType` to properly resolve imports.
|
|
@@ -74,6 +80,14 @@ namespace margelo::nitro::rngooglemapsplus { struct RNPolyline; }
|
|
|
74
80
|
namespace margelo::nitro::rngooglemapsplus { struct RNPosition; }
|
|
75
81
|
// Forward declaration of `RNRegion` to properly resolve imports.
|
|
76
82
|
namespace margelo::nitro::rngooglemapsplus { struct RNRegion; }
|
|
83
|
+
// Forward declaration of `RNSize` to properly resolve imports.
|
|
84
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNSize; }
|
|
85
|
+
// Forward declaration of `RNSnapshotFormat` to properly resolve imports.
|
|
86
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotFormat; }
|
|
87
|
+
// Forward declaration of `RNSnapshotOptions` to properly resolve imports.
|
|
88
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNSnapshotOptions; }
|
|
89
|
+
// Forward declaration of `RNSnapshotResultType` to properly resolve imports.
|
|
90
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotResultType; }
|
|
77
91
|
// Forward declaration of `RNUserInterfaceStyle` to properly resolve imports.
|
|
78
92
|
namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
79
93
|
|
|
@@ -91,9 +105,12 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
|
91
105
|
#include "RNIOSLocationAccuracy.hpp"
|
|
92
106
|
#include "RNIOSLocationConfig.hpp"
|
|
93
107
|
#include "RNIOSPermissionResult.hpp"
|
|
108
|
+
#include "RNIndoorBuilding.hpp"
|
|
109
|
+
#include "RNIndoorLevel.hpp"
|
|
94
110
|
#include "RNInitialProps.hpp"
|
|
95
111
|
#include "RNKMLayer.hpp"
|
|
96
112
|
#include "RNLatLng.hpp"
|
|
113
|
+
#include "RNLatLngBounds.hpp"
|
|
97
114
|
#include "RNLineCapType.hpp"
|
|
98
115
|
#include "RNLineJoinType.hpp"
|
|
99
116
|
#include "RNLocation.hpp"
|
|
@@ -111,6 +128,10 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
|
111
128
|
#include "RNPolyline.hpp"
|
|
112
129
|
#include "RNPosition.hpp"
|
|
113
130
|
#include "RNRegion.hpp"
|
|
131
|
+
#include "RNSize.hpp"
|
|
132
|
+
#include "RNSnapshotFormat.hpp"
|
|
133
|
+
#include "RNSnapshotOptions.hpp"
|
|
134
|
+
#include "RNSnapshotResultType.hpp"
|
|
114
135
|
#include "RNUserInterfaceStyle.hpp"
|
|
115
136
|
#include <NitroModules/Promise.hpp>
|
|
116
137
|
#include <NitroModules/Result.hpp>
|
|
@@ -68,8 +68,22 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
|
|
|
68
68
|
namespace margelo::nitro::rngooglemapsplus { struct RNLocation; }
|
|
69
69
|
// Forward declaration of `RNLocationErrorCode` to properly resolve imports.
|
|
70
70
|
namespace margelo::nitro::rngooglemapsplus { enum class RNLocationErrorCode; }
|
|
71
|
+
// Forward declaration of `RNIndoorBuilding` to properly resolve imports.
|
|
72
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNIndoorBuilding; }
|
|
73
|
+
// Forward declaration of `RNIndoorLevel` to properly resolve imports.
|
|
74
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNIndoorLevel; }
|
|
71
75
|
// Forward declaration of `RNRegion` to properly resolve imports.
|
|
72
76
|
namespace margelo::nitro::rngooglemapsplus { struct RNRegion; }
|
|
77
|
+
// Forward declaration of `RNLatLngBounds` to properly resolve imports.
|
|
78
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNLatLngBounds; }
|
|
79
|
+
// Forward declaration of `RNSnapshotOptions` to properly resolve imports.
|
|
80
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNSnapshotOptions; }
|
|
81
|
+
// Forward declaration of `RNSize` to properly resolve imports.
|
|
82
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNSize; }
|
|
83
|
+
// Forward declaration of `RNSnapshotFormat` to properly resolve imports.
|
|
84
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotFormat; }
|
|
85
|
+
// Forward declaration of `RNSnapshotResultType` to properly resolve imports.
|
|
86
|
+
namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotResultType; }
|
|
73
87
|
// Forward declaration of `RNLocationPermissionResult` to properly resolve imports.
|
|
74
88
|
namespace margelo::nitro::rngooglemapsplus { struct RNLocationPermissionResult; }
|
|
75
89
|
// Forward declaration of `RNAndroidLocationPermissionResult` to properly resolve imports.
|
|
@@ -109,9 +123,16 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
|
109
123
|
#include <functional>
|
|
110
124
|
#include "RNLocation.hpp"
|
|
111
125
|
#include "RNLocationErrorCode.hpp"
|
|
126
|
+
#include "RNIndoorBuilding.hpp"
|
|
127
|
+
#include "RNIndoorLevel.hpp"
|
|
112
128
|
#include "RNRegion.hpp"
|
|
113
|
-
#include "
|
|
129
|
+
#include "RNLatLngBounds.hpp"
|
|
114
130
|
#include <NitroModules/Promise.hpp>
|
|
131
|
+
#include "RNSnapshotOptions.hpp"
|
|
132
|
+
#include "RNSize.hpp"
|
|
133
|
+
#include "RNSnapshotFormat.hpp"
|
|
134
|
+
#include "RNSnapshotResultType.hpp"
|
|
135
|
+
#include "RNLocationPermissionResult.hpp"
|
|
115
136
|
#include "RNAndroidLocationPermissionResult.hpp"
|
|
116
137
|
#include "RNIOSPermissionResult.hpp"
|
|
117
138
|
|
|
@@ -362,6 +383,20 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
362
383
|
inline void setOnMarkerDragEnd(const std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>& onMarkerDragEnd) noexcept override {
|
|
363
384
|
_swiftPart.setOnMarkerDragEnd(onMarkerDragEnd);
|
|
364
385
|
}
|
|
386
|
+
inline std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>> getOnIndoorBuildingFocused() noexcept override {
|
|
387
|
+
auto __result = _swiftPart.getOnIndoorBuildingFocused();
|
|
388
|
+
return __result;
|
|
389
|
+
}
|
|
390
|
+
inline void setOnIndoorBuildingFocused(const std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>>& onIndoorBuildingFocused) noexcept override {
|
|
391
|
+
_swiftPart.setOnIndoorBuildingFocused(onIndoorBuildingFocused);
|
|
392
|
+
}
|
|
393
|
+
inline std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>> getOnIndoorLevelActivated() noexcept override {
|
|
394
|
+
auto __result = _swiftPart.getOnIndoorLevelActivated();
|
|
395
|
+
return __result;
|
|
396
|
+
}
|
|
397
|
+
inline void setOnIndoorLevelActivated(const std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>>& onIndoorLevelActivated) noexcept override {
|
|
398
|
+
_swiftPart.setOnIndoorLevelActivated(onIndoorLevelActivated);
|
|
399
|
+
}
|
|
365
400
|
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> getOnCameraChangeStart() noexcept override {
|
|
366
401
|
auto __result = _swiftPart.getOnCameraChangeStart();
|
|
367
402
|
return __result;
|
|
@@ -386,18 +421,38 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
386
421
|
|
|
387
422
|
public:
|
|
388
423
|
// Methods
|
|
389
|
-
inline void setCamera(const RNCamera& camera, std::optional<bool> animated, std::optional<double>
|
|
390
|
-
auto __result = _swiftPart.setCamera(camera, animated,
|
|
424
|
+
inline void setCamera(const RNCamera& camera, std::optional<bool> animated, std::optional<double> durationMs) override {
|
|
425
|
+
auto __result = _swiftPart.setCamera(camera, animated, durationMs);
|
|
426
|
+
if (__result.hasError()) [[unlikely]] {
|
|
427
|
+
std::rethrow_exception(__result.error());
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
inline void setCameraToCoordinates(const std::vector<RNLatLng>& coordinates, const std::optional<RNMapPadding>& padding, std::optional<bool> animated, std::optional<double> durationMs) override {
|
|
431
|
+
auto __result = _swiftPart.setCameraToCoordinates(coordinates, padding, animated, durationMs);
|
|
432
|
+
if (__result.hasError()) [[unlikely]] {
|
|
433
|
+
std::rethrow_exception(__result.error());
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
inline void setCameraBounds(const std::optional<RNLatLngBounds>& bounds) override {
|
|
437
|
+
auto __result = _swiftPart.setCameraBounds(bounds);
|
|
391
438
|
if (__result.hasError()) [[unlikely]] {
|
|
392
439
|
std::rethrow_exception(__result.error());
|
|
393
440
|
}
|
|
394
441
|
}
|
|
395
|
-
inline void
|
|
396
|
-
auto __result = _swiftPart.
|
|
442
|
+
inline void animateToBounds(const RNLatLngBounds& bounds, std::optional<double> padding, std::optional<double> durationMs, std::optional<bool> lockBounds) override {
|
|
443
|
+
auto __result = _swiftPart.animateToBounds(bounds, padding, durationMs, lockBounds);
|
|
397
444
|
if (__result.hasError()) [[unlikely]] {
|
|
398
445
|
std::rethrow_exception(__result.error());
|
|
399
446
|
}
|
|
400
447
|
}
|
|
448
|
+
inline std::shared_ptr<Promise<std::optional<std::string>>> snapshot(const RNSnapshotOptions& options) override {
|
|
449
|
+
auto __result = _swiftPart.snapshot(options);
|
|
450
|
+
if (__result.hasError()) [[unlikely]] {
|
|
451
|
+
std::rethrow_exception(__result.error());
|
|
452
|
+
}
|
|
453
|
+
auto __value = std::move(__result.value());
|
|
454
|
+
return __value;
|
|
455
|
+
}
|
|
401
456
|
inline void showLocationDialog() override {
|
|
402
457
|
auto __result = _swiftPart.showLocationDialog();
|
|
403
458
|
if (__result.hasError()) [[unlikely]] {
|
|
@@ -221,6 +221,16 @@ using namespace margelo::nitro::rngooglemapsplus::views;
|
|
|
221
221
|
swiftPart.setOnMarkerDragEnd(newViewProps.onMarkerDragEnd.value);
|
|
222
222
|
newViewProps.onMarkerDragEnd.isDirty = false;
|
|
223
223
|
}
|
|
224
|
+
// onIndoorBuildingFocused: optional
|
|
225
|
+
if (newViewProps.onIndoorBuildingFocused.isDirty) {
|
|
226
|
+
swiftPart.setOnIndoorBuildingFocused(newViewProps.onIndoorBuildingFocused.value);
|
|
227
|
+
newViewProps.onIndoorBuildingFocused.isDirty = false;
|
|
228
|
+
}
|
|
229
|
+
// onIndoorLevelActivated: optional
|
|
230
|
+
if (newViewProps.onIndoorLevelActivated.isDirty) {
|
|
231
|
+
swiftPart.setOnIndoorLevelActivated(newViewProps.onIndoorLevelActivated.value);
|
|
232
|
+
newViewProps.onIndoorLevelActivated.isDirty = false;
|
|
233
|
+
}
|
|
224
234
|
// onCameraChangeStart: optional
|
|
225
235
|
if (newViewProps.onCameraChangeStart.isDirty) {
|
|
226
236
|
swiftPart.setOnCameraChangeStart(newViewProps.onCameraChangeStart.value);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Func_void_RNIndoorBuilding.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Wraps a Swift `(_ indoorBuilding: RNIndoorBuilding) -> Void` as a class.
|
|
13
|
+
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
|
+
*/
|
|
15
|
+
public final class Func_void_RNIndoorBuilding {
|
|
16
|
+
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
|
+
|
|
18
|
+
private let closure: (_ indoorBuilding: RNIndoorBuilding) -> Void
|
|
19
|
+
|
|
20
|
+
public init(_ closure: @escaping (_ indoorBuilding: RNIndoorBuilding) -> Void) {
|
|
21
|
+
self.closure = closure
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@inline(__always)
|
|
25
|
+
public func call(indoorBuilding: RNIndoorBuilding) -> Void {
|
|
26
|
+
self.closure(indoorBuilding)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Casts this instance to a retained unsafe raw pointer.
|
|
31
|
+
* This acquires one additional strong reference on the object!
|
|
32
|
+
*/
|
|
33
|
+
@inline(__always)
|
|
34
|
+
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
35
|
+
return Unmanaged.passRetained(self).toOpaque()
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Casts an unsafe pointer to a `Func_void_RNIndoorBuilding`.
|
|
40
|
+
* The pointer has to be a retained opaque `Unmanaged<Func_void_RNIndoorBuilding>`.
|
|
41
|
+
* This removes one strong reference from the object!
|
|
42
|
+
*/
|
|
43
|
+
@inline(__always)
|
|
44
|
+
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_RNIndoorBuilding {
|
|
45
|
+
return Unmanaged<Func_void_RNIndoorBuilding>.fromOpaque(pointer).takeRetainedValue()
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Func_void_RNIndoorLevel.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Wraps a Swift `(_ indoorLevel: RNIndoorLevel) -> Void` as a class.
|
|
13
|
+
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
|
+
*/
|
|
15
|
+
public final class Func_void_RNIndoorLevel {
|
|
16
|
+
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
|
+
|
|
18
|
+
private let closure: (_ indoorLevel: RNIndoorLevel) -> Void
|
|
19
|
+
|
|
20
|
+
public init(_ closure: @escaping (_ indoorLevel: RNIndoorLevel) -> Void) {
|
|
21
|
+
self.closure = closure
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@inline(__always)
|
|
25
|
+
public func call(indoorLevel: RNIndoorLevel) -> Void {
|
|
26
|
+
self.closure(indoorLevel)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Casts this instance to a retained unsafe raw pointer.
|
|
31
|
+
* This acquires one additional strong reference on the object!
|
|
32
|
+
*/
|
|
33
|
+
@inline(__always)
|
|
34
|
+
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
35
|
+
return Unmanaged.passRetained(self).toOpaque()
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Casts an unsafe pointer to a `Func_void_RNIndoorLevel`.
|
|
40
|
+
* The pointer has to be a retained opaque `Unmanaged<Func_void_RNIndoorLevel>`.
|
|
41
|
+
* This removes one strong reference from the object!
|
|
42
|
+
*/
|
|
43
|
+
@inline(__always)
|
|
44
|
+
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_RNIndoorLevel {
|
|
45
|
+
return Unmanaged<Func_void_RNIndoorLevel>.fromOpaque(pointer).takeRetainedValue()
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -41,13 +41,18 @@ public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridVie
|
|
|
41
41
|
var onMarkerDragStart: ((_ id: String?, _ location: RNLatLng) -> Void)? { get set }
|
|
42
42
|
var onMarkerDrag: ((_ id: String?, _ location: RNLatLng) -> Void)? { get set }
|
|
43
43
|
var onMarkerDragEnd: ((_ id: String?, _ location: RNLatLng) -> Void)? { get set }
|
|
44
|
+
var onIndoorBuildingFocused: ((_ indoorBuilding: RNIndoorBuilding) -> Void)? { get set }
|
|
45
|
+
var onIndoorLevelActivated: ((_ indoorLevel: RNIndoorLevel) -> Void)? { get set }
|
|
44
46
|
var onCameraChangeStart: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
|
|
45
47
|
var onCameraChange: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
|
|
46
48
|
var onCameraChangeComplete: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
|
|
47
49
|
|
|
48
50
|
// Methods
|
|
49
|
-
func setCamera(camera: RNCamera, animated: Bool?,
|
|
50
|
-
func setCameraToCoordinates(coordinates: [RNLatLng], padding: RNMapPadding?, animated: Bool?,
|
|
51
|
+
func setCamera(camera: RNCamera, animated: Bool?, durationMs: Double?) throws -> Void
|
|
52
|
+
func setCameraToCoordinates(coordinates: [RNLatLng], padding: RNMapPadding?, animated: Bool?, durationMs: Double?) throws -> Void
|
|
53
|
+
func setCameraBounds(bounds: RNLatLngBounds?) throws -> Void
|
|
54
|
+
func animateToBounds(bounds: RNLatLngBounds, padding: Double?, durationMs: Double?, lockBounds: Bool?) throws -> Void
|
|
55
|
+
func snapshot(options: RNSnapshotOptions) throws -> Promise<String?>
|
|
51
56
|
func showLocationDialog() throws -> Void
|
|
52
57
|
func openLocationSettings() throws -> Void
|
|
53
58
|
func requestLocationPermission() throws -> Promise<RNLocationPermissionResult>
|
|
@@ -958,6 +958,70 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
|
|
961
|
+
public final var onIndoorBuildingFocused: bridge.std__optional_std__function_void_const_RNIndoorBuilding_____indoorBuilding______ {
|
|
962
|
+
@inline(__always)
|
|
963
|
+
get {
|
|
964
|
+
return { () -> bridge.std__optional_std__function_void_const_RNIndoorBuilding_____indoorBuilding______ in
|
|
965
|
+
if let __unwrappedValue = self.__implementation.onIndoorBuildingFocused {
|
|
966
|
+
return bridge.create_std__optional_std__function_void_const_RNIndoorBuilding_____indoorBuilding______({ () -> bridge.Func_void_RNIndoorBuilding in
|
|
967
|
+
let __closureWrapper = Func_void_RNIndoorBuilding(__unwrappedValue)
|
|
968
|
+
return bridge.create_Func_void_RNIndoorBuilding(__closureWrapper.toUnsafe())
|
|
969
|
+
}())
|
|
970
|
+
} else {
|
|
971
|
+
return .init()
|
|
972
|
+
}
|
|
973
|
+
}()
|
|
974
|
+
}
|
|
975
|
+
@inline(__always)
|
|
976
|
+
set {
|
|
977
|
+
self.__implementation.onIndoorBuildingFocused = { () -> ((_ indoorBuilding: RNIndoorBuilding) -> Void)? in
|
|
978
|
+
if bridge.has_value_std__optional_std__function_void_const_RNIndoorBuilding_____indoorBuilding______(newValue) {
|
|
979
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_RNIndoorBuilding_____indoorBuilding______(newValue)
|
|
980
|
+
return { () -> (RNIndoorBuilding) -> Void in
|
|
981
|
+
let __wrappedFunction = bridge.wrap_Func_void_RNIndoorBuilding(__unwrapped)
|
|
982
|
+
return { (__indoorBuilding: RNIndoorBuilding) -> Void in
|
|
983
|
+
__wrappedFunction.call(__indoorBuilding)
|
|
984
|
+
}
|
|
985
|
+
}()
|
|
986
|
+
} else {
|
|
987
|
+
return nil
|
|
988
|
+
}
|
|
989
|
+
}()
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
public final var onIndoorLevelActivated: bridge.std__optional_std__function_void_const_RNIndoorLevel_____indoorLevel______ {
|
|
994
|
+
@inline(__always)
|
|
995
|
+
get {
|
|
996
|
+
return { () -> bridge.std__optional_std__function_void_const_RNIndoorLevel_____indoorLevel______ in
|
|
997
|
+
if let __unwrappedValue = self.__implementation.onIndoorLevelActivated {
|
|
998
|
+
return bridge.create_std__optional_std__function_void_const_RNIndoorLevel_____indoorLevel______({ () -> bridge.Func_void_RNIndoorLevel in
|
|
999
|
+
let __closureWrapper = Func_void_RNIndoorLevel(__unwrappedValue)
|
|
1000
|
+
return bridge.create_Func_void_RNIndoorLevel(__closureWrapper.toUnsafe())
|
|
1001
|
+
}())
|
|
1002
|
+
} else {
|
|
1003
|
+
return .init()
|
|
1004
|
+
}
|
|
1005
|
+
}()
|
|
1006
|
+
}
|
|
1007
|
+
@inline(__always)
|
|
1008
|
+
set {
|
|
1009
|
+
self.__implementation.onIndoorLevelActivated = { () -> ((_ indoorLevel: RNIndoorLevel) -> Void)? in
|
|
1010
|
+
if bridge.has_value_std__optional_std__function_void_const_RNIndoorLevel_____indoorLevel______(newValue) {
|
|
1011
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_RNIndoorLevel_____indoorLevel______(newValue)
|
|
1012
|
+
return { () -> (RNIndoorLevel) -> Void in
|
|
1013
|
+
let __wrappedFunction = bridge.wrap_Func_void_RNIndoorLevel(__unwrapped)
|
|
1014
|
+
return { (__indoorLevel: RNIndoorLevel) -> Void in
|
|
1015
|
+
__wrappedFunction.call(__indoorLevel)
|
|
1016
|
+
}
|
|
1017
|
+
}()
|
|
1018
|
+
} else {
|
|
1019
|
+
return nil
|
|
1020
|
+
}
|
|
1021
|
+
}()
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
|
|
961
1025
|
public final var onCameraChangeStart: bridge.std__optional_std__function_void_const_RNRegion_____region_____const_RNCamera_____camera_____bool____isGesture______ {
|
|
962
1026
|
@inline(__always)
|
|
963
1027
|
get {
|
|
@@ -1056,9 +1120,9 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1056
1120
|
|
|
1057
1121
|
// Methods
|
|
1058
1122
|
@inline(__always)
|
|
1059
|
-
public final func setCamera(camera: RNCamera, animated: bridge.std__optional_bool_,
|
|
1123
|
+
public final func setCamera(camera: RNCamera, animated: bridge.std__optional_bool_, durationMs: bridge.std__optional_double_) -> bridge.Result_void_ {
|
|
1060
1124
|
do {
|
|
1061
|
-
try self.__implementation.setCamera(camera: camera, animated: animated.value,
|
|
1125
|
+
try self.__implementation.setCamera(camera: camera, animated: animated.value, durationMs: durationMs.value)
|
|
1062
1126
|
return bridge.create_Result_void_()
|
|
1063
1127
|
} catch (let __error) {
|
|
1064
1128
|
let __exceptionPtr = __error.toCpp()
|
|
@@ -1067,7 +1131,7 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1067
1131
|
}
|
|
1068
1132
|
|
|
1069
1133
|
@inline(__always)
|
|
1070
|
-
public final func setCameraToCoordinates(coordinates: bridge.std__vector_RNLatLng_, padding: bridge.std__optional_RNMapPadding_, animated: bridge.std__optional_bool_,
|
|
1134
|
+
public final func setCameraToCoordinates(coordinates: bridge.std__vector_RNLatLng_, padding: bridge.std__optional_RNMapPadding_, animated: bridge.std__optional_bool_, durationMs: bridge.std__optional_double_) -> bridge.Result_void_ {
|
|
1071
1135
|
do {
|
|
1072
1136
|
try self.__implementation.setCameraToCoordinates(coordinates: coordinates.map({ __item in __item }), padding: { () -> RNMapPadding? in
|
|
1073
1137
|
if bridge.has_value_std__optional_RNMapPadding_(padding) {
|
|
@@ -1076,7 +1140,25 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1076
1140
|
} else {
|
|
1077
1141
|
return nil
|
|
1078
1142
|
}
|
|
1079
|
-
}(), animated: animated.value,
|
|
1143
|
+
}(), animated: animated.value, durationMs: durationMs.value)
|
|
1144
|
+
return bridge.create_Result_void_()
|
|
1145
|
+
} catch (let __error) {
|
|
1146
|
+
let __exceptionPtr = __error.toCpp()
|
|
1147
|
+
return bridge.create_Result_void_(__exceptionPtr)
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
@inline(__always)
|
|
1152
|
+
public final func setCameraBounds(bounds: bridge.std__optional_RNLatLngBounds_) -> bridge.Result_void_ {
|
|
1153
|
+
do {
|
|
1154
|
+
try self.__implementation.setCameraBounds(bounds: { () -> RNLatLngBounds? in
|
|
1155
|
+
if bridge.has_value_std__optional_RNLatLngBounds_(bounds) {
|
|
1156
|
+
let __unwrapped = bridge.get_std__optional_RNLatLngBounds_(bounds)
|
|
1157
|
+
return __unwrapped
|
|
1158
|
+
} else {
|
|
1159
|
+
return nil
|
|
1160
|
+
}
|
|
1161
|
+
}())
|
|
1080
1162
|
return bridge.create_Result_void_()
|
|
1081
1163
|
} catch (let __error) {
|
|
1082
1164
|
let __exceptionPtr = __error.toCpp()
|
|
@@ -1084,6 +1166,42 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1084
1166
|
}
|
|
1085
1167
|
}
|
|
1086
1168
|
|
|
1169
|
+
@inline(__always)
|
|
1170
|
+
public final func animateToBounds(bounds: RNLatLngBounds, padding: bridge.std__optional_double_, durationMs: bridge.std__optional_double_, lockBounds: bridge.std__optional_bool_) -> bridge.Result_void_ {
|
|
1171
|
+
do {
|
|
1172
|
+
try self.__implementation.animateToBounds(bounds: bounds, padding: padding.value, durationMs: durationMs.value, lockBounds: lockBounds.value)
|
|
1173
|
+
return bridge.create_Result_void_()
|
|
1174
|
+
} catch (let __error) {
|
|
1175
|
+
let __exceptionPtr = __error.toCpp()
|
|
1176
|
+
return bridge.create_Result_void_(__exceptionPtr)
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
@inline(__always)
|
|
1181
|
+
public final func snapshot(options: RNSnapshotOptions) -> bridge.Result_std__shared_ptr_Promise_std__optional_std__string____ {
|
|
1182
|
+
do {
|
|
1183
|
+
let __result = try self.__implementation.snapshot(options: options)
|
|
1184
|
+
let __resultCpp = { () -> bridge.std__shared_ptr_Promise_std__optional_std__string___ in
|
|
1185
|
+
let __promise = bridge.create_std__shared_ptr_Promise_std__optional_std__string___()
|
|
1186
|
+
let __promiseHolder = bridge.wrap_std__shared_ptr_Promise_std__optional_std__string___(__promise)
|
|
1187
|
+
__result
|
|
1188
|
+
.then({ __result in __promiseHolder.resolve({ () -> bridge.std__optional_std__string_ in
|
|
1189
|
+
if let __unwrappedValue = __result {
|
|
1190
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
1191
|
+
} else {
|
|
1192
|
+
return .init()
|
|
1193
|
+
}
|
|
1194
|
+
}()) })
|
|
1195
|
+
.catch({ __error in __promiseHolder.reject(__error.toCpp()) })
|
|
1196
|
+
return __promise
|
|
1197
|
+
}()
|
|
1198
|
+
return bridge.create_Result_std__shared_ptr_Promise_std__optional_std__string____(__resultCpp)
|
|
1199
|
+
} catch (let __error) {
|
|
1200
|
+
let __exceptionPtr = __error.toCpp()
|
|
1201
|
+
return bridge.create_Result_std__shared_ptr_Promise_std__optional_std__string____(__exceptionPtr)
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1087
1205
|
@inline(__always)
|
|
1088
1206
|
public final func showLocationDialog() -> bridge.Result_void_ {
|
|
1089
1207
|
do {
|