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
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
// Forward declaration of `RNInitialProps` to properly resolve imports.
|
|
11
11
|
namespace margelo::nitro::rngooglemapsplus { struct RNInitialProps; }
|
|
12
|
-
// Forward declaration of `
|
|
13
|
-
namespace margelo::nitro::rngooglemapsplus { struct
|
|
12
|
+
// Forward declaration of `RNCameraUpdate` to properly resolve imports.
|
|
13
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNCameraUpdate; }
|
|
14
14
|
// Forward declaration of `RNLatLng` to properly resolve imports.
|
|
15
15
|
namespace margelo::nitro::rngooglemapsplus { struct RNLatLng; }
|
|
16
16
|
// Forward declaration of `RNMapUiSettings` to properly resolve imports.
|
|
@@ -65,8 +65,8 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
|
|
|
65
65
|
namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
|
|
66
66
|
// Forward declaration of `RNRegion` to properly resolve imports.
|
|
67
67
|
namespace margelo::nitro::rngooglemapsplus { struct RNRegion; }
|
|
68
|
-
// Forward declaration of `
|
|
69
|
-
namespace margelo::nitro::rngooglemapsplus { struct
|
|
68
|
+
// Forward declaration of `RNCamera` to properly resolve imports.
|
|
69
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNCamera; }
|
|
70
70
|
// Forward declaration of `RNLatLngBounds` to properly resolve imports.
|
|
71
71
|
namespace margelo::nitro::rngooglemapsplus { struct RNLatLngBounds; }
|
|
72
72
|
// Forward declaration of `RNLocation` to properly resolve imports.
|
|
@@ -100,8 +100,8 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotResultType; }
|
|
|
100
100
|
#include <optional>
|
|
101
101
|
#include "JRNInitialProps.hpp"
|
|
102
102
|
#include <string>
|
|
103
|
-
#include "
|
|
104
|
-
#include "
|
|
103
|
+
#include "RNCameraUpdate.hpp"
|
|
104
|
+
#include "JRNCameraUpdate.hpp"
|
|
105
105
|
#include "RNLatLng.hpp"
|
|
106
106
|
#include "JRNLatLng.hpp"
|
|
107
107
|
#include "RNMapUiSettings.hpp"
|
|
@@ -159,12 +159,12 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotResultType; }
|
|
|
159
159
|
#include "JRNMapErrorCode.hpp"
|
|
160
160
|
#include "JFunc_void_bool.hpp"
|
|
161
161
|
#include "RNRegion.hpp"
|
|
162
|
-
#include "
|
|
163
|
-
#include "
|
|
162
|
+
#include "RNCamera.hpp"
|
|
163
|
+
#include "JFunc_void_RNRegion_RNCamera.hpp"
|
|
164
164
|
#include "JRNRegion.hpp"
|
|
165
165
|
#include "RNLatLngBounds.hpp"
|
|
166
166
|
#include "JRNLatLngBounds.hpp"
|
|
167
|
-
#include "
|
|
167
|
+
#include "JRNCamera.hpp"
|
|
168
168
|
#include "RNLocation.hpp"
|
|
169
169
|
#include "JFunc_void_RNLocation.hpp"
|
|
170
170
|
#include "JRNLocation.hpp"
|
|
@@ -185,7 +185,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotResultType; }
|
|
|
185
185
|
#include "RNIndoorLevel.hpp"
|
|
186
186
|
#include "JRNIndoorLevel.hpp"
|
|
187
187
|
#include "JFunc_void_RNIndoorLevel.hpp"
|
|
188
|
-
#include "
|
|
188
|
+
#include "JFunc_void_RNRegion_RNCamera_bool.hpp"
|
|
189
189
|
#include <NitroModules/Promise.hpp>
|
|
190
190
|
#include <NitroModules/JPromise.hpp>
|
|
191
191
|
#include "RNLocationPermissionResult.hpp"
|
|
@@ -554,24 +554,24 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
554
554
|
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_bool::javaobject> /* onMapReady */)>("setOnMapReady_cxx");
|
|
555
555
|
method(_javaPart, onMapReady.has_value() ? JFunc_void_bool_cxx::fromCpp(onMapReady.value()) : nullptr);
|
|
556
556
|
}
|
|
557
|
-
std::optional<std::function<void(const RNRegion& /* region */, const
|
|
558
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
557
|
+
std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>> JHybridRNGoogleMapsPlusViewSpec::getOnMapLoaded() {
|
|
558
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNRegion_RNCamera::javaobject>()>("getOnMapLoaded_cxx");
|
|
559
559
|
auto __result = method(_javaPart);
|
|
560
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const RNRegion& /* region */, const
|
|
561
|
-
if (__result->isInstanceOf(
|
|
562
|
-
auto downcast = jni::static_ref_cast<
|
|
560
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)> {
|
|
561
|
+
if (__result->isInstanceOf(JFunc_void_RNRegion_RNCamera_cxx::javaClassStatic())) [[likely]] {
|
|
562
|
+
auto downcast = jni::static_ref_cast<JFunc_void_RNRegion_RNCamera_cxx::javaobject>(__result);
|
|
563
563
|
return downcast->cthis()->getFunction();
|
|
564
564
|
} else {
|
|
565
565
|
auto __resultRef = jni::make_global(__result);
|
|
566
|
-
return [__resultRef](RNRegion region,
|
|
566
|
+
return [__resultRef](RNRegion region, RNCamera camera) -> void {
|
|
567
567
|
return __resultRef->invoke(region,camera);
|
|
568
568
|
};
|
|
569
569
|
}
|
|
570
570
|
}()) : std::nullopt;
|
|
571
571
|
}
|
|
572
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnMapLoaded(const std::optional<std::function<void(const RNRegion& /* region */, const
|
|
573
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
574
|
-
method(_javaPart, onMapLoaded.has_value() ?
|
|
572
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnMapLoaded(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>& onMapLoaded) {
|
|
573
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_RNRegion_RNCamera::javaobject> /* onMapLoaded */)>("setOnMapLoaded_cxx");
|
|
574
|
+
method(_javaPart, onMapLoaded.has_value() ? JFunc_void_RNRegion_RNCamera_cxx::fromCpp(onMapLoaded.value()) : nullptr);
|
|
575
575
|
}
|
|
576
576
|
std::optional<std::function<void(const RNLocation& /* location */)>> JHybridRNGoogleMapsPlusViewSpec::getOnLocationUpdate() {
|
|
577
577
|
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNLocation::javaobject>()>("getOnLocationUpdate_cxx");
|
|
@@ -934,62 +934,62 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
934
934
|
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_bool::javaobject> /* onMyLocationButtonPress */)>("setOnMyLocationButtonPress_cxx");
|
|
935
935
|
method(_javaPart, onMyLocationButtonPress.has_value() ? JFunc_void_bool_cxx::fromCpp(onMyLocationButtonPress.value()) : nullptr);
|
|
936
936
|
}
|
|
937
|
-
std::optional<std::function<void(const RNRegion& /* region */, const
|
|
938
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
937
|
+
std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> JHybridRNGoogleMapsPlusViewSpec::getOnCameraChangeStart() {
|
|
938
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNRegion_RNCamera_bool::javaobject>()>("getOnCameraChangeStart_cxx");
|
|
939
939
|
auto __result = method(_javaPart);
|
|
940
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const RNRegion& /* region */, const
|
|
941
|
-
if (__result->isInstanceOf(
|
|
942
|
-
auto downcast = jni::static_ref_cast<
|
|
940
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)> {
|
|
941
|
+
if (__result->isInstanceOf(JFunc_void_RNRegion_RNCamera_bool_cxx::javaClassStatic())) [[likely]] {
|
|
942
|
+
auto downcast = jni::static_ref_cast<JFunc_void_RNRegion_RNCamera_bool_cxx::javaobject>(__result);
|
|
943
943
|
return downcast->cthis()->getFunction();
|
|
944
944
|
} else {
|
|
945
945
|
auto __resultRef = jni::make_global(__result);
|
|
946
|
-
return [__resultRef](RNRegion region,
|
|
946
|
+
return [__resultRef](RNRegion region, RNCamera camera, bool isGesture) -> void {
|
|
947
947
|
return __resultRef->invoke(region,camera,isGesture);
|
|
948
948
|
};
|
|
949
949
|
}
|
|
950
950
|
}()) : std::nullopt;
|
|
951
951
|
}
|
|
952
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnCameraChangeStart(const std::optional<std::function<void(const RNRegion& /* region */, const
|
|
953
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
954
|
-
method(_javaPart, onCameraChangeStart.has_value() ?
|
|
952
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnCameraChangeStart(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>& onCameraChangeStart) {
|
|
953
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_RNRegion_RNCamera_bool::javaobject> /* onCameraChangeStart */)>("setOnCameraChangeStart_cxx");
|
|
954
|
+
method(_javaPart, onCameraChangeStart.has_value() ? JFunc_void_RNRegion_RNCamera_bool_cxx::fromCpp(onCameraChangeStart.value()) : nullptr);
|
|
955
955
|
}
|
|
956
|
-
std::optional<std::function<void(const RNRegion& /* region */, const
|
|
957
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
956
|
+
std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> JHybridRNGoogleMapsPlusViewSpec::getOnCameraChange() {
|
|
957
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNRegion_RNCamera_bool::javaobject>()>("getOnCameraChange_cxx");
|
|
958
958
|
auto __result = method(_javaPart);
|
|
959
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const RNRegion& /* region */, const
|
|
960
|
-
if (__result->isInstanceOf(
|
|
961
|
-
auto downcast = jni::static_ref_cast<
|
|
959
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)> {
|
|
960
|
+
if (__result->isInstanceOf(JFunc_void_RNRegion_RNCamera_bool_cxx::javaClassStatic())) [[likely]] {
|
|
961
|
+
auto downcast = jni::static_ref_cast<JFunc_void_RNRegion_RNCamera_bool_cxx::javaobject>(__result);
|
|
962
962
|
return downcast->cthis()->getFunction();
|
|
963
963
|
} else {
|
|
964
964
|
auto __resultRef = jni::make_global(__result);
|
|
965
|
-
return [__resultRef](RNRegion region,
|
|
965
|
+
return [__resultRef](RNRegion region, RNCamera camera, bool isGesture) -> void {
|
|
966
966
|
return __resultRef->invoke(region,camera,isGesture);
|
|
967
967
|
};
|
|
968
968
|
}
|
|
969
969
|
}()) : std::nullopt;
|
|
970
970
|
}
|
|
971
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnCameraChange(const std::optional<std::function<void(const RNRegion& /* region */, const
|
|
972
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
973
|
-
method(_javaPart, onCameraChange.has_value() ?
|
|
971
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnCameraChange(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>& onCameraChange) {
|
|
972
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_RNRegion_RNCamera_bool::javaobject> /* onCameraChange */)>("setOnCameraChange_cxx");
|
|
973
|
+
method(_javaPart, onCameraChange.has_value() ? JFunc_void_RNRegion_RNCamera_bool_cxx::fromCpp(onCameraChange.value()) : nullptr);
|
|
974
974
|
}
|
|
975
|
-
std::optional<std::function<void(const RNRegion& /* region */, const
|
|
976
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
975
|
+
std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> JHybridRNGoogleMapsPlusViewSpec::getOnCameraChangeComplete() {
|
|
976
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNRegion_RNCamera_bool::javaobject>()>("getOnCameraChangeComplete_cxx");
|
|
977
977
|
auto __result = method(_javaPart);
|
|
978
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const RNRegion& /* region */, const
|
|
979
|
-
if (__result->isInstanceOf(
|
|
980
|
-
auto downcast = jni::static_ref_cast<
|
|
978
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)> {
|
|
979
|
+
if (__result->isInstanceOf(JFunc_void_RNRegion_RNCamera_bool_cxx::javaClassStatic())) [[likely]] {
|
|
980
|
+
auto downcast = jni::static_ref_cast<JFunc_void_RNRegion_RNCamera_bool_cxx::javaobject>(__result);
|
|
981
981
|
return downcast->cthis()->getFunction();
|
|
982
982
|
} else {
|
|
983
983
|
auto __resultRef = jni::make_global(__result);
|
|
984
|
-
return [__resultRef](RNRegion region,
|
|
984
|
+
return [__resultRef](RNRegion region, RNCamera camera, bool isGesture) -> void {
|
|
985
985
|
return __resultRef->invoke(region,camera,isGesture);
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
988
|
}()) : std::nullopt;
|
|
989
989
|
}
|
|
990
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnCameraChangeComplete(const std::optional<std::function<void(const RNRegion& /* region */, const
|
|
991
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
992
|
-
method(_javaPart, onCameraChangeComplete.has_value() ?
|
|
990
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnCameraChangeComplete(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>& onCameraChangeComplete) {
|
|
991
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_RNRegion_RNCamera_bool::javaobject> /* onCameraChangeComplete */)>("setOnCameraChangeComplete_cxx");
|
|
992
|
+
method(_javaPart, onCameraChangeComplete.has_value() ? JFunc_void_RNRegion_RNCamera_bool_cxx::fromCpp(onCameraChangeComplete.value()) : nullptr);
|
|
993
993
|
}
|
|
994
994
|
|
|
995
995
|
// Methods
|
|
@@ -1001,9 +1001,9 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
1001
1001
|
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* id */)>("hideMarkerInfoWindow");
|
|
1002
1002
|
method(_javaPart, jni::make_jstring(id));
|
|
1003
1003
|
}
|
|
1004
|
-
void JHybridRNGoogleMapsPlusViewSpec::setCamera(const
|
|
1005
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
1006
|
-
method(_javaPart,
|
|
1004
|
+
void JHybridRNGoogleMapsPlusViewSpec::setCamera(const RNCameraUpdate& camera, std::optional<bool> animated, std::optional<double> durationMs) {
|
|
1005
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JRNCameraUpdate> /* camera */, jni::alias_ref<jni::JBoolean> /* animated */, jni::alias_ref<jni::JDouble> /* durationMs */)>("setCamera");
|
|
1006
|
+
method(_javaPart, JRNCameraUpdate::fromCpp(camera), animated.has_value() ? jni::JBoolean::valueOf(animated.value()) : nullptr, durationMs.has_value() ? jni::JDouble::valueOf(durationMs.value()) : nullptr);
|
|
1007
1007
|
}
|
|
1008
1008
|
void JHybridRNGoogleMapsPlusViewSpec::setCameraToCoordinates(const std::vector<RNLatLng>& coordinates, const std::optional<RNMapPadding>& padding, std::optional<bool> animated, std::optional<double> durationMs) {
|
|
1009
1009
|
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<jni::JArrayClass<JRNLatLng>> /* coordinates */, jni::alias_ref<JRNMapPadding> /* padding */, jni::alias_ref<jni::JBoolean> /* animated */, jni::alias_ref<jni::JDouble> /* durationMs */)>("setCameraToCoordinates");
|
|
@@ -91,8 +91,8 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
91
91
|
void setOnMapError(const std::optional<std::function<void(RNMapErrorCode /* error */)>>& onMapError) override;
|
|
92
92
|
std::optional<std::function<void(bool /* ready */)>> getOnMapReady() override;
|
|
93
93
|
void setOnMapReady(const std::optional<std::function<void(bool /* ready */)>>& onMapReady) override;
|
|
94
|
-
std::optional<std::function<void(const RNRegion& /* region */, const
|
|
95
|
-
void setOnMapLoaded(const std::optional<std::function<void(const RNRegion& /* region */, const
|
|
94
|
+
std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>> getOnMapLoaded() override;
|
|
95
|
+
void setOnMapLoaded(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>& onMapLoaded) override;
|
|
96
96
|
std::optional<std::function<void(const RNLocation& /* location */)>> getOnLocationUpdate() override;
|
|
97
97
|
void setOnLocationUpdate(const std::optional<std::function<void(const RNLocation& /* location */)>>& onLocationUpdate) override;
|
|
98
98
|
std::optional<std::function<void(RNLocationErrorCode /* error */)>> getOnLocationError() override;
|
|
@@ -131,18 +131,18 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
131
131
|
void setOnMyLocationPress(const std::optional<std::function<void(const RNLocation& /* location */)>>& onMyLocationPress) override;
|
|
132
132
|
std::optional<std::function<void(bool /* pressed */)>> getOnMyLocationButtonPress() override;
|
|
133
133
|
void setOnMyLocationButtonPress(const std::optional<std::function<void(bool /* pressed */)>>& onMyLocationButtonPress) override;
|
|
134
|
-
std::optional<std::function<void(const RNRegion& /* region */, const
|
|
135
|
-
void setOnCameraChangeStart(const std::optional<std::function<void(const RNRegion& /* region */, const
|
|
136
|
-
std::optional<std::function<void(const RNRegion& /* region */, const
|
|
137
|
-
void setOnCameraChange(const std::optional<std::function<void(const RNRegion& /* region */, const
|
|
138
|
-
std::optional<std::function<void(const RNRegion& /* region */, const
|
|
139
|
-
void setOnCameraChangeComplete(const std::optional<std::function<void(const RNRegion& /* region */, const
|
|
134
|
+
std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> getOnCameraChangeStart() override;
|
|
135
|
+
void setOnCameraChangeStart(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>& onCameraChangeStart) override;
|
|
136
|
+
std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> getOnCameraChange() override;
|
|
137
|
+
void setOnCameraChange(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>& onCameraChange) override;
|
|
138
|
+
std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> getOnCameraChangeComplete() override;
|
|
139
|
+
void setOnCameraChangeComplete(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>& onCameraChangeComplete) override;
|
|
140
140
|
|
|
141
141
|
public:
|
|
142
142
|
// Methods
|
|
143
143
|
void showMarkerInfoWindow(const std::string& id) override;
|
|
144
144
|
void hideMarkerInfoWindow(const std::string& id) override;
|
|
145
|
-
void setCamera(const
|
|
145
|
+
void setCamera(const RNCameraUpdate& camera, std::optional<bool> animated, std::optional<double> durationMs) override;
|
|
146
146
|
void setCameraToCoordinates(const std::vector<RNLatLng>& coordinates, const std::optional<RNMapPadding>& padding, std::optional<bool> animated, std::optional<double> durationMs) override;
|
|
147
147
|
void setCameraBounds(const std::optional<RNLatLngBounds>& bounds) override;
|
|
148
148
|
void animateToBounds(const RNLatLngBounds& bounds, std::optional<double> padding, std::optional<double> durationMs, std::optional<bool> lockBounds) override;
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
|
|
13
13
|
#include "JRNLatLng.hpp"
|
|
14
14
|
#include "RNLatLng.hpp"
|
|
15
|
-
#include <optional>
|
|
16
15
|
|
|
17
16
|
namespace margelo::nitro::rngooglemapsplus {
|
|
18
17
|
|
|
@@ -35,17 +34,17 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
35
34
|
static const auto clazz = javaClassStatic();
|
|
36
35
|
static const auto fieldCenter = clazz->getField<JRNLatLng>("center");
|
|
37
36
|
jni::local_ref<JRNLatLng> center = this->getFieldValue(fieldCenter);
|
|
38
|
-
static const auto fieldZoom = clazz->getField<
|
|
39
|
-
|
|
40
|
-
static const auto fieldBearing = clazz->getField<
|
|
41
|
-
|
|
42
|
-
static const auto fieldTilt = clazz->getField<
|
|
43
|
-
|
|
37
|
+
static const auto fieldZoom = clazz->getField<double>("zoom");
|
|
38
|
+
double zoom = this->getFieldValue(fieldZoom);
|
|
39
|
+
static const auto fieldBearing = clazz->getField<double>("bearing");
|
|
40
|
+
double bearing = this->getFieldValue(fieldBearing);
|
|
41
|
+
static const auto fieldTilt = clazz->getField<double>("tilt");
|
|
42
|
+
double tilt = this->getFieldValue(fieldTilt);
|
|
44
43
|
return RNCamera(
|
|
45
|
-
center
|
|
46
|
-
zoom
|
|
47
|
-
bearing
|
|
48
|
-
tilt
|
|
44
|
+
center->toCpp(),
|
|
45
|
+
zoom,
|
|
46
|
+
bearing,
|
|
47
|
+
tilt
|
|
49
48
|
);
|
|
50
49
|
}
|
|
51
50
|
|
|
@@ -55,15 +54,15 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
55
54
|
*/
|
|
56
55
|
[[maybe_unused]]
|
|
57
56
|
static jni::local_ref<JRNCamera::javaobject> fromCpp(const RNCamera& value) {
|
|
58
|
-
using JSignature = JRNCamera(jni::alias_ref<JRNLatLng>,
|
|
57
|
+
using JSignature = JRNCamera(jni::alias_ref<JRNLatLng>, double, double, double);
|
|
59
58
|
static const auto clazz = javaClassStatic();
|
|
60
59
|
static const auto create = clazz->getStaticMethod<JSignature>("fromCpp");
|
|
61
60
|
return create(
|
|
62
61
|
clazz,
|
|
63
|
-
|
|
64
|
-
value.zoom
|
|
65
|
-
value.bearing
|
|
66
|
-
value.tilt
|
|
62
|
+
JRNLatLng::fromCpp(value.center),
|
|
63
|
+
value.zoom,
|
|
64
|
+
value.bearing,
|
|
65
|
+
value.tilt
|
|
67
66
|
);
|
|
68
67
|
}
|
|
69
68
|
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JRNCameraUpdate.hpp
|
|
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
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include <fbjni/fbjni.h>
|
|
11
|
+
#include "RNCameraUpdate.hpp"
|
|
12
|
+
|
|
13
|
+
#include "JRNLatLng.hpp"
|
|
14
|
+
#include "RNLatLng.hpp"
|
|
15
|
+
#include <optional>
|
|
16
|
+
|
|
17
|
+
namespace margelo::nitro::rngooglemapsplus {
|
|
18
|
+
|
|
19
|
+
using namespace facebook;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The C++ JNI bridge between the C++ struct "RNCameraUpdate" and the the Kotlin data class "RNCameraUpdate".
|
|
23
|
+
*/
|
|
24
|
+
struct JRNCameraUpdate final: public jni::JavaClass<JRNCameraUpdate> {
|
|
25
|
+
public:
|
|
26
|
+
static auto constexpr kJavaDescriptor = "Lcom/rngooglemapsplus/RNCameraUpdate;";
|
|
27
|
+
|
|
28
|
+
public:
|
|
29
|
+
/**
|
|
30
|
+
* Convert this Java/Kotlin-based struct to the C++ struct RNCameraUpdate by copying all values to C++.
|
|
31
|
+
*/
|
|
32
|
+
[[maybe_unused]]
|
|
33
|
+
[[nodiscard]]
|
|
34
|
+
RNCameraUpdate toCpp() const {
|
|
35
|
+
static const auto clazz = javaClassStatic();
|
|
36
|
+
static const auto fieldCenter = clazz->getField<JRNLatLng>("center");
|
|
37
|
+
jni::local_ref<JRNLatLng> center = this->getFieldValue(fieldCenter);
|
|
38
|
+
static const auto fieldZoom = clazz->getField<jni::JDouble>("zoom");
|
|
39
|
+
jni::local_ref<jni::JDouble> zoom = this->getFieldValue(fieldZoom);
|
|
40
|
+
static const auto fieldBearing = clazz->getField<jni::JDouble>("bearing");
|
|
41
|
+
jni::local_ref<jni::JDouble> bearing = this->getFieldValue(fieldBearing);
|
|
42
|
+
static const auto fieldTilt = clazz->getField<jni::JDouble>("tilt");
|
|
43
|
+
jni::local_ref<jni::JDouble> tilt = this->getFieldValue(fieldTilt);
|
|
44
|
+
return RNCameraUpdate(
|
|
45
|
+
center != nullptr ? std::make_optional(center->toCpp()) : std::nullopt,
|
|
46
|
+
zoom != nullptr ? std::make_optional(zoom->value()) : std::nullopt,
|
|
47
|
+
bearing != nullptr ? std::make_optional(bearing->value()) : std::nullopt,
|
|
48
|
+
tilt != nullptr ? std::make_optional(tilt->value()) : std::nullopt
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public:
|
|
53
|
+
/**
|
|
54
|
+
* Create a Java/Kotlin-based struct by copying all values from the given C++ struct to Java.
|
|
55
|
+
*/
|
|
56
|
+
[[maybe_unused]]
|
|
57
|
+
static jni::local_ref<JRNCameraUpdate::javaobject> fromCpp(const RNCameraUpdate& value) {
|
|
58
|
+
using JSignature = JRNCameraUpdate(jni::alias_ref<JRNLatLng>, jni::alias_ref<jni::JDouble>, jni::alias_ref<jni::JDouble>, jni::alias_ref<jni::JDouble>);
|
|
59
|
+
static const auto clazz = javaClassStatic();
|
|
60
|
+
static const auto create = clazz->getStaticMethod<JSignature>("fromCpp");
|
|
61
|
+
return create(
|
|
62
|
+
clazz,
|
|
63
|
+
value.center.has_value() ? JRNLatLng::fromCpp(value.center.value()) : nullptr,
|
|
64
|
+
value.zoom.has_value() ? jni::JDouble::valueOf(value.zoom.value()) : nullptr,
|
|
65
|
+
value.bearing.has_value() ? jni::JDouble::valueOf(value.bearing.value()) : nullptr,
|
|
66
|
+
value.tilt.has_value() ? jni::JDouble::valueOf(value.tilt.value()) : nullptr
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
} // namespace margelo::nitro::rngooglemapsplus
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
#include <fbjni/fbjni.h>
|
|
11
11
|
#include "RNInitialProps.hpp"
|
|
12
12
|
|
|
13
|
-
#include "
|
|
13
|
+
#include "JRNCameraUpdate.hpp"
|
|
14
14
|
#include "JRNLatLng.hpp"
|
|
15
|
-
#include "
|
|
15
|
+
#include "RNCameraUpdate.hpp"
|
|
16
16
|
#include "RNLatLng.hpp"
|
|
17
17
|
#include <optional>
|
|
18
18
|
#include <string>
|
|
@@ -40,8 +40,8 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
40
40
|
jni::local_ref<jni::JString> mapId = this->getFieldValue(fieldMapId);
|
|
41
41
|
static const auto fieldLiteMode = clazz->getField<jni::JBoolean>("liteMode");
|
|
42
42
|
jni::local_ref<jni::JBoolean> liteMode = this->getFieldValue(fieldLiteMode);
|
|
43
|
-
static const auto fieldCamera = clazz->getField<
|
|
44
|
-
jni::local_ref<
|
|
43
|
+
static const auto fieldCamera = clazz->getField<JRNCameraUpdate>("camera");
|
|
44
|
+
jni::local_ref<JRNCameraUpdate> camera = this->getFieldValue(fieldCamera);
|
|
45
45
|
static const auto fieldBackgroundColor = clazz->getField<jni::JString>("backgroundColor");
|
|
46
46
|
jni::local_ref<jni::JString> backgroundColor = this->getFieldValue(fieldBackgroundColor);
|
|
47
47
|
return RNInitialProps(
|
|
@@ -58,14 +58,14 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
58
58
|
*/
|
|
59
59
|
[[maybe_unused]]
|
|
60
60
|
static jni::local_ref<JRNInitialProps::javaobject> fromCpp(const RNInitialProps& value) {
|
|
61
|
-
using JSignature = JRNInitialProps(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JBoolean>, jni::alias_ref<
|
|
61
|
+
using JSignature = JRNInitialProps(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JBoolean>, jni::alias_ref<JRNCameraUpdate>, jni::alias_ref<jni::JString>);
|
|
62
62
|
static const auto clazz = javaClassStatic();
|
|
63
63
|
static const auto create = clazz->getStaticMethod<JSignature>("fromCpp");
|
|
64
64
|
return create(
|
|
65
65
|
clazz,
|
|
66
66
|
value.mapId.has_value() ? jni::make_jstring(value.mapId.value()) : nullptr,
|
|
67
67
|
value.liteMode.has_value() ? jni::JBoolean::valueOf(value.liteMode.value()) : nullptr,
|
|
68
|
-
value.camera.has_value() ?
|
|
68
|
+
value.camera.has_value() ? JRNCameraUpdate::fromCpp(value.camera.value()) : nullptr,
|
|
69
69
|
value.backgroundColor.has_value() ? jni::make_jstring(value.backgroundColor.value()) : nullptr
|
|
70
70
|
);
|
|
71
71
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// Func_void_RNRegion_RNCamera.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
|
|
@@ -22,14 +22,14 @@ import dalvik.annotation.optimization.FastNative
|
|
|
22
22
|
@DoNotStrip
|
|
23
23
|
@Keep
|
|
24
24
|
@Suppress("ClassName", "RedundantUnitReturnType")
|
|
25
|
-
fun interface
|
|
25
|
+
fun interface Func_void_RNRegion_RNCamera: (RNRegion, RNCamera) -> Unit {
|
|
26
26
|
/**
|
|
27
27
|
* Call the given JS callback.
|
|
28
28
|
* @throws Throwable if the JS function itself throws an error, or if the JS function/runtime has already been deleted.
|
|
29
29
|
*/
|
|
30
30
|
@DoNotStrip
|
|
31
31
|
@Keep
|
|
32
|
-
override fun invoke(region: RNRegion, camera:
|
|
32
|
+
override fun invoke(region: RNRegion, camera: RNCamera): Unit
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -44,7 +44,7 @@ fun interface Func_void_RNRegion_RNCameraChange: (RNRegion, RNCameraChange) -> U
|
|
|
44
44
|
"RedundantSuppression", "RedundantUnitReturnType", "FunctionName",
|
|
45
45
|
"ConvertSecondaryConstructorToPrimary", "ClassName", "LocalVariableName",
|
|
46
46
|
)
|
|
47
|
-
class
|
|
47
|
+
class Func_void_RNRegion_RNCamera_cxx: Func_void_RNRegion_RNCamera {
|
|
48
48
|
@DoNotStrip
|
|
49
49
|
@Keep
|
|
50
50
|
private val mHybridData: HybridData
|
|
@@ -57,25 +57,25 @@ class Func_void_RNRegion_RNCameraChange_cxx: Func_void_RNRegion_RNCameraChange {
|
|
|
57
57
|
|
|
58
58
|
@DoNotStrip
|
|
59
59
|
@Keep
|
|
60
|
-
override fun invoke(region: RNRegion, camera:
|
|
60
|
+
override fun invoke(region: RNRegion, camera: RNCamera): Unit
|
|
61
61
|
= invoke_cxx(region,camera)
|
|
62
62
|
|
|
63
63
|
@FastNative
|
|
64
|
-
private external fun invoke_cxx(region: RNRegion, camera:
|
|
64
|
+
private external fun invoke_cxx(region: RNRegion, camera: RNCamera): Unit
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* Represents the JavaScript callback `(region: struct, camera: struct) => void`.
|
|
69
|
-
* This is implemented in Java/Kotlin, via a `(RNRegion,
|
|
69
|
+
* This is implemented in Java/Kotlin, via a `(RNRegion, RNCamera) -> Unit`.
|
|
70
70
|
* The callback is always coming from native.
|
|
71
71
|
*/
|
|
72
72
|
@DoNotStrip
|
|
73
73
|
@Keep
|
|
74
74
|
@Suppress("ClassName", "RedundantUnitReturnType", "unused")
|
|
75
|
-
class
|
|
75
|
+
class Func_void_RNRegion_RNCamera_java(private val function: (RNRegion, RNCamera) -> Unit): Func_void_RNRegion_RNCamera {
|
|
76
76
|
@DoNotStrip
|
|
77
77
|
@Keep
|
|
78
|
-
override fun invoke(region: RNRegion, camera:
|
|
78
|
+
override fun invoke(region: RNRegion, camera: RNCamera): Unit {
|
|
79
79
|
return this.function(region, camera)
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// Func_void_RNRegion_RNCamera_bool.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
|
|
@@ -22,14 +22,14 @@ import dalvik.annotation.optimization.FastNative
|
|
|
22
22
|
@DoNotStrip
|
|
23
23
|
@Keep
|
|
24
24
|
@Suppress("ClassName", "RedundantUnitReturnType")
|
|
25
|
-
fun interface
|
|
25
|
+
fun interface Func_void_RNRegion_RNCamera_bool: (RNRegion, RNCamera, Boolean) -> Unit {
|
|
26
26
|
/**
|
|
27
27
|
* Call the given JS callback.
|
|
28
28
|
* @throws Throwable if the JS function itself throws an error, or if the JS function/runtime has already been deleted.
|
|
29
29
|
*/
|
|
30
30
|
@DoNotStrip
|
|
31
31
|
@Keep
|
|
32
|
-
override fun invoke(region: RNRegion, camera:
|
|
32
|
+
override fun invoke(region: RNRegion, camera: RNCamera, isGesture: Boolean): Unit
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -44,7 +44,7 @@ fun interface Func_void_RNRegion_RNCameraChange_bool: (RNRegion, RNCameraChange,
|
|
|
44
44
|
"RedundantSuppression", "RedundantUnitReturnType", "FunctionName",
|
|
45
45
|
"ConvertSecondaryConstructorToPrimary", "ClassName", "LocalVariableName",
|
|
46
46
|
)
|
|
47
|
-
class
|
|
47
|
+
class Func_void_RNRegion_RNCamera_bool_cxx: Func_void_RNRegion_RNCamera_bool {
|
|
48
48
|
@DoNotStrip
|
|
49
49
|
@Keep
|
|
50
50
|
private val mHybridData: HybridData
|
|
@@ -57,25 +57,25 @@ class Func_void_RNRegion_RNCameraChange_bool_cxx: Func_void_RNRegion_RNCameraCha
|
|
|
57
57
|
|
|
58
58
|
@DoNotStrip
|
|
59
59
|
@Keep
|
|
60
|
-
override fun invoke(region: RNRegion, camera:
|
|
60
|
+
override fun invoke(region: RNRegion, camera: RNCamera, isGesture: Boolean): Unit
|
|
61
61
|
= invoke_cxx(region,camera,isGesture)
|
|
62
62
|
|
|
63
63
|
@FastNative
|
|
64
|
-
private external fun invoke_cxx(region: RNRegion, camera:
|
|
64
|
+
private external fun invoke_cxx(region: RNRegion, camera: RNCamera, isGesture: Boolean): Unit
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* Represents the JavaScript callback `(region: struct, camera: struct, isGesture: boolean) => void`.
|
|
69
|
-
* This is implemented in Java/Kotlin, via a `(RNRegion,
|
|
69
|
+
* This is implemented in Java/Kotlin, via a `(RNRegion, RNCamera, Boolean) -> Unit`.
|
|
70
70
|
* The callback is always coming from native.
|
|
71
71
|
*/
|
|
72
72
|
@DoNotStrip
|
|
73
73
|
@Keep
|
|
74
74
|
@Suppress("ClassName", "RedundantUnitReturnType", "unused")
|
|
75
|
-
class
|
|
75
|
+
class Func_void_RNRegion_RNCamera_bool_java(private val function: (RNRegion, RNCamera, Boolean) -> Unit): Func_void_RNRegion_RNCamera_bool {
|
|
76
76
|
@DoNotStrip
|
|
77
77
|
@Keep
|
|
78
|
-
override fun invoke(region: RNRegion, camera:
|
|
78
|
+
override fun invoke(region: RNRegion, camera: RNCamera, isGesture: Boolean): Unit {
|
|
79
79
|
return this.function(region, camera, isGesture)
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -180,13 +180,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
180
180
|
onMapReady = value?.let { it }
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
abstract var onMapLoaded: ((region: RNRegion, camera:
|
|
183
|
+
abstract var onMapLoaded: ((region: RNRegion, camera: RNCamera) -> Unit)?
|
|
184
184
|
|
|
185
|
-
private var onMapLoaded_cxx:
|
|
185
|
+
private var onMapLoaded_cxx: Func_void_RNRegion_RNCamera?
|
|
186
186
|
@Keep
|
|
187
187
|
@DoNotStrip
|
|
188
188
|
get() {
|
|
189
|
-
return onMapLoaded?.let {
|
|
189
|
+
return onMapLoaded?.let { Func_void_RNRegion_RNCamera_java(it) }
|
|
190
190
|
}
|
|
191
191
|
@Keep
|
|
192
192
|
@DoNotStrip
|
|
@@ -460,13 +460,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
460
460
|
onMyLocationButtonPress = value?.let { it }
|
|
461
461
|
}
|
|
462
462
|
|
|
463
|
-
abstract var onCameraChangeStart: ((region: RNRegion, camera:
|
|
463
|
+
abstract var onCameraChangeStart: ((region: RNRegion, camera: RNCamera, isGesture: Boolean) -> Unit)?
|
|
464
464
|
|
|
465
|
-
private var onCameraChangeStart_cxx:
|
|
465
|
+
private var onCameraChangeStart_cxx: Func_void_RNRegion_RNCamera_bool?
|
|
466
466
|
@Keep
|
|
467
467
|
@DoNotStrip
|
|
468
468
|
get() {
|
|
469
|
-
return onCameraChangeStart?.let {
|
|
469
|
+
return onCameraChangeStart?.let { Func_void_RNRegion_RNCamera_bool_java(it) }
|
|
470
470
|
}
|
|
471
471
|
@Keep
|
|
472
472
|
@DoNotStrip
|
|
@@ -474,13 +474,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
474
474
|
onCameraChangeStart = value?.let { it }
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
-
abstract var onCameraChange: ((region: RNRegion, camera:
|
|
477
|
+
abstract var onCameraChange: ((region: RNRegion, camera: RNCamera, isGesture: Boolean) -> Unit)?
|
|
478
478
|
|
|
479
|
-
private var onCameraChange_cxx:
|
|
479
|
+
private var onCameraChange_cxx: Func_void_RNRegion_RNCamera_bool?
|
|
480
480
|
@Keep
|
|
481
481
|
@DoNotStrip
|
|
482
482
|
get() {
|
|
483
|
-
return onCameraChange?.let {
|
|
483
|
+
return onCameraChange?.let { Func_void_RNRegion_RNCamera_bool_java(it) }
|
|
484
484
|
}
|
|
485
485
|
@Keep
|
|
486
486
|
@DoNotStrip
|
|
@@ -488,13 +488,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
488
488
|
onCameraChange = value?.let { it }
|
|
489
489
|
}
|
|
490
490
|
|
|
491
|
-
abstract var onCameraChangeComplete: ((region: RNRegion, camera:
|
|
491
|
+
abstract var onCameraChangeComplete: ((region: RNRegion, camera: RNCamera, isGesture: Boolean) -> Unit)?
|
|
492
492
|
|
|
493
|
-
private var onCameraChangeComplete_cxx:
|
|
493
|
+
private var onCameraChangeComplete_cxx: Func_void_RNRegion_RNCamera_bool?
|
|
494
494
|
@Keep
|
|
495
495
|
@DoNotStrip
|
|
496
496
|
get() {
|
|
497
|
-
return onCameraChangeComplete?.let {
|
|
497
|
+
return onCameraChangeComplete?.let { Func_void_RNRegion_RNCamera_bool_java(it) }
|
|
498
498
|
}
|
|
499
499
|
@Keep
|
|
500
500
|
@DoNotStrip
|
|
@@ -513,7 +513,7 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
|
|
|
513
513
|
|
|
514
514
|
@DoNotStrip
|
|
515
515
|
@Keep
|
|
516
|
-
abstract fun setCamera(camera:
|
|
516
|
+
abstract fun setCamera(camera: RNCameraUpdate, animated: Boolean?, durationMs: Double?): Unit
|
|
517
517
|
|
|
518
518
|
@DoNotStrip
|
|
519
519
|
@Keep
|