react-native-google-maps-plus 1.8.0-dev.1 → 1.8.0-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/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +4 -4
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +5 -5
- package/android/src/main/java/com/rngooglemapsplus/extensions/CameraPositionExtension.kt +2 -3
- package/android/src/main/java/com/rngooglemapsplus/extensions/{RNCameraExtension.kt → RNCameraUpdateExtension.kt} +2 -2
- package/ios/GoogleMapViewImpl.swift +4 -4
- package/ios/RNGoogleMapsPlusView.swift +5 -5
- package/ios/extensions/GMSCameraPosition+Extension.swift +2 -2
- package/ios/extensions/{RNCamera+Extension.swift → RNCameraUpdate+Extension.swift} +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +6 -6
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +3 -3
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +4 -4
- package/nitrogen/generated/android/c++/{JFunc_void_RNRegion_RNCameraChange.hpp → JFunc_void_RNRegion_RNCamera.hpp} +21 -21
- package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCamera_bool.hpp +82 -0
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +49 -49
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +9 -9
- package/nitrogen/generated/android/c++/JRNCamera.hpp +15 -16
- package/nitrogen/generated/android/c++/JRNCameraUpdate.hpp +71 -0
- package/nitrogen/generated/android/c++/JRNInitialProps.hpp +6 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_RNRegion_RNCameraChange.kt → Func_void_RNRegion_RNCamera.kt} +9 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_RNRegion_RNCameraChange_bool.kt → Func_void_RNRegion_RNCamera_bool.kt} +9 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +13 -13
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCamera.kt +5 -5
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{RNCameraChange.kt → RNCameraUpdate.kt} +9 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNInitialProps.kt +2 -2
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +8 -8
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +46 -46
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +3 -3
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +15 -15
- package/nitrogen/generated/ios/swift/{Func_void_RNRegion_RNCameraChange.swift → Func_void_RNRegion_RNCamera.swift} +10 -10
- package/nitrogen/generated/ios/swift/{Func_void_RNRegion_RNCameraChange_bool.swift → Func_void_RNRegion_RNCamera_bool.swift} +10 -10
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +5 -5
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +45 -45
- package/nitrogen/generated/ios/swift/RNCamera.swift +14 -62
- package/nitrogen/generated/ios/swift/RNCameraUpdate.swift +116 -0
- package/nitrogen/generated/ios/swift/RNInitialProps.swift +6 -6
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +15 -15
- package/nitrogen/generated/shared/c++/RNCamera.hpp +17 -18
- package/nitrogen/generated/shared/c++/RNCameraUpdate.hpp +89 -0
- package/nitrogen/generated/shared/c++/RNInitialProps.hpp +8 -8
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +8 -8
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +5 -5
- package/package.json +1 -1
- package/src/RNGoogleMapsPlusView.nitro.ts +10 -6
- package/src/types.ts +3 -3
- package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCameraChange_bool.hpp +0 -82
- package/nitrogen/generated/android/c++/JRNCameraChange.hpp +0 -70
- package/nitrogen/generated/ios/swift/RNCameraChange.swift +0 -68
- package/nitrogen/generated/shared/c++/RNCameraChange.hpp +0 -88
|
@@ -20,16 +20,16 @@ import com.margelo.nitro.core.*
|
|
|
20
20
|
data class RNCamera(
|
|
21
21
|
@DoNotStrip
|
|
22
22
|
@Keep
|
|
23
|
-
val center: RNLatLng
|
|
23
|
+
val center: RNLatLng,
|
|
24
24
|
@DoNotStrip
|
|
25
25
|
@Keep
|
|
26
|
-
val zoom: Double
|
|
26
|
+
val zoom: Double,
|
|
27
27
|
@DoNotStrip
|
|
28
28
|
@Keep
|
|
29
|
-
val bearing: Double
|
|
29
|
+
val bearing: Double,
|
|
30
30
|
@DoNotStrip
|
|
31
31
|
@Keep
|
|
32
|
-
val tilt: Double
|
|
32
|
+
val tilt: Double
|
|
33
33
|
) {
|
|
34
34
|
private companion object {
|
|
35
35
|
/**
|
|
@@ -39,7 +39,7 @@ data class RNCamera(
|
|
|
39
39
|
@Keep
|
|
40
40
|
@Suppress("unused")
|
|
41
41
|
@JvmStatic
|
|
42
|
-
private fun fromCpp(center: RNLatLng
|
|
42
|
+
private fun fromCpp(center: RNLatLng, zoom: Double, bearing: Double, tilt: Double): RNCamera {
|
|
43
43
|
return RNCamera(center, zoom, bearing, tilt)
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// RNCameraUpdate.kt
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
@@ -13,23 +13,23 @@ import com.margelo.nitro.core.*
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Represents the JavaScript object/struct "
|
|
16
|
+
* Represents the JavaScript object/struct "RNCameraUpdate".
|
|
17
17
|
*/
|
|
18
18
|
@DoNotStrip
|
|
19
19
|
@Keep
|
|
20
|
-
data class
|
|
20
|
+
data class RNCameraUpdate(
|
|
21
21
|
@DoNotStrip
|
|
22
22
|
@Keep
|
|
23
|
-
val center: RNLatLng
|
|
23
|
+
val center: RNLatLng?,
|
|
24
24
|
@DoNotStrip
|
|
25
25
|
@Keep
|
|
26
|
-
val zoom: Double
|
|
26
|
+
val zoom: Double?,
|
|
27
27
|
@DoNotStrip
|
|
28
28
|
@Keep
|
|
29
|
-
val bearing: Double
|
|
29
|
+
val bearing: Double?,
|
|
30
30
|
@DoNotStrip
|
|
31
31
|
@Keep
|
|
32
|
-
val tilt: Double
|
|
32
|
+
val tilt: Double?
|
|
33
33
|
) {
|
|
34
34
|
private companion object {
|
|
35
35
|
/**
|
|
@@ -39,8 +39,8 @@ data class RNCameraChange(
|
|
|
39
39
|
@Keep
|
|
40
40
|
@Suppress("unused")
|
|
41
41
|
@JvmStatic
|
|
42
|
-
private fun fromCpp(center: RNLatLng
|
|
43
|
-
return
|
|
42
|
+
private fun fromCpp(center: RNLatLng?, zoom: Double?, bearing: Double?, tilt: Double?): RNCameraUpdate {
|
|
43
|
+
return RNCameraUpdate(center, zoom, bearing, tilt)
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNInitialProps.kt
CHANGED
|
@@ -26,7 +26,7 @@ data class RNInitialProps(
|
|
|
26
26
|
val liteMode: Boolean?,
|
|
27
27
|
@DoNotStrip
|
|
28
28
|
@Keep
|
|
29
|
-
val camera:
|
|
29
|
+
val camera: RNCameraUpdate?,
|
|
30
30
|
@DoNotStrip
|
|
31
31
|
@Keep
|
|
32
32
|
val backgroundColor: String?
|
|
@@ -39,7 +39,7 @@ data class RNInitialProps(
|
|
|
39
39
|
@Keep
|
|
40
40
|
@Suppress("unused")
|
|
41
41
|
@JvmStatic
|
|
42
|
-
private fun fromCpp(mapId: String?, liteMode: Boolean?, camera:
|
|
42
|
+
private fun fromCpp(mapId: String?, liteMode: Boolean?, camera: RNCameraUpdate?, backgroundColor: String?): RNInitialProps {
|
|
43
43
|
return RNInitialProps(mapId, liteMode, camera, backgroundColor)
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -62,10 +62,10 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
// pragma MARK: std::function<void(const RNRegion& /* region */, const
|
|
66
|
-
|
|
67
|
-
auto swiftClosure = RNGoogleMapsPlus::
|
|
68
|
-
return [swiftClosure = std::move(swiftClosure)](const RNRegion& region, const
|
|
65
|
+
// pragma MARK: std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>
|
|
66
|
+
Func_void_RNRegion_RNCamera create_Func_void_RNRegion_RNCamera(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
67
|
+
auto swiftClosure = RNGoogleMapsPlus::Func_void_RNRegion_RNCamera::fromUnsafe(swiftClosureWrapper);
|
|
68
|
+
return [swiftClosure = std::move(swiftClosure)](const RNRegion& region, const RNCamera& camera) mutable -> void {
|
|
69
69
|
swiftClosure.call(region, camera);
|
|
70
70
|
};
|
|
71
71
|
}
|
|
@@ -134,10 +134,10 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
// pragma MARK: std::function<void(const RNRegion& /* region */, const
|
|
138
|
-
|
|
139
|
-
auto swiftClosure = RNGoogleMapsPlus::
|
|
140
|
-
return [swiftClosure = std::move(swiftClosure)](const RNRegion& region, const
|
|
137
|
+
// pragma MARK: std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>
|
|
138
|
+
Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
139
|
+
auto swiftClosure = RNGoogleMapsPlus::Func_void_RNRegion_RNCamera_bool::fromUnsafe(swiftClosureWrapper);
|
|
140
|
+
return [swiftClosure = std::move(swiftClosure)](const RNRegion& region, const RNCamera& camera, bool isGesture) mutable -> void {
|
|
141
141
|
swiftClosure.call(region, camera, isGesture);
|
|
142
142
|
};
|
|
143
143
|
}
|
|
@@ -18,8 +18,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNAndroidLocationConfig; }
|
|
|
18
18
|
namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPermissionResult; }
|
|
19
19
|
// Forward declaration of `RNAndroidLocationPriority` to properly resolve imports.
|
|
20
20
|
namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPriority; }
|
|
21
|
-
// Forward declaration of `
|
|
22
|
-
namespace margelo::nitro::rngooglemapsplus { struct
|
|
21
|
+
// Forward declaration of `RNCameraUpdate` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNCameraUpdate; }
|
|
23
23
|
// Forward declaration of `RNCamera` to properly resolve imports.
|
|
24
24
|
namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
|
|
25
25
|
// Forward declaration of `RNCircle` to properly resolve imports.
|
|
@@ -108,7 +108,7 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
|
108
108
|
#include "RNAndroidLocationPermissionResult.hpp"
|
|
109
109
|
#include "RNAndroidLocationPriority.hpp"
|
|
110
110
|
#include "RNCamera.hpp"
|
|
111
|
-
#include "
|
|
111
|
+
#include "RNCameraUpdate.hpp"
|
|
112
112
|
#include "RNCircle.hpp"
|
|
113
113
|
#include "RNHeatmap.hpp"
|
|
114
114
|
#include "RNHeatmapGradient.hpp"
|
|
@@ -347,18 +347,18 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
347
347
|
return *optional;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
// pragma MARK: std::optional<
|
|
350
|
+
// pragma MARK: std::optional<RNCameraUpdate>
|
|
351
351
|
/**
|
|
352
|
-
* Specialized version of `std::optional<
|
|
352
|
+
* Specialized version of `std::optional<RNCameraUpdate>`.
|
|
353
353
|
*/
|
|
354
|
-
using
|
|
355
|
-
inline std::optional<
|
|
356
|
-
return std::optional<
|
|
354
|
+
using std__optional_RNCameraUpdate_ = std::optional<RNCameraUpdate>;
|
|
355
|
+
inline std::optional<RNCameraUpdate> create_std__optional_RNCameraUpdate_(const RNCameraUpdate& value) noexcept {
|
|
356
|
+
return std::optional<RNCameraUpdate>(value);
|
|
357
357
|
}
|
|
358
|
-
inline bool
|
|
358
|
+
inline bool has_value_std__optional_RNCameraUpdate_(const std::optional<RNCameraUpdate>& optional) noexcept {
|
|
359
359
|
return optional.has_value();
|
|
360
360
|
}
|
|
361
|
-
inline
|
|
361
|
+
inline RNCameraUpdate get_std__optional_RNCameraUpdate_(const std::optional<RNCameraUpdate>& optional) noexcept {
|
|
362
362
|
return *optional;
|
|
363
363
|
}
|
|
364
364
|
|
|
@@ -929,40 +929,40 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
929
929
|
return *optional;
|
|
930
930
|
}
|
|
931
931
|
|
|
932
|
-
// pragma MARK: std::function<void(const RNRegion& /* region */, const
|
|
932
|
+
// pragma MARK: std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>
|
|
933
933
|
/**
|
|
934
|
-
* Specialized version of `std::function<void(const RNRegion&, const
|
|
934
|
+
* Specialized version of `std::function<void(const RNRegion&, const RNCamera&)>`.
|
|
935
935
|
*/
|
|
936
|
-
using
|
|
936
|
+
using Func_void_RNRegion_RNCamera = std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>;
|
|
937
937
|
/**
|
|
938
|
-
* Wrapper class for a `std::function<void(const RNRegion& / * region * /, const
|
|
938
|
+
* Wrapper class for a `std::function<void(const RNRegion& / * region * /, const RNCamera& / * camera * /)>`, this can be used from Swift.
|
|
939
939
|
*/
|
|
940
|
-
class
|
|
940
|
+
class Func_void_RNRegion_RNCamera_Wrapper final {
|
|
941
941
|
public:
|
|
942
|
-
explicit
|
|
943
|
-
inline void call(RNRegion region,
|
|
942
|
+
explicit Func_void_RNRegion_RNCamera_Wrapper(std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>&& func): _function(std::make_unique<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>(std::move(func))) {}
|
|
943
|
+
inline void call(RNRegion region, RNCamera camera) const noexcept {
|
|
944
944
|
_function->operator()(region, camera);
|
|
945
945
|
}
|
|
946
946
|
private:
|
|
947
|
-
std::unique_ptr<std::function<void(const RNRegion& /* region */, const
|
|
947
|
+
std::unique_ptr<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>> _function;
|
|
948
948
|
} SWIFT_NONCOPYABLE;
|
|
949
|
-
|
|
950
|
-
inline
|
|
951
|
-
return
|
|
949
|
+
Func_void_RNRegion_RNCamera create_Func_void_RNRegion_RNCamera(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
950
|
+
inline Func_void_RNRegion_RNCamera_Wrapper wrap_Func_void_RNRegion_RNCamera(Func_void_RNRegion_RNCamera value) noexcept {
|
|
951
|
+
return Func_void_RNRegion_RNCamera_Wrapper(std::move(value));
|
|
952
952
|
}
|
|
953
953
|
|
|
954
|
-
// pragma MARK: std::optional<std::function<void(const RNRegion& /* region */, const
|
|
954
|
+
// pragma MARK: std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>
|
|
955
955
|
/**
|
|
956
|
-
* Specialized version of `std::optional<std::function<void(const RNRegion& / * region * /, const
|
|
956
|
+
* Specialized version of `std::optional<std::function<void(const RNRegion& / * region * /, const RNCamera& / * camera * /)>>`.
|
|
957
957
|
*/
|
|
958
|
-
using
|
|
959
|
-
inline std::optional<std::function<void(const RNRegion& /* region */, const
|
|
960
|
-
return std::optional<std::function<void(const RNRegion& /* region */, const
|
|
958
|
+
using std__optional_std__function_void_const_RNRegion_____region_____const_RNCamera_____camera______ = std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>;
|
|
959
|
+
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>> create_std__optional_std__function_void_const_RNRegion_____region_____const_RNCamera_____camera______(const std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>& value) noexcept {
|
|
960
|
+
return std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>(value);
|
|
961
961
|
}
|
|
962
|
-
inline bool
|
|
962
|
+
inline bool has_value_std__optional_std__function_void_const_RNRegion_____region_____const_RNCamera_____camera______(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>& optional) noexcept {
|
|
963
963
|
return optional.has_value();
|
|
964
964
|
}
|
|
965
|
-
inline std::function<void(const RNRegion& /* region */, const
|
|
965
|
+
inline std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)> get_std__optional_std__function_void_const_RNRegion_____region_____const_RNCamera_____camera______(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>& optional) noexcept {
|
|
966
966
|
return *optional;
|
|
967
967
|
}
|
|
968
968
|
|
|
@@ -1318,40 +1318,40 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1318
1318
|
return *optional;
|
|
1319
1319
|
}
|
|
1320
1320
|
|
|
1321
|
-
// pragma MARK: std::function<void(const RNRegion& /* region */, const
|
|
1321
|
+
// pragma MARK: std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>
|
|
1322
1322
|
/**
|
|
1323
|
-
* Specialized version of `std::function<void(const RNRegion&, const
|
|
1323
|
+
* Specialized version of `std::function<void(const RNRegion&, const RNCamera&, bool)>`.
|
|
1324
1324
|
*/
|
|
1325
|
-
using
|
|
1325
|
+
using Func_void_RNRegion_RNCamera_bool = std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>;
|
|
1326
1326
|
/**
|
|
1327
|
-
* Wrapper class for a `std::function<void(const RNRegion& / * region * /, const
|
|
1327
|
+
* Wrapper class for a `std::function<void(const RNRegion& / * region * /, const RNCamera& / * camera * /, bool / * isGesture * /)>`, this can be used from Swift.
|
|
1328
1328
|
*/
|
|
1329
|
-
class
|
|
1329
|
+
class Func_void_RNRegion_RNCamera_bool_Wrapper final {
|
|
1330
1330
|
public:
|
|
1331
|
-
explicit
|
|
1332
|
-
inline void call(RNRegion region,
|
|
1331
|
+
explicit Func_void_RNRegion_RNCamera_bool_Wrapper(std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>&& func): _function(std::make_unique<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>(std::move(func))) {}
|
|
1332
|
+
inline void call(RNRegion region, RNCamera camera, bool isGesture) const noexcept {
|
|
1333
1333
|
_function->operator()(region, camera, isGesture);
|
|
1334
1334
|
}
|
|
1335
1335
|
private:
|
|
1336
|
-
std::unique_ptr<std::function<void(const RNRegion& /* region */, const
|
|
1336
|
+
std::unique_ptr<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> _function;
|
|
1337
1337
|
} SWIFT_NONCOPYABLE;
|
|
1338
|
-
|
|
1339
|
-
inline
|
|
1340
|
-
return
|
|
1338
|
+
Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1339
|
+
inline Func_void_RNRegion_RNCamera_bool_Wrapper wrap_Func_void_RNRegion_RNCamera_bool(Func_void_RNRegion_RNCamera_bool value) noexcept {
|
|
1340
|
+
return Func_void_RNRegion_RNCamera_bool_Wrapper(std::move(value));
|
|
1341
1341
|
}
|
|
1342
1342
|
|
|
1343
|
-
// pragma MARK: std::optional<std::function<void(const RNRegion& /* region */, const
|
|
1343
|
+
// pragma MARK: std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>
|
|
1344
1344
|
/**
|
|
1345
|
-
* Specialized version of `std::optional<std::function<void(const RNRegion& / * region * /, const
|
|
1345
|
+
* Specialized version of `std::optional<std::function<void(const RNRegion& / * region * /, const RNCamera& / * camera * /, bool / * isGesture * /)>>`.
|
|
1346
1346
|
*/
|
|
1347
|
-
using
|
|
1348
|
-
inline std::optional<std::function<void(const RNRegion& /* region */, const
|
|
1349
|
-
return std::optional<std::function<void(const RNRegion& /* region */, const
|
|
1347
|
+
using std__optional_std__function_void_const_RNRegion_____region_____const_RNCamera_____camera_____bool____isGesture______ = std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>;
|
|
1348
|
+
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> create_std__optional_std__function_void_const_RNRegion_____region_____const_RNCamera_____camera_____bool____isGesture______(const std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>& value) noexcept {
|
|
1349
|
+
return std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>(value);
|
|
1350
1350
|
}
|
|
1351
|
-
inline bool
|
|
1351
|
+
inline bool has_value_std__optional_std__function_void_const_RNRegion_____region_____const_RNCamera_____camera_____bool____isGesture______(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>& optional) noexcept {
|
|
1352
1352
|
return optional.has_value();
|
|
1353
1353
|
}
|
|
1354
|
-
inline std::function<void(const RNRegion& /* region */, const
|
|
1354
|
+
inline std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)> get_std__optional_std__function_void_const_RNRegion_____region_____const_RNCamera_____camera_____bool____isGesture______(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>& optional) noexcept {
|
|
1355
1355
|
return *optional;
|
|
1356
1356
|
}
|
|
1357
1357
|
|
|
@@ -18,8 +18,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNAndroidLocationConfig; }
|
|
|
18
18
|
namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPermissionResult; }
|
|
19
19
|
// Forward declaration of `RNAndroidLocationPriority` to properly resolve imports.
|
|
20
20
|
namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPriority; }
|
|
21
|
-
// Forward declaration of `
|
|
22
|
-
namespace margelo::nitro::rngooglemapsplus { struct
|
|
21
|
+
// Forward declaration of `RNCameraUpdate` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNCameraUpdate; }
|
|
23
23
|
// Forward declaration of `RNCamera` to properly resolve imports.
|
|
24
24
|
namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
|
|
25
25
|
// Forward declaration of `RNCircle` to properly resolve imports.
|
|
@@ -108,7 +108,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
|
108
108
|
#include "RNAndroidLocationPermissionResult.hpp"
|
|
109
109
|
#include "RNAndroidLocationPriority.hpp"
|
|
110
110
|
#include "RNCamera.hpp"
|
|
111
|
-
#include "
|
|
111
|
+
#include "RNCameraUpdate.hpp"
|
|
112
112
|
#include "RNCircle.hpp"
|
|
113
113
|
#include "RNHeatmap.hpp"
|
|
114
114
|
#include "RNHeatmapGradient.hpp"
|
|
@@ -14,8 +14,8 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
|
14
14
|
|
|
15
15
|
// Forward declaration of `RNInitialProps` to properly resolve imports.
|
|
16
16
|
namespace margelo::nitro::rngooglemapsplus { struct RNInitialProps; }
|
|
17
|
-
// Forward declaration of `
|
|
18
|
-
namespace margelo::nitro::rngooglemapsplus { struct
|
|
17
|
+
// Forward declaration of `RNCameraUpdate` to properly resolve imports.
|
|
18
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNCameraUpdate; }
|
|
19
19
|
// Forward declaration of `RNLatLng` to properly resolve imports.
|
|
20
20
|
namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
|
|
21
21
|
// Forward declaration of `RNMapUiSettings` to properly resolve imports.
|
|
@@ -70,8 +70,8 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
|
|
|
70
70
|
namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
|
|
71
71
|
// Forward declaration of `RNRegion` to properly resolve imports.
|
|
72
72
|
namespace margelo::nitro::rngooglemapsplus { struct RNRegion; }
|
|
73
|
-
// Forward declaration of `
|
|
74
|
-
namespace margelo::nitro::rngooglemapsplus { struct
|
|
73
|
+
// Forward declaration of `RNCamera` to properly resolve imports.
|
|
74
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
|
|
75
75
|
// Forward declaration of `RNLatLngBounds` to properly resolve imports.
|
|
76
76
|
namespace margelo::nitro::rngooglemapsplus { struct RNLatLngBounds; }
|
|
77
77
|
// Forward declaration of `RNLocation` to properly resolve imports.
|
|
@@ -104,7 +104,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
|
104
104
|
#include "RNInitialProps.hpp"
|
|
105
105
|
#include <optional>
|
|
106
106
|
#include <string>
|
|
107
|
-
#include "
|
|
107
|
+
#include "RNCameraUpdate.hpp"
|
|
108
108
|
#include "RNLatLng.hpp"
|
|
109
109
|
#include "RNMapUiSettings.hpp"
|
|
110
110
|
#include "RNUserInterfaceStyle.hpp"
|
|
@@ -134,7 +134,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
|
134
134
|
#include "RNMapErrorCode.hpp"
|
|
135
135
|
#include <functional>
|
|
136
136
|
#include "RNRegion.hpp"
|
|
137
|
-
#include "
|
|
137
|
+
#include "RNCamera.hpp"
|
|
138
138
|
#include "RNLatLngBounds.hpp"
|
|
139
139
|
#include "RNLocation.hpp"
|
|
140
140
|
#include "RNLocationAndroid.hpp"
|
|
@@ -335,11 +335,11 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
335
335
|
inline void setOnMapReady(const std::optional<std::function<void(bool /* ready */)>>& onMapReady) noexcept override {
|
|
336
336
|
_swiftPart.setOnMapReady(onMapReady);
|
|
337
337
|
}
|
|
338
|
-
inline std::optional<std::function<void(const RNRegion& /* region */, const
|
|
338
|
+
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>> getOnMapLoaded() noexcept override {
|
|
339
339
|
auto __result = _swiftPart.getOnMapLoaded();
|
|
340
340
|
return __result;
|
|
341
341
|
}
|
|
342
|
-
inline void setOnMapLoaded(const std::optional<std::function<void(const RNRegion& /* region */, const
|
|
342
|
+
inline void setOnMapLoaded(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>& onMapLoaded) noexcept override {
|
|
343
343
|
_swiftPart.setOnMapLoaded(onMapLoaded);
|
|
344
344
|
}
|
|
345
345
|
inline std::optional<std::function<void(const RNLocation& /* location */)>> getOnLocationUpdate() noexcept override {
|
|
@@ -475,25 +475,25 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
475
475
|
inline void setOnMyLocationButtonPress(const std::optional<std::function<void(bool /* pressed */)>>& onMyLocationButtonPress) noexcept override {
|
|
476
476
|
_swiftPart.setOnMyLocationButtonPress(onMyLocationButtonPress);
|
|
477
477
|
}
|
|
478
|
-
inline std::optional<std::function<void(const RNRegion& /* region */, const
|
|
478
|
+
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> getOnCameraChangeStart() noexcept override {
|
|
479
479
|
auto __result = _swiftPart.getOnCameraChangeStart();
|
|
480
480
|
return __result;
|
|
481
481
|
}
|
|
482
|
-
inline void setOnCameraChangeStart(const std::optional<std::function<void(const RNRegion& /* region */, const
|
|
482
|
+
inline void setOnCameraChangeStart(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>& onCameraChangeStart) noexcept override {
|
|
483
483
|
_swiftPart.setOnCameraChangeStart(onCameraChangeStart);
|
|
484
484
|
}
|
|
485
|
-
inline std::optional<std::function<void(const RNRegion& /* region */, const
|
|
485
|
+
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> getOnCameraChange() noexcept override {
|
|
486
486
|
auto __result = _swiftPart.getOnCameraChange();
|
|
487
487
|
return __result;
|
|
488
488
|
}
|
|
489
|
-
inline void setOnCameraChange(const std::optional<std::function<void(const RNRegion& /* region */, const
|
|
489
|
+
inline void setOnCameraChange(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>& onCameraChange) noexcept override {
|
|
490
490
|
_swiftPart.setOnCameraChange(onCameraChange);
|
|
491
491
|
}
|
|
492
|
-
inline std::optional<std::function<void(const RNRegion& /* region */, const
|
|
492
|
+
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> getOnCameraChangeComplete() noexcept override {
|
|
493
493
|
auto __result = _swiftPart.getOnCameraChangeComplete();
|
|
494
494
|
return __result;
|
|
495
495
|
}
|
|
496
|
-
inline void setOnCameraChangeComplete(const std::optional<std::function<void(const RNRegion& /* region */, const
|
|
496
|
+
inline void setOnCameraChangeComplete(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>& onCameraChangeComplete) noexcept override {
|
|
497
497
|
_swiftPart.setOnCameraChangeComplete(onCameraChangeComplete);
|
|
498
498
|
}
|
|
499
499
|
|
|
@@ -511,7 +511,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
511
511
|
std::rethrow_exception(__result.error());
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
-
inline void setCamera(const
|
|
514
|
+
inline void setCamera(const RNCameraUpdate& camera, std::optional<bool> animated, std::optional<double> durationMs) override {
|
|
515
515
|
auto __result = _swiftPart.setCamera(std::forward<decltype(camera)>(camera), animated, durationMs);
|
|
516
516
|
if (__result.hasError()) [[unlikely]] {
|
|
517
517
|
std::rethrow_exception(__result.error());
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// Func_void_RNRegion_RNCamera.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
@@ -9,20 +9,20 @@ import NitroModules
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Wraps a Swift `(_ region: RNRegion, _ camera:
|
|
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`.
|
|
14
14
|
*/
|
|
15
|
-
public final class
|
|
15
|
+
public final class Func_void_RNRegion_RNCamera {
|
|
16
16
|
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
|
-
private let closure: (_ region: RNRegion, _ camera:
|
|
18
|
+
private let closure: (_ region: RNRegion, _ camera: RNCamera) -> Void
|
|
19
19
|
|
|
20
|
-
public init(_ closure: @escaping (_ region: RNRegion, _ camera:
|
|
20
|
+
public init(_ closure: @escaping (_ region: RNRegion, _ camera: RNCamera) -> Void) {
|
|
21
21
|
self.closure = closure
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@inline(__always)
|
|
25
|
-
public func call(region: RNRegion, camera:
|
|
25
|
+
public func call(region: RNRegion, camera: RNCamera) -> Void {
|
|
26
26
|
self.closure(region, camera)
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -36,12 +36,12 @@ public final class Func_void_RNRegion_RNCameraChange {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* Casts an unsafe pointer to a `
|
|
40
|
-
* The pointer has to be a retained opaque `Unmanaged<
|
|
39
|
+
* Casts an unsafe pointer to a `Func_void_RNRegion_RNCamera`.
|
|
40
|
+
* The pointer has to be a retained opaque `Unmanaged<Func_void_RNRegion_RNCamera>`.
|
|
41
41
|
* This removes one strong reference from the object!
|
|
42
42
|
*/
|
|
43
43
|
@inline(__always)
|
|
44
|
-
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) ->
|
|
45
|
-
return Unmanaged<
|
|
44
|
+
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_RNRegion_RNCamera {
|
|
45
|
+
return Unmanaged<Func_void_RNRegion_RNCamera>.fromOpaque(pointer).takeRetainedValue()
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// Func_void_RNRegion_RNCamera_bool.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
@@ -9,20 +9,20 @@ import NitroModules
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Wraps a Swift `(_ region: RNRegion, _ camera:
|
|
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`.
|
|
14
14
|
*/
|
|
15
|
-
public final class
|
|
15
|
+
public final class Func_void_RNRegion_RNCamera_bool {
|
|
16
16
|
public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
17
|
|
|
18
|
-
private let closure: (_ region: RNRegion, _ camera:
|
|
18
|
+
private let closure: (_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void
|
|
19
19
|
|
|
20
|
-
public init(_ closure: @escaping (_ region: RNRegion, _ camera:
|
|
20
|
+
public init(_ closure: @escaping (_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void) {
|
|
21
21
|
self.closure = closure
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@inline(__always)
|
|
25
|
-
public func call(region: RNRegion, camera:
|
|
25
|
+
public func call(region: RNRegion, camera: RNCamera, isGesture: Bool) -> Void {
|
|
26
26
|
self.closure(region, camera, isGesture)
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -36,12 +36,12 @@ public final class Func_void_RNRegion_RNCameraChange_bool {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* Casts an unsafe pointer to a `
|
|
40
|
-
* The pointer has to be a retained opaque `Unmanaged<
|
|
39
|
+
* Casts an unsafe pointer to a `Func_void_RNRegion_RNCamera_bool`.
|
|
40
|
+
* The pointer has to be a retained opaque `Unmanaged<Func_void_RNRegion_RNCamera_bool>`.
|
|
41
41
|
* This removes one strong reference from the object!
|
|
42
42
|
*/
|
|
43
43
|
@inline(__always)
|
|
44
|
-
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) ->
|
|
45
|
-
return Unmanaged<
|
|
44
|
+
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_RNRegion_RNCamera_bool {
|
|
45
|
+
return Unmanaged<Func_void_RNRegion_RNCamera_bool>.fromOpaque(pointer).takeRetainedValue()
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -32,7 +32,7 @@ public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridVie
|
|
|
32
32
|
var locationConfig: RNLocationConfig? { get set }
|
|
33
33
|
var onMapError: ((_ error: RNMapErrorCode) -> Void)? { get set }
|
|
34
34
|
var onMapReady: ((_ ready: Bool) -> Void)? { get set }
|
|
35
|
-
var onMapLoaded: ((_ region: RNRegion, _ camera:
|
|
35
|
+
var onMapLoaded: ((_ region: RNRegion, _ camera: RNCamera) -> Void)? { get set }
|
|
36
36
|
var onLocationUpdate: ((_ location: RNLocation) -> Void)? { get set }
|
|
37
37
|
var onLocationError: ((_ error: RNLocationErrorCode) -> Void)? { get set }
|
|
38
38
|
var onMapPress: ((_ coordinate: RNLatLng) -> Void)? { get set }
|
|
@@ -52,14 +52,14 @@ public protocol HybridRNGoogleMapsPlusViewSpec_protocol: HybridObject, HybridVie
|
|
|
52
52
|
var onInfoWindowLongPress: ((_ id: String) -> Void)? { get set }
|
|
53
53
|
var onMyLocationPress: ((_ location: RNLocation) -> Void)? { get set }
|
|
54
54
|
var onMyLocationButtonPress: ((_ pressed: Bool) -> Void)? { get set }
|
|
55
|
-
var onCameraChangeStart: ((_ region: RNRegion, _ camera:
|
|
56
|
-
var onCameraChange: ((_ region: RNRegion, _ camera:
|
|
57
|
-
var onCameraChangeComplete: ((_ region: RNRegion, _ camera:
|
|
55
|
+
var onCameraChangeStart: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
|
|
56
|
+
var onCameraChange: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
|
|
57
|
+
var onCameraChangeComplete: ((_ region: RNRegion, _ camera: RNCamera, _ isGesture: Bool) -> Void)? { get set }
|
|
58
58
|
|
|
59
59
|
// Methods
|
|
60
60
|
func showMarkerInfoWindow(id: String) throws -> Void
|
|
61
61
|
func hideMarkerInfoWindow(id: String) throws -> Void
|
|
62
|
-
func setCamera(camera:
|
|
62
|
+
func setCamera(camera: RNCameraUpdate, animated: Bool?, durationMs: Double?) throws -> Void
|
|
63
63
|
func setCameraToCoordinates(coordinates: [RNLatLng], padding: RNMapPadding?, animated: Bool?, durationMs: Double?) throws -> Void
|
|
64
64
|
func setCameraBounds(bounds: RNLatLngBounds?) throws -> Void
|
|
65
65
|
func animateToBounds(bounds: RNLatLngBounds, padding: Double?, durationMs: Double?, lockBounds: Bool?) throws -> Void
|