react-native-google-maps-plus 1.7.0 → 1.8.0-dev.1
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/build.gradle +1 -1
- package/android/gradle.properties +2 -1
- package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +4 -4
- package/android/src/main/java/com/rngooglemapsplus/MapCircleBuilder.kt +2 -3
- package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +51 -54
- package/android/src/main/java/com/rngooglemapsplus/MapPolygonBuilder.kt +6 -23
- package/android/src/main/java/com/rngooglemapsplus/MapPolylineBuilder.kt.kt +12 -39
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +7 -5
- package/android/src/main/java/com/rngooglemapsplus/extensions/CameraPositionExtension.kt +3 -2
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNLineCapTypeExtension.kt +14 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNLineJoinTypeExtension.kt +12 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNMapCircleExtension.kt +7 -1
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNMarkerExtension.kt +54 -17
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNPolygonExtension.kt +31 -1
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNPolylineExtension.kt +6 -1
- package/ios/GoogleMapViewImpl.swift +8 -5
- package/ios/LocationHandler.swift +3 -1
- package/ios/MapCircleBuilder.swift +2 -3
- package/ios/MapHelper.swift +3 -5
- package/ios/MapMarkerBuilder.swift +108 -105
- package/ios/MapPolygonBuilder.swift +6 -41
- package/ios/MapPolylineBuilder.swift +2 -10
- package/ios/RNGoogleMapsPlusView.swift +31 -25
- package/ios/extensions/GMSCameraPosition+Extension.swift +2 -2
- package/ios/extensions/RNCircle+Extension.swift +14 -5
- package/ios/extensions/RNLatLng+Extension.swift +11 -0
- package/ios/extensions/RNLineCapType+Extension.swift +10 -0
- package/ios/extensions/RNLineJoinType+Extension.swift +11 -0
- package/ios/extensions/RNMarker+Extension.swift +43 -12
- package/ios/extensions/RNPolygon+Extension.swift.swift +50 -21
- package/ios/extensions/RNPolyline+Extension.swift.swift +15 -26
- package/ios/extensions/SVGKImage+Extension.swift +22 -0
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +5 -5
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +7 -1
- 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_RNCamera.hpp → JFunc_void_RNRegion_RNCameraChange.hpp} +21 -22
- package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCameraChange_bool.hpp +82 -0
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +42 -38
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +8 -8
- package/nitrogen/generated/android/c++/JRNCameraChange.hpp +70 -0
- package/nitrogen/generated/android/c++/JRNInitialProps.hpp +7 -3
- package/nitrogen/generated/android/c++/JRNMarker.hpp +1 -5
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_RNRegion_RNCamera.kt → Func_void_RNRegion_RNCameraChange.kt} +9 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_RNRegion_RNCamera_bool.kt → Func_void_RNRegion_RNCameraChange_bool.kt} +9 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +12 -12
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNCameraChange.kt +46 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNInitialProps.kt +6 -3
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +2 -5
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +8 -8
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +39 -36
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +3 -0
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +11 -8
- package/nitrogen/generated/ios/swift/{Func_void_RNRegion_RNCamera.swift → Func_void_RNRegion_RNCameraChange.swift} +10 -10
- package/nitrogen/generated/ios/swift/{Func_void_RNRegion_RNCamera_bool.swift → Func_void_RNRegion_RNCameraChange_bool.swift} +10 -10
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +4 -4
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +44 -44
- package/nitrogen/generated/ios/swift/RNCameraChange.swift +68 -0
- package/nitrogen/generated/ios/swift/RNInitialProps.swift +31 -1
- package/nitrogen/generated/ios/swift/RNMarker.swift +1 -31
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +14 -11
- package/nitrogen/generated/shared/c++/RNCameraChange.hpp +88 -0
- package/nitrogen/generated/shared/c++/RNInitialProps.hpp +6 -2
- package/nitrogen/generated/shared/c++/RNMarker.hpp +1 -5
- 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 +5 -4
- package/src/types.ts +8 -1
- package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCamera_bool.hpp +0 -83
|
@@ -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 RNCameraChange& /* camera */)>
|
|
66
|
+
Func_void_RNRegion_RNCameraChange create_Func_void_RNRegion_RNCameraChange(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
67
|
+
auto swiftClosure = RNGoogleMapsPlus::Func_void_RNRegion_RNCameraChange::fromUnsafe(swiftClosureWrapper);
|
|
68
|
+
return [swiftClosure = std::move(swiftClosure)](const RNRegion& region, const RNCameraChange& 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 RNCameraChange& /* camera */, bool /* isGesture */)>
|
|
138
|
+
Func_void_RNRegion_RNCameraChange_bool create_Func_void_RNRegion_RNCameraChange_bool(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
139
|
+
auto swiftClosure = RNGoogleMapsPlus::Func_void_RNRegion_RNCameraChange_bool::fromUnsafe(swiftClosureWrapper);
|
|
140
|
+
return [swiftClosure = std::move(swiftClosure)](const RNRegion& region, const RNCameraChange& camera, bool isGesture) mutable -> void {
|
|
141
141
|
swiftClosure.call(region, camera, isGesture);
|
|
142
142
|
};
|
|
143
143
|
}
|
|
@@ -18,6 +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 `RNCameraChange` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNCameraChange; }
|
|
21
23
|
// Forward declaration of `RNCamera` to properly resolve imports.
|
|
22
24
|
namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
|
|
23
25
|
// Forward declaration of `RNCircle` to properly resolve imports.
|
|
@@ -106,6 +108,7 @@ namespace RNGoogleMapsPlus { class HybridRNGoogleMapsPlusViewSpec_cxx; }
|
|
|
106
108
|
#include "RNAndroidLocationPermissionResult.hpp"
|
|
107
109
|
#include "RNAndroidLocationPriority.hpp"
|
|
108
110
|
#include "RNCamera.hpp"
|
|
111
|
+
#include "RNCameraChange.hpp"
|
|
109
112
|
#include "RNCircle.hpp"
|
|
110
113
|
#include "RNHeatmap.hpp"
|
|
111
114
|
#include "RNHeatmapGradient.hpp"
|
|
@@ -926,40 +929,40 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
926
929
|
return *optional;
|
|
927
930
|
}
|
|
928
931
|
|
|
929
|
-
// pragma MARK: std::function<void(const RNRegion& /* region */, const
|
|
932
|
+
// pragma MARK: std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */)>
|
|
930
933
|
/**
|
|
931
|
-
* Specialized version of `std::function<void(const RNRegion&, const
|
|
934
|
+
* Specialized version of `std::function<void(const RNRegion&, const RNCameraChange&)>`.
|
|
932
935
|
*/
|
|
933
|
-
using
|
|
936
|
+
using Func_void_RNRegion_RNCameraChange = std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */)>;
|
|
934
937
|
/**
|
|
935
|
-
* Wrapper class for a `std::function<void(const RNRegion& / * region * /, const
|
|
938
|
+
* Wrapper class for a `std::function<void(const RNRegion& / * region * /, const RNCameraChange& / * camera * /)>`, this can be used from Swift.
|
|
936
939
|
*/
|
|
937
|
-
class
|
|
940
|
+
class Func_void_RNRegion_RNCameraChange_Wrapper final {
|
|
938
941
|
public:
|
|
939
|
-
explicit
|
|
940
|
-
inline void call(RNRegion region,
|
|
942
|
+
explicit Func_void_RNRegion_RNCameraChange_Wrapper(std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */)>&& func): _function(std::make_unique<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */)>>(std::move(func))) {}
|
|
943
|
+
inline void call(RNRegion region, RNCameraChange camera) const noexcept {
|
|
941
944
|
_function->operator()(region, camera);
|
|
942
945
|
}
|
|
943
946
|
private:
|
|
944
|
-
std::unique_ptr<std::function<void(const RNRegion& /* region */, const
|
|
947
|
+
std::unique_ptr<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */)>> _function;
|
|
945
948
|
} SWIFT_NONCOPYABLE;
|
|
946
|
-
|
|
947
|
-
inline
|
|
948
|
-
return
|
|
949
|
+
Func_void_RNRegion_RNCameraChange create_Func_void_RNRegion_RNCameraChange(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
950
|
+
inline Func_void_RNRegion_RNCameraChange_Wrapper wrap_Func_void_RNRegion_RNCameraChange(Func_void_RNRegion_RNCameraChange value) noexcept {
|
|
951
|
+
return Func_void_RNRegion_RNCameraChange_Wrapper(std::move(value));
|
|
949
952
|
}
|
|
950
953
|
|
|
951
|
-
// pragma MARK: std::optional<std::function<void(const RNRegion& /* region */, const
|
|
954
|
+
// pragma MARK: std::optional<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */)>>
|
|
952
955
|
/**
|
|
953
|
-
* 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 RNCameraChange& / * camera * /)>>`.
|
|
954
957
|
*/
|
|
955
|
-
using
|
|
956
|
-
inline std::optional<std::function<void(const RNRegion& /* region */, const
|
|
957
|
-
return std::optional<std::function<void(const RNRegion& /* region */, const
|
|
958
|
+
using std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera______ = std::optional<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */)>>;
|
|
959
|
+
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */)>> create_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera______(const std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */)>& value) noexcept {
|
|
960
|
+
return std::optional<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */)>>(value);
|
|
958
961
|
}
|
|
959
|
-
inline bool
|
|
962
|
+
inline bool has_value_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera______(const std::optional<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */)>>& optional) noexcept {
|
|
960
963
|
return optional.has_value();
|
|
961
964
|
}
|
|
962
|
-
inline std::function<void(const RNRegion& /* region */, const
|
|
965
|
+
inline std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */)> get_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera______(const std::optional<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */)>>& optional) noexcept {
|
|
963
966
|
return *optional;
|
|
964
967
|
}
|
|
965
968
|
|
|
@@ -1315,40 +1318,40 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
|
|
|
1315
1318
|
return *optional;
|
|
1316
1319
|
}
|
|
1317
1320
|
|
|
1318
|
-
// pragma MARK: std::function<void(const RNRegion& /* region */, const
|
|
1321
|
+
// pragma MARK: std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */, bool /* isGesture */)>
|
|
1319
1322
|
/**
|
|
1320
|
-
* Specialized version of `std::function<void(const RNRegion&, const
|
|
1323
|
+
* Specialized version of `std::function<void(const RNRegion&, const RNCameraChange&, bool)>`.
|
|
1321
1324
|
*/
|
|
1322
|
-
using
|
|
1325
|
+
using Func_void_RNRegion_RNCameraChange_bool = std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */, bool /* isGesture */)>;
|
|
1323
1326
|
/**
|
|
1324
|
-
* Wrapper class for a `std::function<void(const RNRegion& / * region * /, const
|
|
1327
|
+
* Wrapper class for a `std::function<void(const RNRegion& / * region * /, const RNCameraChange& / * camera * /, bool / * isGesture * /)>`, this can be used from Swift.
|
|
1325
1328
|
*/
|
|
1326
|
-
class
|
|
1329
|
+
class Func_void_RNRegion_RNCameraChange_bool_Wrapper final {
|
|
1327
1330
|
public:
|
|
1328
|
-
explicit
|
|
1329
|
-
inline void call(RNRegion region,
|
|
1331
|
+
explicit Func_void_RNRegion_RNCameraChange_bool_Wrapper(std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */, bool /* isGesture */)>&& func): _function(std::make_unique<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */, bool /* isGesture */)>>(std::move(func))) {}
|
|
1332
|
+
inline void call(RNRegion region, RNCameraChange camera, bool isGesture) const noexcept {
|
|
1330
1333
|
_function->operator()(region, camera, isGesture);
|
|
1331
1334
|
}
|
|
1332
1335
|
private:
|
|
1333
|
-
std::unique_ptr<std::function<void(const RNRegion& /* region */, const
|
|
1336
|
+
std::unique_ptr<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */, bool /* isGesture */)>> _function;
|
|
1334
1337
|
} SWIFT_NONCOPYABLE;
|
|
1335
|
-
|
|
1336
|
-
inline
|
|
1337
|
-
return
|
|
1338
|
+
Func_void_RNRegion_RNCameraChange_bool create_Func_void_RNRegion_RNCameraChange_bool(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1339
|
+
inline Func_void_RNRegion_RNCameraChange_bool_Wrapper wrap_Func_void_RNRegion_RNCameraChange_bool(Func_void_RNRegion_RNCameraChange_bool value) noexcept {
|
|
1340
|
+
return Func_void_RNRegion_RNCameraChange_bool_Wrapper(std::move(value));
|
|
1338
1341
|
}
|
|
1339
1342
|
|
|
1340
|
-
// pragma MARK: std::optional<std::function<void(const RNRegion& /* region */, const
|
|
1343
|
+
// pragma MARK: std::optional<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */, bool /* isGesture */)>>
|
|
1341
1344
|
/**
|
|
1342
|
-
* 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 RNCameraChange& / * camera * /, bool / * isGesture * /)>>`.
|
|
1343
1346
|
*/
|
|
1344
|
-
using
|
|
1345
|
-
inline std::optional<std::function<void(const RNRegion& /* region */, const
|
|
1346
|
-
return std::optional<std::function<void(const RNRegion& /* region */, const
|
|
1347
|
+
using std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______ = std::optional<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */, bool /* isGesture */)>>;
|
|
1348
|
+
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */, bool /* isGesture */)>> create_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______(const std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */, bool /* isGesture */)>& value) noexcept {
|
|
1349
|
+
return std::optional<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */, bool /* isGesture */)>>(value);
|
|
1347
1350
|
}
|
|
1348
|
-
inline bool
|
|
1351
|
+
inline bool has_value_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______(const std::optional<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */, bool /* isGesture */)>>& optional) noexcept {
|
|
1349
1352
|
return optional.has_value();
|
|
1350
1353
|
}
|
|
1351
|
-
inline std::function<void(const RNRegion& /* region */, const
|
|
1354
|
+
inline std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */, bool /* isGesture */)> get_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______(const std::optional<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */, bool /* isGesture */)>>& optional) noexcept {
|
|
1352
1355
|
return *optional;
|
|
1353
1356
|
}
|
|
1354
1357
|
|
|
@@ -18,6 +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 `RNCameraChange` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNCameraChange; }
|
|
21
23
|
// Forward declaration of `RNCamera` to properly resolve imports.
|
|
22
24
|
namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
|
|
23
25
|
// Forward declaration of `RNCircle` to properly resolve imports.
|
|
@@ -106,6 +108,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNUserInterfaceStyle; }
|
|
|
106
108
|
#include "RNAndroidLocationPermissionResult.hpp"
|
|
107
109
|
#include "RNAndroidLocationPriority.hpp"
|
|
108
110
|
#include "RNCamera.hpp"
|
|
111
|
+
#include "RNCameraChange.hpp"
|
|
109
112
|
#include "RNCircle.hpp"
|
|
110
113
|
#include "RNHeatmap.hpp"
|
|
111
114
|
#include "RNHeatmapGradient.hpp"
|
|
@@ -70,6 +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 `RNCameraChange` to properly resolve imports.
|
|
74
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNCameraChange; }
|
|
73
75
|
// Forward declaration of `RNLatLngBounds` to properly resolve imports.
|
|
74
76
|
namespace margelo::nitro::rngooglemapsplus { struct RNLatLngBounds; }
|
|
75
77
|
// Forward declaration of `RNLocation` to properly resolve imports.
|
|
@@ -132,6 +134,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
|
132
134
|
#include "RNMapErrorCode.hpp"
|
|
133
135
|
#include <functional>
|
|
134
136
|
#include "RNRegion.hpp"
|
|
137
|
+
#include "RNCameraChange.hpp"
|
|
135
138
|
#include "RNLatLngBounds.hpp"
|
|
136
139
|
#include "RNLocation.hpp"
|
|
137
140
|
#include "RNLocationAndroid.hpp"
|
|
@@ -332,11 +335,11 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
332
335
|
inline void setOnMapReady(const std::optional<std::function<void(bool /* ready */)>>& onMapReady) noexcept override {
|
|
333
336
|
_swiftPart.setOnMapReady(onMapReady);
|
|
334
337
|
}
|
|
335
|
-
inline std::optional<std::function<void(const RNRegion& /* region */, const
|
|
338
|
+
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */)>> getOnMapLoaded() noexcept override {
|
|
336
339
|
auto __result = _swiftPart.getOnMapLoaded();
|
|
337
340
|
return __result;
|
|
338
341
|
}
|
|
339
|
-
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 RNCameraChange& /* camera */)>>& onMapLoaded) noexcept override {
|
|
340
343
|
_swiftPart.setOnMapLoaded(onMapLoaded);
|
|
341
344
|
}
|
|
342
345
|
inline std::optional<std::function<void(const RNLocation& /* location */)>> getOnLocationUpdate() noexcept override {
|
|
@@ -472,25 +475,25 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
472
475
|
inline void setOnMyLocationButtonPress(const std::optional<std::function<void(bool /* pressed */)>>& onMyLocationButtonPress) noexcept override {
|
|
473
476
|
_swiftPart.setOnMyLocationButtonPress(onMyLocationButtonPress);
|
|
474
477
|
}
|
|
475
|
-
inline std::optional<std::function<void(const RNRegion& /* region */, const
|
|
478
|
+
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */, bool /* isGesture */)>> getOnCameraChangeStart() noexcept override {
|
|
476
479
|
auto __result = _swiftPart.getOnCameraChangeStart();
|
|
477
480
|
return __result;
|
|
478
481
|
}
|
|
479
|
-
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 RNCameraChange& /* camera */, bool /* isGesture */)>>& onCameraChangeStart) noexcept override {
|
|
480
483
|
_swiftPart.setOnCameraChangeStart(onCameraChangeStart);
|
|
481
484
|
}
|
|
482
|
-
inline std::optional<std::function<void(const RNRegion& /* region */, const
|
|
485
|
+
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */, bool /* isGesture */)>> getOnCameraChange() noexcept override {
|
|
483
486
|
auto __result = _swiftPart.getOnCameraChange();
|
|
484
487
|
return __result;
|
|
485
488
|
}
|
|
486
|
-
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 RNCameraChange& /* camera */, bool /* isGesture */)>>& onCameraChange) noexcept override {
|
|
487
490
|
_swiftPart.setOnCameraChange(onCameraChange);
|
|
488
491
|
}
|
|
489
|
-
inline std::optional<std::function<void(const RNRegion& /* region */, const
|
|
492
|
+
inline std::optional<std::function<void(const RNRegion& /* region */, const RNCameraChange& /* camera */, bool /* isGesture */)>> getOnCameraChangeComplete() noexcept override {
|
|
490
493
|
auto __result = _swiftPart.getOnCameraChangeComplete();
|
|
491
494
|
return __result;
|
|
492
495
|
}
|
|
493
|
-
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 RNCameraChange& /* camera */, bool /* isGesture */)>>& onCameraChangeComplete) noexcept override {
|
|
494
497
|
_swiftPart.setOnCameraChangeComplete(onCameraChangeComplete);
|
|
495
498
|
}
|
|
496
499
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// Func_void_RNRegion_RNCameraChange.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: RNCameraChange) -> 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_RNCameraChange {
|
|
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: RNCameraChange) -> Void
|
|
19
19
|
|
|
20
|
-
public init(_ closure: @escaping (_ region: RNRegion, _ camera:
|
|
20
|
+
public init(_ closure: @escaping (_ region: RNRegion, _ camera: RNCameraChange) -> 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: RNCameraChange) -> Void {
|
|
26
26
|
self.closure(region, camera)
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -36,12 +36,12 @@ public final class Func_void_RNRegion_RNCamera {
|
|
|
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_RNCameraChange`.
|
|
40
|
+
* The pointer has to be a retained opaque `Unmanaged<Func_void_RNRegion_RNCameraChange>`.
|
|
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_RNCameraChange {
|
|
45
|
+
return Unmanaged<Func_void_RNRegion_RNCameraChange>.fromOpaque(pointer).takeRetainedValue()
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// Func_void_RNRegion_RNCameraChange_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: RNCameraChange, _ 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_RNCameraChange_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: RNCameraChange, _ isGesture: Bool) -> Void
|
|
19
19
|
|
|
20
|
-
public init(_ closure: @escaping (_ region: RNRegion, _ camera:
|
|
20
|
+
public init(_ closure: @escaping (_ region: RNRegion, _ camera: RNCameraChange, _ 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: RNCameraChange, isGesture: Bool) -> Void {
|
|
26
26
|
self.closure(region, camera, isGesture)
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -36,12 +36,12 @@ public final class Func_void_RNRegion_RNCamera_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_RNCameraChange_bool`.
|
|
40
|
+
* The pointer has to be a retained opaque `Unmanaged<Func_void_RNRegion_RNCameraChange_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_RNCameraChange_bool {
|
|
45
|
+
return Unmanaged<Func_void_RNRegion_RNCameraChange_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: RNCameraChange) -> 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,9 +52,9 @@ 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: RNCameraChange, _ isGesture: Bool) -> Void)? { get set }
|
|
56
|
+
var onCameraChange: ((_ region: RNRegion, _ camera: RNCameraChange, _ isGesture: Bool) -> Void)? { get set }
|
|
57
|
+
var onCameraChangeComplete: ((_ region: RNRegion, _ camera: RNCameraChange, _ isGesture: Bool) -> Void)? { get set }
|
|
58
58
|
|
|
59
59
|
// Methods
|
|
60
60
|
func showMarkerInfoWindow(id: String) throws -> Void
|
|
@@ -619,14 +619,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
|
|
622
|
-
public final var onMapLoaded: bridge.
|
|
622
|
+
public final var onMapLoaded: bridge.std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera______ {
|
|
623
623
|
@inline(__always)
|
|
624
624
|
get {
|
|
625
|
-
return { () -> bridge.
|
|
625
|
+
return { () -> bridge.std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera______ in
|
|
626
626
|
if let __unwrappedValue = self.__implementation.onMapLoaded {
|
|
627
|
-
return bridge.
|
|
628
|
-
let __closureWrapper =
|
|
629
|
-
return bridge.
|
|
627
|
+
return bridge.create_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera______({ () -> bridge.Func_void_RNRegion_RNCameraChange in
|
|
628
|
+
let __closureWrapper = Func_void_RNRegion_RNCameraChange(__unwrappedValue)
|
|
629
|
+
return bridge.create_Func_void_RNRegion_RNCameraChange(__closureWrapper.toUnsafe())
|
|
630
630
|
}())
|
|
631
631
|
} else {
|
|
632
632
|
return .init()
|
|
@@ -635,12 +635,12 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
635
635
|
}
|
|
636
636
|
@inline(__always)
|
|
637
637
|
set {
|
|
638
|
-
self.__implementation.onMapLoaded = { () -> ((_ region: RNRegion, _ camera:
|
|
639
|
-
if bridge.
|
|
640
|
-
let __unwrapped = bridge.
|
|
641
|
-
return { () -> (RNRegion,
|
|
642
|
-
let __wrappedFunction = bridge.
|
|
643
|
-
return { (__region: RNRegion, __camera:
|
|
638
|
+
self.__implementation.onMapLoaded = { () -> ((_ region: RNRegion, _ camera: RNCameraChange) -> Void)? in
|
|
639
|
+
if bridge.has_value_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera______(newValue) {
|
|
640
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera______(newValue)
|
|
641
|
+
return { () -> (RNRegion, RNCameraChange) -> Void in
|
|
642
|
+
let __wrappedFunction = bridge.wrap_Func_void_RNRegion_RNCameraChange(__unwrapped)
|
|
643
|
+
return { (__region: RNRegion, __camera: RNCameraChange) -> Void in
|
|
644
644
|
__wrappedFunction.call(__region, __camera)
|
|
645
645
|
}
|
|
646
646
|
}()
|
|
@@ -1259,14 +1259,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
}
|
|
1261
1261
|
|
|
1262
|
-
public final var onCameraChangeStart: bridge.
|
|
1262
|
+
public final var onCameraChangeStart: bridge.std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______ {
|
|
1263
1263
|
@inline(__always)
|
|
1264
1264
|
get {
|
|
1265
|
-
return { () -> bridge.
|
|
1265
|
+
return { () -> bridge.std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______ in
|
|
1266
1266
|
if let __unwrappedValue = self.__implementation.onCameraChangeStart {
|
|
1267
|
-
return bridge.
|
|
1268
|
-
let __closureWrapper =
|
|
1269
|
-
return bridge.
|
|
1267
|
+
return bridge.create_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______({ () -> bridge.Func_void_RNRegion_RNCameraChange_bool in
|
|
1268
|
+
let __closureWrapper = Func_void_RNRegion_RNCameraChange_bool(__unwrappedValue)
|
|
1269
|
+
return bridge.create_Func_void_RNRegion_RNCameraChange_bool(__closureWrapper.toUnsafe())
|
|
1270
1270
|
}())
|
|
1271
1271
|
} else {
|
|
1272
1272
|
return .init()
|
|
@@ -1275,12 +1275,12 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
@inline(__always)
|
|
1277
1277
|
set {
|
|
1278
|
-
self.__implementation.onCameraChangeStart = { () -> ((_ region: RNRegion, _ camera:
|
|
1279
|
-
if bridge.
|
|
1280
|
-
let __unwrapped = bridge.
|
|
1281
|
-
return { () -> (RNRegion,
|
|
1282
|
-
let __wrappedFunction = bridge.
|
|
1283
|
-
return { (__region: RNRegion, __camera:
|
|
1278
|
+
self.__implementation.onCameraChangeStart = { () -> ((_ region: RNRegion, _ camera: RNCameraChange, _ isGesture: Bool) -> Void)? in
|
|
1279
|
+
if bridge.has_value_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______(newValue) {
|
|
1280
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______(newValue)
|
|
1281
|
+
return { () -> (RNRegion, RNCameraChange, Bool) -> Void in
|
|
1282
|
+
let __wrappedFunction = bridge.wrap_Func_void_RNRegion_RNCameraChange_bool(__unwrapped)
|
|
1283
|
+
return { (__region: RNRegion, __camera: RNCameraChange, __isGesture: Bool) -> Void in
|
|
1284
1284
|
__wrappedFunction.call(__region, __camera, __isGesture)
|
|
1285
1285
|
}
|
|
1286
1286
|
}()
|
|
@@ -1291,14 +1291,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
}
|
|
1293
1293
|
|
|
1294
|
-
public final var onCameraChange: bridge.
|
|
1294
|
+
public final var onCameraChange: bridge.std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______ {
|
|
1295
1295
|
@inline(__always)
|
|
1296
1296
|
get {
|
|
1297
|
-
return { () -> bridge.
|
|
1297
|
+
return { () -> bridge.std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______ in
|
|
1298
1298
|
if let __unwrappedValue = self.__implementation.onCameraChange {
|
|
1299
|
-
return bridge.
|
|
1300
|
-
let __closureWrapper =
|
|
1301
|
-
return bridge.
|
|
1299
|
+
return bridge.create_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______({ () -> bridge.Func_void_RNRegion_RNCameraChange_bool in
|
|
1300
|
+
let __closureWrapper = Func_void_RNRegion_RNCameraChange_bool(__unwrappedValue)
|
|
1301
|
+
return bridge.create_Func_void_RNRegion_RNCameraChange_bool(__closureWrapper.toUnsafe())
|
|
1302
1302
|
}())
|
|
1303
1303
|
} else {
|
|
1304
1304
|
return .init()
|
|
@@ -1307,12 +1307,12 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
@inline(__always)
|
|
1309
1309
|
set {
|
|
1310
|
-
self.__implementation.onCameraChange = { () -> ((_ region: RNRegion, _ camera:
|
|
1311
|
-
if bridge.
|
|
1312
|
-
let __unwrapped = bridge.
|
|
1313
|
-
return { () -> (RNRegion,
|
|
1314
|
-
let __wrappedFunction = bridge.
|
|
1315
|
-
return { (__region: RNRegion, __camera:
|
|
1310
|
+
self.__implementation.onCameraChange = { () -> ((_ region: RNRegion, _ camera: RNCameraChange, _ isGesture: Bool) -> Void)? in
|
|
1311
|
+
if bridge.has_value_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______(newValue) {
|
|
1312
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______(newValue)
|
|
1313
|
+
return { () -> (RNRegion, RNCameraChange, Bool) -> Void in
|
|
1314
|
+
let __wrappedFunction = bridge.wrap_Func_void_RNRegion_RNCameraChange_bool(__unwrapped)
|
|
1315
|
+
return { (__region: RNRegion, __camera: RNCameraChange, __isGesture: Bool) -> Void in
|
|
1316
1316
|
__wrappedFunction.call(__region, __camera, __isGesture)
|
|
1317
1317
|
}
|
|
1318
1318
|
}()
|
|
@@ -1323,14 +1323,14 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
1325
|
|
|
1326
|
-
public final var onCameraChangeComplete: bridge.
|
|
1326
|
+
public final var onCameraChangeComplete: bridge.std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______ {
|
|
1327
1327
|
@inline(__always)
|
|
1328
1328
|
get {
|
|
1329
|
-
return { () -> bridge.
|
|
1329
|
+
return { () -> bridge.std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______ in
|
|
1330
1330
|
if let __unwrappedValue = self.__implementation.onCameraChangeComplete {
|
|
1331
|
-
return bridge.
|
|
1332
|
-
let __closureWrapper =
|
|
1333
|
-
return bridge.
|
|
1331
|
+
return bridge.create_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______({ () -> bridge.Func_void_RNRegion_RNCameraChange_bool in
|
|
1332
|
+
let __closureWrapper = Func_void_RNRegion_RNCameraChange_bool(__unwrappedValue)
|
|
1333
|
+
return bridge.create_Func_void_RNRegion_RNCameraChange_bool(__closureWrapper.toUnsafe())
|
|
1334
1334
|
}())
|
|
1335
1335
|
} else {
|
|
1336
1336
|
return .init()
|
|
@@ -1339,12 +1339,12 @@ open class HybridRNGoogleMapsPlusViewSpec_cxx {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
@inline(__always)
|
|
1341
1341
|
set {
|
|
1342
|
-
self.__implementation.onCameraChangeComplete = { () -> ((_ region: RNRegion, _ camera:
|
|
1343
|
-
if bridge.
|
|
1344
|
-
let __unwrapped = bridge.
|
|
1345
|
-
return { () -> (RNRegion,
|
|
1346
|
-
let __wrappedFunction = bridge.
|
|
1347
|
-
return { (__region: RNRegion, __camera:
|
|
1342
|
+
self.__implementation.onCameraChangeComplete = { () -> ((_ region: RNRegion, _ camera: RNCameraChange, _ isGesture: Bool) -> Void)? in
|
|
1343
|
+
if bridge.has_value_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______(newValue) {
|
|
1344
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_RNRegion_____region_____const_RNCameraChange_____camera_____bool____isGesture______(newValue)
|
|
1345
|
+
return { () -> (RNRegion, RNCameraChange, Bool) -> Void in
|
|
1346
|
+
let __wrappedFunction = bridge.wrap_Func_void_RNRegion_RNCameraChange_bool(__unwrapped)
|
|
1347
|
+
return { (__region: RNRegion, __camera: RNCameraChange, __isGesture: Bool) -> Void in
|
|
1348
1348
|
__wrappedFunction.call(__region, __camera, __isGesture)
|
|
1349
1349
|
}
|
|
1350
1350
|
}()
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// RNCameraChange.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
|
+
* Represents an instance of `RNCameraChange`, backed by a C++ struct.
|
|
12
|
+
*/
|
|
13
|
+
public typealias RNCameraChange = margelo.nitro.rngooglemapsplus.RNCameraChange
|
|
14
|
+
|
|
15
|
+
public extension RNCameraChange {
|
|
16
|
+
private typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Create a new instance of `RNCameraChange`.
|
|
20
|
+
*/
|
|
21
|
+
init(center: RNLatLng, zoom: Double, bearing: Double, tilt: Double) {
|
|
22
|
+
self.init(center, zoom, bearing, tilt)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var center: RNLatLng {
|
|
26
|
+
@inline(__always)
|
|
27
|
+
get {
|
|
28
|
+
return self.__center
|
|
29
|
+
}
|
|
30
|
+
@inline(__always)
|
|
31
|
+
set {
|
|
32
|
+
self.__center = newValue
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
var zoom: Double {
|
|
37
|
+
@inline(__always)
|
|
38
|
+
get {
|
|
39
|
+
return self.__zoom
|
|
40
|
+
}
|
|
41
|
+
@inline(__always)
|
|
42
|
+
set {
|
|
43
|
+
self.__zoom = newValue
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
var bearing: Double {
|
|
48
|
+
@inline(__always)
|
|
49
|
+
get {
|
|
50
|
+
return self.__bearing
|
|
51
|
+
}
|
|
52
|
+
@inline(__always)
|
|
53
|
+
set {
|
|
54
|
+
self.__bearing = newValue
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
var tilt: Double {
|
|
59
|
+
@inline(__always)
|
|
60
|
+
get {
|
|
61
|
+
return self.__tilt
|
|
62
|
+
}
|
|
63
|
+
@inline(__always)
|
|
64
|
+
set {
|
|
65
|
+
self.__tilt = newValue
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|