react-native-google-maps-plus 1.10.2-dev.1 → 1.10.2-dev.2
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/README.md +12 -114
- package/ios/GoogleMapViewImpl.swift +3 -0
- package/lib/module/GoogleMapsPlus.js +10 -1
- package/lib/module/GoogleMapsPlus.js.map +1 -1
- package/lib/module/index.js +90 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js +145 -39
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/GoogleMapsPlus.d.ts +8 -0
- package/lib/typescript/src/GoogleMapsPlus.d.ts.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusModule.nitro.d.ts +17 -1
- package/lib/typescript/src/RNGoogleMapsPlusModule.nitro.d.ts.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +87 -3
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +89 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +340 -17
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JFunc_void_RNIndoorBuilding.hpp +12 -11
- package/nitrogen/generated/android/c++/JFunc_void_RNIndoorLevel.hpp +12 -11
- package/nitrogen/generated/android/c++/JFunc_void_RNLatLng.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_RNLocation.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_RNLocationErrorCode.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_RNMapErrorCode.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCamera.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCamera_bool.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_bool.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_std__string_RNLatLng.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_std__string_std__string_RNLatLng.hpp +2 -1
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +32 -81
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +4 -4
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorBuilding.kt +9 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorLevel.kt +9 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +2 -2
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +7 -6
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +28 -28
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +4 -4
- package/nitrogen/generated/ios/swift/Func_void_RNIndoorBuilding.swift +6 -6
- package/nitrogen/generated/ios/swift/Func_void_RNIndoorLevel.swift +6 -6
- package/nitrogen/generated/ios/swift/Func_void_RNLatLng.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_RNLocation.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_RNLocationErrorCode.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_RNLocationPermissionResult.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_RNMapErrorCode.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_RNRegion_RNCamera.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_RNRegion_RNCamera_bool.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__string_RNLatLng.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__string_std__string_RNLatLng.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusModuleSpec.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusModuleSpec_cxx.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +2 -3
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +16 -17
- package/nitrogen/generated/ios/swift/RNAndroidLocationConfig.swift +1 -0
- package/nitrogen/generated/ios/swift/RNCamera.swift +1 -0
- package/nitrogen/generated/ios/swift/RNCameraUpdate.swift +1 -0
- package/nitrogen/generated/ios/swift/RNCircle.swift +1 -0
- package/nitrogen/generated/ios/swift/RNHeatmap.swift +1 -0
- package/nitrogen/generated/ios/swift/RNHeatmapGradient.swift +1 -0
- package/nitrogen/generated/ios/swift/RNHeatmapPoint.swift +1 -0
- package/nitrogen/generated/ios/swift/RNIOSLocationConfig.swift +1 -0
- package/nitrogen/generated/ios/swift/RNIndoorBuilding.swift +1 -0
- package/nitrogen/generated/ios/swift/RNIndoorLevel.swift +1 -0
- package/nitrogen/generated/ios/swift/RNInitialProps.swift +1 -0
- package/nitrogen/generated/ios/swift/RNKMLayer.swift +1 -0
- package/nitrogen/generated/ios/swift/RNLatLng.swift +1 -0
- package/nitrogen/generated/ios/swift/RNLatLngBounds.swift +1 -0
- package/nitrogen/generated/ios/swift/RNLocation.swift +1 -0
- package/nitrogen/generated/ios/swift/RNLocationAndroid.swift +1 -0
- package/nitrogen/generated/ios/swift/RNLocationConfig.swift +1 -0
- package/nitrogen/generated/ios/swift/RNLocationIOS.swift +1 -0
- package/nitrogen/generated/ios/swift/RNLocationPermissionResult.swift +1 -0
- package/nitrogen/generated/ios/swift/RNMapPadding.swift +1 -0
- package/nitrogen/generated/ios/swift/RNMapUiSettings.swift +1 -0
- package/nitrogen/generated/ios/swift/RNMapZoomConfig.swift +1 -0
- package/nitrogen/generated/ios/swift/RNMarker.swift +1 -0
- package/nitrogen/generated/ios/swift/RNMarkerSvg.swift +1 -0
- package/nitrogen/generated/ios/swift/RNPolygon.swift +1 -0
- package/nitrogen/generated/ios/swift/RNPolygonHole.swift +1 -0
- package/nitrogen/generated/ios/swift/RNPolyline.swift +1 -0
- package/nitrogen/generated/ios/swift/RNPosition.swift +1 -0
- package/nitrogen/generated/ios/swift/RNRegion.swift +1 -0
- package/nitrogen/generated/ios/swift/RNSize.swift +1 -0
- package/nitrogen/generated/ios/swift/RNSnapshotOptions.swift +1 -0
- package/nitrogen/generated/ios/swift/RNUrlTileOverlay.swift +1 -0
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +4 -4
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +4 -4
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +2 -2
- package/package.json +11 -7
- package/src/GoogleMapsPlus.tsx +9 -1
- package/src/RNGoogleMapsPlusModule.nitro.ts +21 -4
- package/src/RNGoogleMapsPlusView.nitro.ts +143 -18
- package/src/index.tsx +90 -1
- package/src/types.ts +475 -67
|
@@ -14,7 +14,7 @@ import dalvik.annotation.optimization.FastNative
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Represents the JavaScript callback `(
|
|
17
|
+
* Represents the JavaScript callback `(building: struct) => void`.
|
|
18
18
|
* This can be either implemented in C++ (in which case it might be a callback coming from JS),
|
|
19
19
|
* or in Kotlin/Java (in which case it is a native callback).
|
|
20
20
|
*/
|
|
@@ -28,11 +28,11 @@ fun interface Func_void_RNIndoorBuilding: (RNIndoorBuilding) -> Unit {
|
|
|
28
28
|
*/
|
|
29
29
|
@DoNotStrip
|
|
30
30
|
@Keep
|
|
31
|
-
override fun invoke(
|
|
31
|
+
override fun invoke(building: RNIndoorBuilding): Unit
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* Represents the JavaScript callback `(
|
|
35
|
+
* Represents the JavaScript callback `(building: struct) => void`.
|
|
36
36
|
* This is implemented in C++, via a `std::function<...>`.
|
|
37
37
|
* The callback might be coming from JS.
|
|
38
38
|
*/
|
|
@@ -56,15 +56,15 @@ class Func_void_RNIndoorBuilding_cxx: Func_void_RNIndoorBuilding {
|
|
|
56
56
|
|
|
57
57
|
@DoNotStrip
|
|
58
58
|
@Keep
|
|
59
|
-
override fun invoke(
|
|
60
|
-
= invoke_cxx(
|
|
59
|
+
override fun invoke(building: RNIndoorBuilding): Unit
|
|
60
|
+
= invoke_cxx(building)
|
|
61
61
|
|
|
62
62
|
@FastNative
|
|
63
|
-
private external fun invoke_cxx(
|
|
63
|
+
private external fun invoke_cxx(building: RNIndoorBuilding): Unit
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
* Represents the JavaScript callback `(
|
|
67
|
+
* Represents the JavaScript callback `(building: struct) => void`.
|
|
68
68
|
* This is implemented in Java/Kotlin, via a `(RNIndoorBuilding) -> Unit`.
|
|
69
69
|
* The callback is always coming from native.
|
|
70
70
|
*/
|
|
@@ -74,7 +74,7 @@ class Func_void_RNIndoorBuilding_cxx: Func_void_RNIndoorBuilding {
|
|
|
74
74
|
class Func_void_RNIndoorBuilding_java(private val function: (RNIndoorBuilding) -> Unit): Func_void_RNIndoorBuilding {
|
|
75
75
|
@DoNotStrip
|
|
76
76
|
@Keep
|
|
77
|
-
override fun invoke(
|
|
78
|
-
return this.function(
|
|
77
|
+
override fun invoke(building: RNIndoorBuilding): Unit {
|
|
78
|
+
return this.function(building)
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -14,7 +14,7 @@ import dalvik.annotation.optimization.FastNative
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Represents the JavaScript callback `(
|
|
17
|
+
* Represents the JavaScript callback `(level: struct) => void`.
|
|
18
18
|
* This can be either implemented in C++ (in which case it might be a callback coming from JS),
|
|
19
19
|
* or in Kotlin/Java (in which case it is a native callback).
|
|
20
20
|
*/
|
|
@@ -28,11 +28,11 @@ fun interface Func_void_RNIndoorLevel: (RNIndoorLevel) -> Unit {
|
|
|
28
28
|
*/
|
|
29
29
|
@DoNotStrip
|
|
30
30
|
@Keep
|
|
31
|
-
override fun invoke(
|
|
31
|
+
override fun invoke(level: RNIndoorLevel): Unit
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* Represents the JavaScript callback `(
|
|
35
|
+
* Represents the JavaScript callback `(level: struct) => void`.
|
|
36
36
|
* This is implemented in C++, via a `std::function<...>`.
|
|
37
37
|
* The callback might be coming from JS.
|
|
38
38
|
*/
|
|
@@ -56,15 +56,15 @@ class Func_void_RNIndoorLevel_cxx: Func_void_RNIndoorLevel {
|
|
|
56
56
|
|
|
57
57
|
@DoNotStrip
|
|
58
58
|
@Keep
|
|
59
|
-
override fun invoke(
|
|
60
|
-
= invoke_cxx(
|
|
59
|
+
override fun invoke(level: RNIndoorLevel): Unit
|
|
60
|
+
= invoke_cxx(level)
|
|
61
61
|
|
|
62
62
|
@FastNative
|
|
63
|
-
private external fun invoke_cxx(
|
|
63
|
+
private external fun invoke_cxx(level: RNIndoorLevel): Unit
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
* Represents the JavaScript callback `(
|
|
67
|
+
* Represents the JavaScript callback `(level: struct) => void`.
|
|
68
68
|
* This is implemented in Java/Kotlin, via a `(RNIndoorLevel) -> Unit`.
|
|
69
69
|
* The callback is always coming from native.
|
|
70
70
|
*/
|
|
@@ -74,7 +74,7 @@ class Func_void_RNIndoorLevel_cxx: Func_void_RNIndoorLevel {
|
|
|
74
74
|
class Func_void_RNIndoorLevel_java(private val function: (RNIndoorLevel) -> Unit): Func_void_RNIndoorLevel {
|
|
75
75
|
@DoNotStrip
|
|
76
76
|
@Keep
|
|
77
|
-
override fun invoke(
|
|
78
|
-
return this.function(
|
|
77
|
+
override fun invoke(level: RNIndoorLevel): Unit {
|
|
78
|
+
return this.function(level)
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -367,7 +367,7 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
367
367
|
onMarkerDragEnd = value?.let { it }
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
abstract var onIndoorBuildingFocused: ((
|
|
370
|
+
abstract var onIndoorBuildingFocused: ((building: RNIndoorBuilding) -> Unit)?
|
|
371
371
|
|
|
372
372
|
private var onIndoorBuildingFocused_cxx: Func_void_RNIndoorBuilding?
|
|
373
373
|
@Keep
|
|
@@ -381,7 +381,7 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
381
381
|
onIndoorBuildingFocused = value?.let { it }
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
abstract var onIndoorLevelActivated: ((
|
|
384
|
+
abstract var onIndoorLevelActivated: ((level: RNIndoorLevel) -> Unit)?
|
|
385
385
|
|
|
386
386
|
private var onIndoorLevelActivated_cxx: Func_void_RNIndoorLevel?
|
|
387
387
|
@Keep
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
#include "HybridRNGoogleMapsPlusModuleSpecSwift.hpp"
|
|
12
12
|
#include "HybridRNGoogleMapsPlusViewSpecSwift.hpp"
|
|
13
13
|
#include "RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp"
|
|
14
|
+
#include <NitroModules/NitroDefines.hpp>
|
|
14
15
|
|
|
15
16
|
namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
16
17
|
|
|
@@ -118,19 +119,19 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
118
119
|
};
|
|
119
120
|
}
|
|
120
121
|
|
|
121
|
-
// pragma MARK: std::function<void(const RNIndoorBuilding& /*
|
|
122
|
+
// pragma MARK: std::function<void(const RNIndoorBuilding& /* building */)>
|
|
122
123
|
Func_void_RNIndoorBuilding create_Func_void_RNIndoorBuilding(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
123
124
|
auto swiftClosure = RNGoogleMapsPlus::Func_void_RNIndoorBuilding::fromUnsafe(swiftClosureWrapper);
|
|
124
|
-
return [swiftClosure = std::move(swiftClosure)](const RNIndoorBuilding&
|
|
125
|
-
swiftClosure.call(
|
|
125
|
+
return [swiftClosure = std::move(swiftClosure)](const RNIndoorBuilding& building) mutable -> void {
|
|
126
|
+
swiftClosure.call(building);
|
|
126
127
|
};
|
|
127
128
|
}
|
|
128
129
|
|
|
129
|
-
// pragma MARK: std::function<void(const RNIndoorLevel& /*
|
|
130
|
+
// pragma MARK: std::function<void(const RNIndoorLevel& /* level */)>
|
|
130
131
|
Func_void_RNIndoorLevel create_Func_void_RNIndoorLevel(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
131
132
|
auto swiftClosure = RNGoogleMapsPlus::Func_void_RNIndoorLevel::fromUnsafe(swiftClosureWrapper);
|
|
132
|
-
return [swiftClosure = std::move(swiftClosure)](const RNIndoorLevel&
|
|
133
|
-
swiftClosure.call(
|
|
133
|
+
return [swiftClosure = std::move(swiftClosure)](const RNIndoorLevel& level) mutable -> void {
|
|
134
|
+
swiftClosure.call(level);
|
|
134
135
|
};
|
|
135
136
|
}
|
|
136
137
|
|
|
@@ -1245,77 +1245,77 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1245
1245
|
return vector;
|
|
1246
1246
|
}
|
|
1247
1247
|
|
|
1248
|
-
// pragma MARK: std::function<void(const RNIndoorBuilding& /*
|
|
1248
|
+
// pragma MARK: std::function<void(const RNIndoorBuilding& /* building */)>
|
|
1249
1249
|
/**
|
|
1250
1250
|
* Specialized version of `std::function<void(const RNIndoorBuilding&)>`.
|
|
1251
1251
|
*/
|
|
1252
|
-
using Func_void_RNIndoorBuilding = std::function<void(const RNIndoorBuilding& /*
|
|
1252
|
+
using Func_void_RNIndoorBuilding = std::function<void(const RNIndoorBuilding& /* building */)>;
|
|
1253
1253
|
/**
|
|
1254
|
-
* Wrapper class for a `std::function<void(const RNIndoorBuilding& / *
|
|
1254
|
+
* Wrapper class for a `std::function<void(const RNIndoorBuilding& / * building * /)>`, this can be used from Swift.
|
|
1255
1255
|
*/
|
|
1256
1256
|
class Func_void_RNIndoorBuilding_Wrapper final {
|
|
1257
1257
|
public:
|
|
1258
|
-
explicit Func_void_RNIndoorBuilding_Wrapper(std::function<void(const RNIndoorBuilding& /*
|
|
1259
|
-
inline void call(RNIndoorBuilding
|
|
1260
|
-
_function->operator()(
|
|
1258
|
+
explicit Func_void_RNIndoorBuilding_Wrapper(std::function<void(const RNIndoorBuilding& /* building */)>&& func): _function(std::make_unique<std::function<void(const RNIndoorBuilding& /* building */)>>(std::move(func))) {}
|
|
1259
|
+
inline void call(RNIndoorBuilding building) const noexcept {
|
|
1260
|
+
_function->operator()(building);
|
|
1261
1261
|
}
|
|
1262
1262
|
private:
|
|
1263
|
-
std::unique_ptr<std::function<void(const RNIndoorBuilding& /*
|
|
1263
|
+
std::unique_ptr<std::function<void(const RNIndoorBuilding& /* building */)>> _function;
|
|
1264
1264
|
} SWIFT_NONCOPYABLE;
|
|
1265
1265
|
Func_void_RNIndoorBuilding create_Func_void_RNIndoorBuilding(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1266
1266
|
inline Func_void_RNIndoorBuilding_Wrapper wrap_Func_void_RNIndoorBuilding(Func_void_RNIndoorBuilding value) noexcept {
|
|
1267
1267
|
return Func_void_RNIndoorBuilding_Wrapper(std::move(value));
|
|
1268
1268
|
}
|
|
1269
1269
|
|
|
1270
|
-
// pragma MARK: std::optional<std::function<void(const RNIndoorBuilding& /*
|
|
1270
|
+
// pragma MARK: std::optional<std::function<void(const RNIndoorBuilding& /* building */)>>
|
|
1271
1271
|
/**
|
|
1272
|
-
* Specialized version of `std::optional<std::function<void(const RNIndoorBuilding& / *
|
|
1272
|
+
* Specialized version of `std::optional<std::function<void(const RNIndoorBuilding& / * building * /)>>`.
|
|
1273
1273
|
*/
|
|
1274
|
-
using
|
|
1275
|
-
inline std::optional<std::function<void(const RNIndoorBuilding& /*
|
|
1276
|
-
return std::optional<std::function<void(const RNIndoorBuilding& /*
|
|
1274
|
+
using std__optional_std__function_void_const_RNIndoorBuilding_____building______ = std::optional<std::function<void(const RNIndoorBuilding& /* building */)>>;
|
|
1275
|
+
inline std::optional<std::function<void(const RNIndoorBuilding& /* building */)>> create_std__optional_std__function_void_const_RNIndoorBuilding_____building______(const std::function<void(const RNIndoorBuilding& /* building */)>& value) noexcept {
|
|
1276
|
+
return std::optional<std::function<void(const RNIndoorBuilding& /* building */)>>(value);
|
|
1277
1277
|
}
|
|
1278
|
-
inline bool
|
|
1278
|
+
inline bool has_value_std__optional_std__function_void_const_RNIndoorBuilding_____building______(const std::optional<std::function<void(const RNIndoorBuilding& /* building */)>>& optional) noexcept {
|
|
1279
1279
|
return optional.has_value();
|
|
1280
1280
|
}
|
|
1281
|
-
inline std::function<void(const RNIndoorBuilding& /*
|
|
1281
|
+
inline std::function<void(const RNIndoorBuilding& /* building */)> get_std__optional_std__function_void_const_RNIndoorBuilding_____building______(const std::optional<std::function<void(const RNIndoorBuilding& /* building */)>>& optional) noexcept {
|
|
1282
1282
|
return *optional;
|
|
1283
1283
|
}
|
|
1284
1284
|
|
|
1285
|
-
// pragma MARK: std::function<void(const RNIndoorLevel& /*
|
|
1285
|
+
// pragma MARK: std::function<void(const RNIndoorLevel& /* level */)>
|
|
1286
1286
|
/**
|
|
1287
1287
|
* Specialized version of `std::function<void(const RNIndoorLevel&)>`.
|
|
1288
1288
|
*/
|
|
1289
|
-
using Func_void_RNIndoorLevel = std::function<void(const RNIndoorLevel& /*
|
|
1289
|
+
using Func_void_RNIndoorLevel = std::function<void(const RNIndoorLevel& /* level */)>;
|
|
1290
1290
|
/**
|
|
1291
|
-
* Wrapper class for a `std::function<void(const RNIndoorLevel& / *
|
|
1291
|
+
* Wrapper class for a `std::function<void(const RNIndoorLevel& / * level * /)>`, this can be used from Swift.
|
|
1292
1292
|
*/
|
|
1293
1293
|
class Func_void_RNIndoorLevel_Wrapper final {
|
|
1294
1294
|
public:
|
|
1295
|
-
explicit Func_void_RNIndoorLevel_Wrapper(std::function<void(const RNIndoorLevel& /*
|
|
1296
|
-
inline void call(RNIndoorLevel
|
|
1297
|
-
_function->operator()(
|
|
1295
|
+
explicit Func_void_RNIndoorLevel_Wrapper(std::function<void(const RNIndoorLevel& /* level */)>&& func): _function(std::make_unique<std::function<void(const RNIndoorLevel& /* level */)>>(std::move(func))) {}
|
|
1296
|
+
inline void call(RNIndoorLevel level) const noexcept {
|
|
1297
|
+
_function->operator()(level);
|
|
1298
1298
|
}
|
|
1299
1299
|
private:
|
|
1300
|
-
std::unique_ptr<std::function<void(const RNIndoorLevel& /*
|
|
1300
|
+
std::unique_ptr<std::function<void(const RNIndoorLevel& /* level */)>> _function;
|
|
1301
1301
|
} SWIFT_NONCOPYABLE;
|
|
1302
1302
|
Func_void_RNIndoorLevel create_Func_void_RNIndoorLevel(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1303
1303
|
inline Func_void_RNIndoorLevel_Wrapper wrap_Func_void_RNIndoorLevel(Func_void_RNIndoorLevel value) noexcept {
|
|
1304
1304
|
return Func_void_RNIndoorLevel_Wrapper(std::move(value));
|
|
1305
1305
|
}
|
|
1306
1306
|
|
|
1307
|
-
// pragma MARK: std::optional<std::function<void(const RNIndoorLevel& /*
|
|
1307
|
+
// pragma MARK: std::optional<std::function<void(const RNIndoorLevel& /* level */)>>
|
|
1308
1308
|
/**
|
|
1309
|
-
* Specialized version of `std::optional<std::function<void(const RNIndoorLevel& / *
|
|
1309
|
+
* Specialized version of `std::optional<std::function<void(const RNIndoorLevel& / * level * /)>>`.
|
|
1310
1310
|
*/
|
|
1311
|
-
using
|
|
1312
|
-
inline std::optional<std::function<void(const RNIndoorLevel& /*
|
|
1313
|
-
return std::optional<std::function<void(const RNIndoorLevel& /*
|
|
1311
|
+
using std__optional_std__function_void_const_RNIndoorLevel_____level______ = std::optional<std::function<void(const RNIndoorLevel& /* level */)>>;
|
|
1312
|
+
inline std::optional<std::function<void(const RNIndoorLevel& /* level */)>> create_std__optional_std__function_void_const_RNIndoorLevel_____level______(const std::function<void(const RNIndoorLevel& /* level */)>& value) noexcept {
|
|
1313
|
+
return std::optional<std::function<void(const RNIndoorLevel& /* level */)>>(value);
|
|
1314
1314
|
}
|
|
1315
|
-
inline bool
|
|
1315
|
+
inline bool has_value_std__optional_std__function_void_const_RNIndoorLevel_____level______(const std::optional<std::function<void(const RNIndoorLevel& /* level */)>>& optional) noexcept {
|
|
1316
1316
|
return optional.has_value();
|
|
1317
1317
|
}
|
|
1318
|
-
inline std::function<void(const RNIndoorLevel& /*
|
|
1318
|
+
inline std::function<void(const RNIndoorLevel& /* level */)> get_std__optional_std__function_void_const_RNIndoorLevel_____level______(const std::optional<std::function<void(const RNIndoorLevel& /* level */)>>& optional) noexcept {
|
|
1319
1319
|
return *optional;
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
@@ -432,18 +432,18 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
432
432
|
inline void setOnMarkerDragEnd(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDragEnd) noexcept override {
|
|
433
433
|
_swiftPart.setOnMarkerDragEnd(onMarkerDragEnd);
|
|
434
434
|
}
|
|
435
|
-
inline std::optional<std::function<void(const RNIndoorBuilding& /*
|
|
435
|
+
inline std::optional<std::function<void(const RNIndoorBuilding& /* building */)>> getOnIndoorBuildingFocused() noexcept override {
|
|
436
436
|
auto __result = _swiftPart.getOnIndoorBuildingFocused();
|
|
437
437
|
return __result;
|
|
438
438
|
}
|
|
439
|
-
inline void setOnIndoorBuildingFocused(const std::optional<std::function<void(const RNIndoorBuilding& /*
|
|
439
|
+
inline void setOnIndoorBuildingFocused(const std::optional<std::function<void(const RNIndoorBuilding& /* building */)>>& onIndoorBuildingFocused) noexcept override {
|
|
440
440
|
_swiftPart.setOnIndoorBuildingFocused(onIndoorBuildingFocused);
|
|
441
441
|
}
|
|
442
|
-
inline std::optional<std::function<void(const RNIndoorLevel& /*
|
|
442
|
+
inline std::optional<std::function<void(const RNIndoorLevel& /* level */)>> getOnIndoorLevelActivated() noexcept override {
|
|
443
443
|
auto __result = _swiftPart.getOnIndoorLevelActivated();
|
|
444
444
|
return __result;
|
|
445
445
|
}
|
|
446
|
-
inline void setOnIndoorLevelActivated(const std::optional<std::function<void(const RNIndoorLevel& /*
|
|
446
|
+
inline void setOnIndoorLevelActivated(const std::optional<std::function<void(const RNIndoorLevel& /* level */)>>& onIndoorLevelActivated) noexcept override {
|
|
447
447
|
_swiftPart.setOnIndoorLevelActivated(onIndoorLevelActivated);
|
|
448
448
|
}
|
|
449
449
|
inline std::optional<std::function<void(const std::string& /* id */)>> getOnInfoWindowPress() noexcept override {
|
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
|
-
* Wraps a Swift `(_
|
|
12
|
+
* Wraps a Swift `(_ building: RNIndoorBuilding) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
14
|
*/
|
|
15
15
|
public final class Func_void_RNIndoorBuilding {
|
|
16
16
|
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
|
-
private let closure: (_
|
|
18
|
+
private let closure: (_ building: RNIndoorBuilding) -> Void
|
|
19
19
|
|
|
20
|
-
public init(_ closure: @escaping (_
|
|
20
|
+
public init(_ closure: @escaping (_ building: RNIndoorBuilding) -> Void) {
|
|
21
21
|
self.closure = closure
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@inline(__always)
|
|
25
|
-
public func call(
|
|
26
|
-
self.closure(
|
|
25
|
+
public func call(building: RNIndoorBuilding) -> Void {
|
|
26
|
+
self.closure(building)
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
|
-
* Wraps a Swift `(_
|
|
12
|
+
* Wraps a Swift `(_ level: RNIndoorLevel) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
14
|
*/
|
|
15
15
|
public final class Func_void_RNIndoorLevel {
|
|
16
16
|
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
|
-
private let closure: (_
|
|
18
|
+
private let closure: (_ level: RNIndoorLevel) -> Void
|
|
19
19
|
|
|
20
|
-
public init(_ closure: @escaping (_
|
|
20
|
+
public init(_ closure: @escaping (_ level: RNIndoorLevel) -> Void) {
|
|
21
21
|
self.closure = closure
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@inline(__always)
|
|
25
|
-
public func call(
|
|
26
|
-
self.closure(
|
|
25
|
+
public func call(level: RNIndoorLevel) -> Void {
|
|
26
|
+
self.closure(level)
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ coordinate: RNLatLng) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ location: RNLocation) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ error: RNLocationErrorCode) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ value: RNLocationPermissionResult) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ error: RNMapErrorCode) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ region: RNRegion, _ camera: RNCamera) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ id: String, _ location: RNLatLng) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ placeId: String, _ name: String, _ coordinate: RNLatLng) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
import Foundation
|
|
9
9
|
import NitroModules
|
|
10
|
-
import NitroModules
|
|
11
10
|
|
|
12
11
|
/// See ``HybridRNGoogleMapsPlusViewSpec``
|
|
13
12
|
public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridView {
|
|
@@ -46,8 +45,8 @@ public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridVie
|
|
|
46
45
|
var onMarkerDragStart: ((_ id: String, _ location: RNLatLng) -> Void)? { get set }
|
|
47
46
|
var onMarkerDrag: ((_ id: String, _ location: RNLatLng) -> Void)? { get set }
|
|
48
47
|
var onMarkerDragEnd: ((_ id: String, _ location: RNLatLng) -> Void)? { get set }
|
|
49
|
-
var onIndoorBuildingFocused: ((_
|
|
50
|
-
var onIndoorLevelActivated: ((_
|
|
48
|
+
var onIndoorBuildingFocused: ((_ building: RNIndoorBuilding) -> Void)? { get set }
|
|
49
|
+
var onIndoorLevelActivated: ((_ level: RNIndoorLevel) -> Void)? { get set }
|
|
51
50
|
var onInfoWindowPress: ((_ id: String) -> Void)? { get set }
|
|
52
51
|
var onInfoWindowClose: ((_ id: String) -> Void)? { get set }
|
|
53
52
|
var onInfoWindowLongPress: ((_ id: String) -> Void)? { get set }
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
import Foundation
|
|
9
9
|
import NitroModules
|
|
10
|
-
import NitroModules
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* A class implementation that bridges HybridRNGoogleMapsPlusViewSpec over to C++.
|
|
@@ -1044,12 +1043,12 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1044
1043
|
}
|
|
1045
1044
|
}
|
|
1046
1045
|
|
|
1047
|
-
public final var onIndoorBuildingFocused: bridge.
|
|
1046
|
+
public final var onIndoorBuildingFocused: bridge.std__optional_std__function_void_const_RNIndoorBuilding_____building______ {
|
|
1048
1047
|
@inline(__always)
|
|
1049
1048
|
get {
|
|
1050
|
-
return { () -> bridge.
|
|
1049
|
+
return { () -> bridge.std__optional_std__function_void_const_RNIndoorBuilding_____building______ in
|
|
1051
1050
|
if let __unwrappedValue = self.__implementation.onIndoorBuildingFocused {
|
|
1052
|
-
return bridge.
|
|
1051
|
+
return bridge.create_std__optional_std__function_void_const_RNIndoorBuilding_____building______({ () -> bridge.Func_void_RNIndoorBuilding in
|
|
1053
1052
|
let __closureWrapper = Func_void_RNIndoorBuilding(__unwrappedValue)
|
|
1054
1053
|
return bridge.create_Func_void_RNIndoorBuilding(__closureWrapper.toUnsafe())
|
|
1055
1054
|
}())
|
|
@@ -1060,13 +1059,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1060
1059
|
}
|
|
1061
1060
|
@inline(__always)
|
|
1062
1061
|
set {
|
|
1063
|
-
self.__implementation.onIndoorBuildingFocused = { () -> ((_
|
|
1064
|
-
if bridge.
|
|
1065
|
-
let __unwrapped = bridge.
|
|
1062
|
+
self.__implementation.onIndoorBuildingFocused = { () -> ((_ building: RNIndoorBuilding) -> Void)? in
|
|
1063
|
+
if bridge.has_value_std__optional_std__function_void_const_RNIndoorBuilding_____building______(newValue) {
|
|
1064
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_RNIndoorBuilding_____building______(newValue)
|
|
1066
1065
|
return { () -> (RNIndoorBuilding) -> Void in
|
|
1067
1066
|
let __wrappedFunction = bridge.wrap_Func_void_RNIndoorBuilding(__unwrapped)
|
|
1068
|
-
return { (
|
|
1069
|
-
__wrappedFunction.call(
|
|
1067
|
+
return { (__building: RNIndoorBuilding) -> Void in
|
|
1068
|
+
__wrappedFunction.call(__building)
|
|
1070
1069
|
}
|
|
1071
1070
|
}()
|
|
1072
1071
|
} else {
|
|
@@ -1076,12 +1075,12 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1076
1075
|
}
|
|
1077
1076
|
}
|
|
1078
1077
|
|
|
1079
|
-
public final var onIndoorLevelActivated: bridge.
|
|
1078
|
+
public final var onIndoorLevelActivated: bridge.std__optional_std__function_void_const_RNIndoorLevel_____level______ {
|
|
1080
1079
|
@inline(__always)
|
|
1081
1080
|
get {
|
|
1082
|
-
return { () -> bridge.
|
|
1081
|
+
return { () -> bridge.std__optional_std__function_void_const_RNIndoorLevel_____level______ in
|
|
1083
1082
|
if let __unwrappedValue = self.__implementation.onIndoorLevelActivated {
|
|
1084
|
-
return bridge.
|
|
1083
|
+
return bridge.create_std__optional_std__function_void_const_RNIndoorLevel_____level______({ () -> bridge.Func_void_RNIndoorLevel in
|
|
1085
1084
|
let __closureWrapper = Func_void_RNIndoorLevel(__unwrappedValue)
|
|
1086
1085
|
return bridge.create_Func_void_RNIndoorLevel(__closureWrapper.toUnsafe())
|
|
1087
1086
|
}())
|
|
@@ -1092,13 +1091,13 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1092
1091
|
}
|
|
1093
1092
|
@inline(__always)
|
|
1094
1093
|
set {
|
|
1095
|
-
self.__implementation.onIndoorLevelActivated = { () -> ((_
|
|
1096
|
-
if bridge.
|
|
1097
|
-
let __unwrapped = bridge.
|
|
1094
|
+
self.__implementation.onIndoorLevelActivated = { () -> ((_ level: RNIndoorLevel) -> Void)? in
|
|
1095
|
+
if bridge.has_value_std__optional_std__function_void_const_RNIndoorLevel_____level______(newValue) {
|
|
1096
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_RNIndoorLevel_____level______(newValue)
|
|
1098
1097
|
return { () -> (RNIndoorLevel) -> Void in
|
|
1099
1098
|
let __wrappedFunction = bridge.wrap_Func_void_RNIndoorLevel(__unwrapped)
|
|
1100
|
-
return { (
|
|
1101
|
-
__wrappedFunction.call(
|
|
1099
|
+
return { (__level: RNIndoorLevel) -> Void in
|
|
1100
|
+
__wrappedFunction.call(__level)
|
|
1102
1101
|
}
|
|
1103
1102
|
}()
|
|
1104
1103
|
} else {
|