react-native-google-maps-plus 1.6.2 → 1.7.0-dev.10
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/proguard-rules.pro +29 -0
- package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +461 -445
- package/android/src/main/java/com/rngooglemapsplus/LocationHandler.kt +5 -8
- package/android/src/main/java/com/rngooglemapsplus/MapCircleBuilder.kt +2 -1
- package/android/src/main/java/com/rngooglemapsplus/MapHeatmapBuilder.kt +1 -1
- package/android/src/main/java/com/rngooglemapsplus/MapHelper.kt +22 -0
- package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +142 -2
- package/android/src/main/java/com/rngooglemapsplus/MapPolygonBuilder.kt +2 -1
- package/android/src/main/java/com/rngooglemapsplus/MapPolylineBuilder.kt.kt +2 -1
- package/android/src/main/java/com/rngooglemapsplus/MapUrlTileOverlayBuilder.kt +40 -0
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +93 -33
- package/android/src/main/java/com/rngooglemapsplus/extensions/LatLngBoundsExtension.kt +10 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/MapObjectTagExtensions.kt +84 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNLatLngBoundsExtension.kt +2 -8
- package/android/src/main/java/com/rngooglemapsplus/extensions/RNMapTypeExtension.kt +13 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/VisibleRegionExtension.kt +13 -0
- package/ios/GoogleMapViewImpl.swift +182 -48
- package/ios/MapCircleBuilder.swift +2 -0
- package/ios/MapHeatmapBuilder.swift +2 -1
- package/ios/MapMarkerBuilder.swift +54 -1
- package/ios/MapPolygonBuilder.swift +2 -0
- package/ios/MapPolylineBuilder.swift +2 -0
- package/ios/MapUrlTileOverlayBuilder.swift +24 -0
- package/ios/RNGoogleMapsPlusView.swift +75 -10
- package/ios/extensions/GMSCoordinateBounds+Extension.swift +4 -13
- package/ios/extensions/GMSVisibleRegion+Extension.swift +14 -0
- package/ios/extensions/MapObjectTag+Extension.swift +93 -0
- package/ios/extensions/RNLatLngBounds+Extension.swift +4 -4
- package/ios/extensions/RNMapType+Extension.swift +18 -0
- package/lib/module/types.js.map +1 -1
- package/lib/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +9 -0
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +19 -8
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +18 -5
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +8 -4
- package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCamera.hpp +83 -0
- package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCamera_bool.hpp +2 -0
- package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +75 -0
- package/nitrogen/generated/android/c++/JFunc_void_std__string_RNLatLng.hpp +77 -0
- package/nitrogen/generated/android/c++/JFunc_void_std__string_std__string_RNLatLng.hpp +77 -0
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +265 -73
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +34 -14
- package/nitrogen/generated/android/c++/JRNLatLngBounds.hpp +8 -8
- package/nitrogen/generated/android/c++/JRNMapUiSettings.hpp +11 -3
- package/nitrogen/generated/android/c++/JRNMarker.hpp +7 -3
- package/nitrogen/generated/android/c++/JRNRegion.hpp +23 -13
- package/nitrogen/generated/android/c++/JRNUrlTileOverlay.hpp +78 -0
- package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +36 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNRegion_RNCamera.kt +81 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_std__optional_std__string_.kt → Func_void_std__string.kt} +12 -12
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_std__optional_std__string__RNLatLng.kt → Func_void_std__string_RNLatLng.kt} +12 -12
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_std__string_std__string_RNLatLng.kt +81 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +147 -21
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLatLngBounds.kt +4 -4
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMapUiSettings.kt +9 -3
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +6 -3
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNRegion.kt +11 -5
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNUrlTileOverlay.kt +52 -0
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +32 -8
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +176 -36
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +3 -0
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +98 -20
- package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +45 -0
- package/nitrogen/generated/ios/swift/Func_void_RNRegion_RNCamera.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string_.swift +6 -6
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__string_RNLatLng.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__string_std__string_RNLatLng.swift +47 -0
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +18 -7
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +392 -126
- package/nitrogen/generated/ios/swift/RNLatLngBounds.swift +8 -8
- package/nitrogen/generated/ios/swift/RNMapUiSettings.swift +61 -1
- package/nitrogen/generated/ios/swift/RNMarker.swift +24 -1
- package/nitrogen/generated/ios/swift/RNRegion.swift +33 -11
- package/nitrogen/generated/ios/swift/RNUrlTileOverlay.swift +133 -0
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +20 -0
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +43 -20
- package/nitrogen/generated/shared/c++/RNLatLngBounds.hpp +9 -9
- package/nitrogen/generated/shared/c++/RNMapUiSettings.hpp +10 -2
- package/nitrogen/generated/shared/c++/RNMarker.hpp +6 -2
- package/nitrogen/generated/shared/c++/RNRegion.hpp +24 -13
- package/nitrogen/generated/shared/c++/RNUrlTileOverlay.hpp +96 -0
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +122 -14
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +19 -9
- package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +9 -0
- package/package.json +8 -5
- package/src/RNGoogleMapsPlusView.nitro.ts +21 -7
- package/src/types.ts +19 -5
- package/android/src/main/java/com/rngooglemapsplus/extensions/LatLngBounds.kt +0 -15
- package/nitrogen/generated/android/c++/JFunc_void_std__optional_std__string_.hpp +0 -76
- package/nitrogen/generated/android/c++/JFunc_void_std__optional_std__string__RNLatLng.hpp +0 -78
- package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string__RNLatLng.swift +0 -54
- /package/android/src/main/java/com/rngooglemapsplus/extensions/{RNSize.kt → RNSizeExtension.kt} +0 -0
- /package/android/src/main/java/com/rngooglemapsplus/extensions/{RNSnapshotFormat.kt → RNSnapshotFormatExtension.kt} +0 -0
- /package/android/src/main/java/com/rngooglemapsplus/extensions/{RNSnapshotResultType.kt → RNSnapshotResultTypeExtension.kt} +0 -0
|
@@ -49,6 +49,8 @@ namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapPoint; }
|
|
|
49
49
|
namespace margelo::nitro::rngooglemapsplus { struct RNHeatmapGradient; }
|
|
50
50
|
// Forward declaration of `RNKMLayer` to properly resolve imports.
|
|
51
51
|
namespace margelo::nitro::rngooglemapsplus { struct RNKMLayer; }
|
|
52
|
+
// Forward declaration of `RNUrlTileOverlay` to properly resolve imports.
|
|
53
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNUrlTileOverlay; }
|
|
52
54
|
// Forward declaration of `RNLocationConfig` to properly resolve imports.
|
|
53
55
|
namespace margelo::nitro::rngooglemapsplus { struct RNLocationConfig; }
|
|
54
56
|
// Forward declaration of `RNAndroidLocationConfig` to properly resolve imports.
|
|
@@ -61,6 +63,10 @@ namespace margelo::nitro::rngooglemapsplus { struct RNIOSLocationConfig; }
|
|
|
61
63
|
namespace margelo::nitro::rngooglemapsplus { enum class RNIOSLocationAccuracy; }
|
|
62
64
|
// Forward declaration of `RNMapErrorCode` to properly resolve imports.
|
|
63
65
|
namespace margelo::nitro::rngooglemapsplus { enum class RNMapErrorCode; }
|
|
66
|
+
// Forward declaration of `RNRegion` to properly resolve imports.
|
|
67
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNRegion; }
|
|
68
|
+
// Forward declaration of `RNLatLngBounds` to properly resolve imports.
|
|
69
|
+
namespace margelo::nitro::rngooglemapsplus { struct RNLatLngBounds; }
|
|
64
70
|
// Forward declaration of `RNLocation` to properly resolve imports.
|
|
65
71
|
namespace margelo::nitro::rngooglemapsplus { struct RNLocation; }
|
|
66
72
|
// Forward declaration of `RNLocationAndroid` to properly resolve imports.
|
|
@@ -73,16 +79,12 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNLocationErrorCode; }
|
|
|
73
79
|
namespace margelo::nitro::rngooglemapsplus { struct RNIndoorBuilding; }
|
|
74
80
|
// Forward declaration of `RNIndoorLevel` to properly resolve imports.
|
|
75
81
|
namespace margelo::nitro::rngooglemapsplus { struct RNIndoorLevel; }
|
|
76
|
-
// Forward declaration of `RNRegion` to properly resolve imports.
|
|
77
|
-
namespace margelo::nitro::rngooglemapsplus { struct RNRegion; }
|
|
78
82
|
// Forward declaration of `RNLocationPermissionResult` to properly resolve imports.
|
|
79
83
|
namespace margelo::nitro::rngooglemapsplus { struct RNLocationPermissionResult; }
|
|
80
84
|
// Forward declaration of `RNAndroidLocationPermissionResult` to properly resolve imports.
|
|
81
85
|
namespace margelo::nitro::rngooglemapsplus { enum class RNAndroidLocationPermissionResult; }
|
|
82
86
|
// Forward declaration of `RNIOSPermissionResult` to properly resolve imports.
|
|
83
87
|
namespace margelo::nitro::rngooglemapsplus { enum class RNIOSPermissionResult; }
|
|
84
|
-
// Forward declaration of `RNLatLngBounds` to properly resolve imports.
|
|
85
|
-
namespace margelo::nitro::rngooglemapsplus { struct RNLatLngBounds; }
|
|
86
88
|
// Forward declaration of `RNSnapshotOptions` to properly resolve imports.
|
|
87
89
|
namespace margelo::nitro::rngooglemapsplus { struct RNSnapshotOptions; }
|
|
88
90
|
// Forward declaration of `RNSize` to properly resolve imports.
|
|
@@ -137,6 +139,8 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotResultType; }
|
|
|
137
139
|
#include "JRNHeatmapGradient.hpp"
|
|
138
140
|
#include "RNKMLayer.hpp"
|
|
139
141
|
#include "JRNKMLayer.hpp"
|
|
142
|
+
#include "RNUrlTileOverlay.hpp"
|
|
143
|
+
#include "JRNUrlTileOverlay.hpp"
|
|
140
144
|
#include "RNLocationConfig.hpp"
|
|
141
145
|
#include "JRNLocationConfig.hpp"
|
|
142
146
|
#include "RNAndroidLocationConfig.hpp"
|
|
@@ -152,6 +156,11 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotResultType; }
|
|
|
152
156
|
#include "JFunc_void_RNMapErrorCode.hpp"
|
|
153
157
|
#include "JRNMapErrorCode.hpp"
|
|
154
158
|
#include "JFunc_void_bool.hpp"
|
|
159
|
+
#include "RNRegion.hpp"
|
|
160
|
+
#include "JFunc_void_RNRegion_RNCamera.hpp"
|
|
161
|
+
#include "JRNRegion.hpp"
|
|
162
|
+
#include "RNLatLngBounds.hpp"
|
|
163
|
+
#include "JRNLatLngBounds.hpp"
|
|
155
164
|
#include "RNLocation.hpp"
|
|
156
165
|
#include "JFunc_void_RNLocation.hpp"
|
|
157
166
|
#include "JRNLocation.hpp"
|
|
@@ -163,17 +172,16 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotResultType; }
|
|
|
163
172
|
#include "JFunc_void_RNLocationErrorCode.hpp"
|
|
164
173
|
#include "JRNLocationErrorCode.hpp"
|
|
165
174
|
#include "JFunc_void_RNLatLng.hpp"
|
|
166
|
-
#include "
|
|
167
|
-
#include "
|
|
175
|
+
#include "JFunc_void_std__string_std__string_RNLatLng.hpp"
|
|
176
|
+
#include "JFunc_void_std__string.hpp"
|
|
177
|
+
#include "JFunc_void_std__string_RNLatLng.hpp"
|
|
168
178
|
#include "RNIndoorBuilding.hpp"
|
|
169
179
|
#include "JFunc_void_RNIndoorBuilding.hpp"
|
|
170
180
|
#include "JRNIndoorBuilding.hpp"
|
|
171
181
|
#include "RNIndoorLevel.hpp"
|
|
172
182
|
#include "JRNIndoorLevel.hpp"
|
|
173
183
|
#include "JFunc_void_RNIndoorLevel.hpp"
|
|
174
|
-
#include "RNRegion.hpp"
|
|
175
184
|
#include "JFunc_void_RNRegion_RNCamera_bool.hpp"
|
|
176
|
-
#include "JRNRegion.hpp"
|
|
177
185
|
#include <NitroModules/Promise.hpp>
|
|
178
186
|
#include <NitroModules/JPromise.hpp>
|
|
179
187
|
#include "RNLocationPermissionResult.hpp"
|
|
@@ -182,8 +190,6 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotResultType; }
|
|
|
182
190
|
#include "JRNAndroidLocationPermissionResult.hpp"
|
|
183
191
|
#include "RNIOSPermissionResult.hpp"
|
|
184
192
|
#include "JRNIOSPermissionResult.hpp"
|
|
185
|
-
#include "RNLatLngBounds.hpp"
|
|
186
|
-
#include "JRNLatLngBounds.hpp"
|
|
187
193
|
#include "RNSnapshotOptions.hpp"
|
|
188
194
|
#include "JRNSnapshotOptions.hpp"
|
|
189
195
|
#include "RNSize.hpp"
|
|
@@ -471,6 +477,32 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
471
477
|
return __array;
|
|
472
478
|
}() : nullptr);
|
|
473
479
|
}
|
|
480
|
+
std::optional<std::vector<RNUrlTileOverlay>> JHybridRNGoogleMapsPlusViewSpec::getUrlTileOverlays() {
|
|
481
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<jni::JArrayClass<JRNUrlTileOverlay>>()>("getUrlTileOverlays");
|
|
482
|
+
auto __result = method(_javaPart);
|
|
483
|
+
return __result != nullptr ? std::make_optional([&]() {
|
|
484
|
+
size_t __size = __result->size();
|
|
485
|
+
std::vector<RNUrlTileOverlay> __vector;
|
|
486
|
+
__vector.reserve(__size);
|
|
487
|
+
for (size_t __i = 0; __i < __size; __i++) {
|
|
488
|
+
auto __element = __result->getElement(__i);
|
|
489
|
+
__vector.push_back(__element->toCpp());
|
|
490
|
+
}
|
|
491
|
+
return __vector;
|
|
492
|
+
}()) : std::nullopt;
|
|
493
|
+
}
|
|
494
|
+
void JHybridRNGoogleMapsPlusViewSpec::setUrlTileOverlays(const std::optional<std::vector<RNUrlTileOverlay>>& urlTileOverlays) {
|
|
495
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<jni::JArrayClass<JRNUrlTileOverlay>> /* urlTileOverlays */)>("setUrlTileOverlays");
|
|
496
|
+
method(_javaPart, urlTileOverlays.has_value() ? [&]() {
|
|
497
|
+
size_t __size = urlTileOverlays.value().size();
|
|
498
|
+
jni::local_ref<jni::JArrayClass<JRNUrlTileOverlay>> __array = jni::JArrayClass<JRNUrlTileOverlay>::newArray(__size);
|
|
499
|
+
for (size_t __i = 0; __i < __size; __i++) {
|
|
500
|
+
const auto& __element = urlTileOverlays.value()[__i];
|
|
501
|
+
__array->setElement(__i, *JRNUrlTileOverlay::fromCpp(__element));
|
|
502
|
+
}
|
|
503
|
+
return __array;
|
|
504
|
+
}() : nullptr);
|
|
505
|
+
}
|
|
474
506
|
std::optional<RNLocationConfig> JHybridRNGoogleMapsPlusViewSpec::getLocationConfig() {
|
|
475
507
|
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JRNLocationConfig>()>("getLocationConfig");
|
|
476
508
|
auto __result = method(_javaPart);
|
|
@@ -518,6 +550,25 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
518
550
|
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_bool::javaobject> /* onMapReady */)>("setOnMapReady_cxx");
|
|
519
551
|
method(_javaPart, onMapReady.has_value() ? JFunc_void_bool_cxx::fromCpp(onMapReady.value()) : nullptr);
|
|
520
552
|
}
|
|
553
|
+
std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>> JHybridRNGoogleMapsPlusViewSpec::getOnMapLoaded() {
|
|
554
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNRegion_RNCamera::javaobject>()>("getOnMapLoaded_cxx");
|
|
555
|
+
auto __result = method(_javaPart);
|
|
556
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)> {
|
|
557
|
+
if (__result->isInstanceOf(JFunc_void_RNRegion_RNCamera_cxx::javaClassStatic())) [[likely]] {
|
|
558
|
+
auto downcast = jni::static_ref_cast<JFunc_void_RNRegion_RNCamera_cxx::javaobject>(__result);
|
|
559
|
+
return downcast->cthis()->getFunction();
|
|
560
|
+
} else {
|
|
561
|
+
auto __resultRef = jni::make_global(__result);
|
|
562
|
+
return [__resultRef](RNRegion region, RNCamera camera) -> void {
|
|
563
|
+
return __resultRef->invoke(region,camera);
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
}()) : std::nullopt;
|
|
567
|
+
}
|
|
568
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnMapLoaded(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>>& onMapLoaded) {
|
|
569
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_RNRegion_RNCamera::javaobject> /* onMapLoaded */)>("setOnMapLoaded_cxx");
|
|
570
|
+
method(_javaPart, onMapLoaded.has_value() ? JFunc_void_RNRegion_RNCamera_cxx::fromCpp(onMapLoaded.value()) : nullptr);
|
|
571
|
+
}
|
|
521
572
|
std::optional<std::function<void(const RNLocation& /* location */)>> JHybridRNGoogleMapsPlusViewSpec::getOnLocationUpdate() {
|
|
522
573
|
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNLocation::javaobject>()>("getOnLocationUpdate_cxx");
|
|
523
574
|
auto __result = method(_javaPart);
|
|
@@ -575,138 +626,176 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
575
626
|
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_RNLatLng::javaobject> /* onMapPress */)>("setOnMapPress_cxx");
|
|
576
627
|
method(_javaPart, onMapPress.has_value() ? JFunc_void_RNLatLng_cxx::fromCpp(onMapPress.value()) : nullptr);
|
|
577
628
|
}
|
|
578
|
-
std::optional<std::function<void(const
|
|
579
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
629
|
+
std::optional<std::function<void(const RNLatLng& /* coordinate */)>> JHybridRNGoogleMapsPlusViewSpec::getOnMapLongPress() {
|
|
630
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNLatLng::javaobject>()>("getOnMapLongPress_cxx");
|
|
631
|
+
auto __result = method(_javaPart);
|
|
632
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const RNLatLng& /* coordinate */)> {
|
|
633
|
+
if (__result->isInstanceOf(JFunc_void_RNLatLng_cxx::javaClassStatic())) [[likely]] {
|
|
634
|
+
auto downcast = jni::static_ref_cast<JFunc_void_RNLatLng_cxx::javaobject>(__result);
|
|
635
|
+
return downcast->cthis()->getFunction();
|
|
636
|
+
} else {
|
|
637
|
+
auto __resultRef = jni::make_global(__result);
|
|
638
|
+
return [__resultRef](RNLatLng coordinate) -> void {
|
|
639
|
+
return __resultRef->invoke(coordinate);
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
}()) : std::nullopt;
|
|
643
|
+
}
|
|
644
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnMapLongPress(const std::optional<std::function<void(const RNLatLng& /* coordinate */)>>& onMapLongPress) {
|
|
645
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_RNLatLng::javaobject> /* onMapLongPress */)>("setOnMapLongPress_cxx");
|
|
646
|
+
method(_javaPart, onMapLongPress.has_value() ? JFunc_void_RNLatLng_cxx::fromCpp(onMapLongPress.value()) : nullptr);
|
|
647
|
+
}
|
|
648
|
+
std::optional<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>> JHybridRNGoogleMapsPlusViewSpec::getOnPoiPress() {
|
|
649
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__string_std__string_RNLatLng::javaobject>()>("getOnPoiPress_cxx");
|
|
580
650
|
auto __result = method(_javaPart);
|
|
581
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
582
|
-
if (__result->isInstanceOf(
|
|
583
|
-
auto downcast = jni::static_ref_cast<
|
|
651
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)> {
|
|
652
|
+
if (__result->isInstanceOf(JFunc_void_std__string_std__string_RNLatLng_cxx::javaClassStatic())) [[likely]] {
|
|
653
|
+
auto downcast = jni::static_ref_cast<JFunc_void_std__string_std__string_RNLatLng_cxx::javaobject>(__result);
|
|
584
654
|
return downcast->cthis()->getFunction();
|
|
585
655
|
} else {
|
|
586
656
|
auto __resultRef = jni::make_global(__result);
|
|
587
|
-
return [__resultRef](std::
|
|
657
|
+
return [__resultRef](std::string placeId, std::string name, RNLatLng coordinate) -> void {
|
|
658
|
+
return __resultRef->invoke(placeId,name,coordinate);
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
}()) : std::nullopt;
|
|
662
|
+
}
|
|
663
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnPoiPress(const std::optional<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>>& onPoiPress) {
|
|
664
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string_std__string_RNLatLng::javaobject> /* onPoiPress */)>("setOnPoiPress_cxx");
|
|
665
|
+
method(_javaPart, onPoiPress.has_value() ? JFunc_void_std__string_std__string_RNLatLng_cxx::fromCpp(onPoiPress.value()) : nullptr);
|
|
666
|
+
}
|
|
667
|
+
std::optional<std::function<void(const std::string& /* id */)>> JHybridRNGoogleMapsPlusViewSpec::getOnMarkerPress() {
|
|
668
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__string::javaobject>()>("getOnMarkerPress_cxx");
|
|
669
|
+
auto __result = method(_javaPart);
|
|
670
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::string& /* id */)> {
|
|
671
|
+
if (__result->isInstanceOf(JFunc_void_std__string_cxx::javaClassStatic())) [[likely]] {
|
|
672
|
+
auto downcast = jni::static_ref_cast<JFunc_void_std__string_cxx::javaobject>(__result);
|
|
673
|
+
return downcast->cthis()->getFunction();
|
|
674
|
+
} else {
|
|
675
|
+
auto __resultRef = jni::make_global(__result);
|
|
676
|
+
return [__resultRef](std::string id) -> void {
|
|
588
677
|
return __resultRef->invoke(id);
|
|
589
678
|
};
|
|
590
679
|
}
|
|
591
680
|
}()) : std::nullopt;
|
|
592
681
|
}
|
|
593
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnMarkerPress(const std::optional<std::function<void(const std::
|
|
594
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
595
|
-
method(_javaPart, onMarkerPress.has_value() ?
|
|
682
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnMarkerPress(const std::optional<std::function<void(const std::string& /* id */)>>& onMarkerPress) {
|
|
683
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string::javaobject> /* onMarkerPress */)>("setOnMarkerPress_cxx");
|
|
684
|
+
method(_javaPart, onMarkerPress.has_value() ? JFunc_void_std__string_cxx::fromCpp(onMarkerPress.value()) : nullptr);
|
|
596
685
|
}
|
|
597
|
-
std::optional<std::function<void(const std::
|
|
598
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
686
|
+
std::optional<std::function<void(const std::string& /* id */)>> JHybridRNGoogleMapsPlusViewSpec::getOnPolylinePress() {
|
|
687
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__string::javaobject>()>("getOnPolylinePress_cxx");
|
|
599
688
|
auto __result = method(_javaPart);
|
|
600
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
601
|
-
if (__result->isInstanceOf(
|
|
602
|
-
auto downcast = jni::static_ref_cast<
|
|
689
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::string& /* id */)> {
|
|
690
|
+
if (__result->isInstanceOf(JFunc_void_std__string_cxx::javaClassStatic())) [[likely]] {
|
|
691
|
+
auto downcast = jni::static_ref_cast<JFunc_void_std__string_cxx::javaobject>(__result);
|
|
603
692
|
return downcast->cthis()->getFunction();
|
|
604
693
|
} else {
|
|
605
694
|
auto __resultRef = jni::make_global(__result);
|
|
606
|
-
return [__resultRef](std::
|
|
695
|
+
return [__resultRef](std::string id) -> void {
|
|
607
696
|
return __resultRef->invoke(id);
|
|
608
697
|
};
|
|
609
698
|
}
|
|
610
699
|
}()) : std::nullopt;
|
|
611
700
|
}
|
|
612
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnPolylinePress(const std::optional<std::function<void(const std::
|
|
613
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
614
|
-
method(_javaPart, onPolylinePress.has_value() ?
|
|
701
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnPolylinePress(const std::optional<std::function<void(const std::string& /* id */)>>& onPolylinePress) {
|
|
702
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string::javaobject> /* onPolylinePress */)>("setOnPolylinePress_cxx");
|
|
703
|
+
method(_javaPart, onPolylinePress.has_value() ? JFunc_void_std__string_cxx::fromCpp(onPolylinePress.value()) : nullptr);
|
|
615
704
|
}
|
|
616
|
-
std::optional<std::function<void(const std::
|
|
617
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
705
|
+
std::optional<std::function<void(const std::string& /* id */)>> JHybridRNGoogleMapsPlusViewSpec::getOnPolygonPress() {
|
|
706
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__string::javaobject>()>("getOnPolygonPress_cxx");
|
|
618
707
|
auto __result = method(_javaPart);
|
|
619
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
620
|
-
if (__result->isInstanceOf(
|
|
621
|
-
auto downcast = jni::static_ref_cast<
|
|
708
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::string& /* id */)> {
|
|
709
|
+
if (__result->isInstanceOf(JFunc_void_std__string_cxx::javaClassStatic())) [[likely]] {
|
|
710
|
+
auto downcast = jni::static_ref_cast<JFunc_void_std__string_cxx::javaobject>(__result);
|
|
622
711
|
return downcast->cthis()->getFunction();
|
|
623
712
|
} else {
|
|
624
713
|
auto __resultRef = jni::make_global(__result);
|
|
625
|
-
return [__resultRef](std::
|
|
714
|
+
return [__resultRef](std::string id) -> void {
|
|
626
715
|
return __resultRef->invoke(id);
|
|
627
716
|
};
|
|
628
717
|
}
|
|
629
718
|
}()) : std::nullopt;
|
|
630
719
|
}
|
|
631
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnPolygonPress(const std::optional<std::function<void(const std::
|
|
632
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
633
|
-
method(_javaPart, onPolygonPress.has_value() ?
|
|
720
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnPolygonPress(const std::optional<std::function<void(const std::string& /* id */)>>& onPolygonPress) {
|
|
721
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string::javaobject> /* onPolygonPress */)>("setOnPolygonPress_cxx");
|
|
722
|
+
method(_javaPart, onPolygonPress.has_value() ? JFunc_void_std__string_cxx::fromCpp(onPolygonPress.value()) : nullptr);
|
|
634
723
|
}
|
|
635
|
-
std::optional<std::function<void(const std::
|
|
636
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
724
|
+
std::optional<std::function<void(const std::string& /* id */)>> JHybridRNGoogleMapsPlusViewSpec::getOnCirclePress() {
|
|
725
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__string::javaobject>()>("getOnCirclePress_cxx");
|
|
637
726
|
auto __result = method(_javaPart);
|
|
638
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
639
|
-
if (__result->isInstanceOf(
|
|
640
|
-
auto downcast = jni::static_ref_cast<
|
|
727
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::string& /* id */)> {
|
|
728
|
+
if (__result->isInstanceOf(JFunc_void_std__string_cxx::javaClassStatic())) [[likely]] {
|
|
729
|
+
auto downcast = jni::static_ref_cast<JFunc_void_std__string_cxx::javaobject>(__result);
|
|
641
730
|
return downcast->cthis()->getFunction();
|
|
642
731
|
} else {
|
|
643
732
|
auto __resultRef = jni::make_global(__result);
|
|
644
|
-
return [__resultRef](std::
|
|
733
|
+
return [__resultRef](std::string id) -> void {
|
|
645
734
|
return __resultRef->invoke(id);
|
|
646
735
|
};
|
|
647
736
|
}
|
|
648
737
|
}()) : std::nullopt;
|
|
649
738
|
}
|
|
650
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnCirclePress(const std::optional<std::function<void(const std::
|
|
651
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
652
|
-
method(_javaPart, onCirclePress.has_value() ?
|
|
739
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnCirclePress(const std::optional<std::function<void(const std::string& /* id */)>>& onCirclePress) {
|
|
740
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string::javaobject> /* onCirclePress */)>("setOnCirclePress_cxx");
|
|
741
|
+
method(_javaPart, onCirclePress.has_value() ? JFunc_void_std__string_cxx::fromCpp(onCirclePress.value()) : nullptr);
|
|
653
742
|
}
|
|
654
|
-
std::optional<std::function<void(const std::
|
|
655
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
743
|
+
std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> JHybridRNGoogleMapsPlusViewSpec::getOnMarkerDragStart() {
|
|
744
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__string_RNLatLng::javaobject>()>("getOnMarkerDragStart_cxx");
|
|
656
745
|
auto __result = method(_javaPart);
|
|
657
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
658
|
-
if (__result->isInstanceOf(
|
|
659
|
-
auto downcast = jni::static_ref_cast<
|
|
746
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::string& /* id */, const RNLatLng& /* location */)> {
|
|
747
|
+
if (__result->isInstanceOf(JFunc_void_std__string_RNLatLng_cxx::javaClassStatic())) [[likely]] {
|
|
748
|
+
auto downcast = jni::static_ref_cast<JFunc_void_std__string_RNLatLng_cxx::javaobject>(__result);
|
|
660
749
|
return downcast->cthis()->getFunction();
|
|
661
750
|
} else {
|
|
662
751
|
auto __resultRef = jni::make_global(__result);
|
|
663
|
-
return [__resultRef](std::
|
|
752
|
+
return [__resultRef](std::string id, RNLatLng location) -> void {
|
|
664
753
|
return __resultRef->invoke(id,location);
|
|
665
754
|
};
|
|
666
755
|
}
|
|
667
756
|
}()) : std::nullopt;
|
|
668
757
|
}
|
|
669
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnMarkerDragStart(const std::optional<std::function<void(const std::
|
|
670
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
671
|
-
method(_javaPart, onMarkerDragStart.has_value() ?
|
|
758
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnMarkerDragStart(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDragStart) {
|
|
759
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string_RNLatLng::javaobject> /* onMarkerDragStart */)>("setOnMarkerDragStart_cxx");
|
|
760
|
+
method(_javaPart, onMarkerDragStart.has_value() ? JFunc_void_std__string_RNLatLng_cxx::fromCpp(onMarkerDragStart.value()) : nullptr);
|
|
672
761
|
}
|
|
673
|
-
std::optional<std::function<void(const std::
|
|
674
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
762
|
+
std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> JHybridRNGoogleMapsPlusViewSpec::getOnMarkerDrag() {
|
|
763
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__string_RNLatLng::javaobject>()>("getOnMarkerDrag_cxx");
|
|
675
764
|
auto __result = method(_javaPart);
|
|
676
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
677
|
-
if (__result->isInstanceOf(
|
|
678
|
-
auto downcast = jni::static_ref_cast<
|
|
765
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::string& /* id */, const RNLatLng& /* location */)> {
|
|
766
|
+
if (__result->isInstanceOf(JFunc_void_std__string_RNLatLng_cxx::javaClassStatic())) [[likely]] {
|
|
767
|
+
auto downcast = jni::static_ref_cast<JFunc_void_std__string_RNLatLng_cxx::javaobject>(__result);
|
|
679
768
|
return downcast->cthis()->getFunction();
|
|
680
769
|
} else {
|
|
681
770
|
auto __resultRef = jni::make_global(__result);
|
|
682
|
-
return [__resultRef](std::
|
|
771
|
+
return [__resultRef](std::string id, RNLatLng location) -> void {
|
|
683
772
|
return __resultRef->invoke(id,location);
|
|
684
773
|
};
|
|
685
774
|
}
|
|
686
775
|
}()) : std::nullopt;
|
|
687
776
|
}
|
|
688
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnMarkerDrag(const std::optional<std::function<void(const std::
|
|
689
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
690
|
-
method(_javaPart, onMarkerDrag.has_value() ?
|
|
777
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnMarkerDrag(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDrag) {
|
|
778
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string_RNLatLng::javaobject> /* onMarkerDrag */)>("setOnMarkerDrag_cxx");
|
|
779
|
+
method(_javaPart, onMarkerDrag.has_value() ? JFunc_void_std__string_RNLatLng_cxx::fromCpp(onMarkerDrag.value()) : nullptr);
|
|
691
780
|
}
|
|
692
|
-
std::optional<std::function<void(const std::
|
|
693
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
781
|
+
std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> JHybridRNGoogleMapsPlusViewSpec::getOnMarkerDragEnd() {
|
|
782
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__string_RNLatLng::javaobject>()>("getOnMarkerDragEnd_cxx");
|
|
694
783
|
auto __result = method(_javaPart);
|
|
695
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
696
|
-
if (__result->isInstanceOf(
|
|
697
|
-
auto downcast = jni::static_ref_cast<
|
|
784
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::string& /* id */, const RNLatLng& /* location */)> {
|
|
785
|
+
if (__result->isInstanceOf(JFunc_void_std__string_RNLatLng_cxx::javaClassStatic())) [[likely]] {
|
|
786
|
+
auto downcast = jni::static_ref_cast<JFunc_void_std__string_RNLatLng_cxx::javaobject>(__result);
|
|
698
787
|
return downcast->cthis()->getFunction();
|
|
699
788
|
} else {
|
|
700
789
|
auto __resultRef = jni::make_global(__result);
|
|
701
|
-
return [__resultRef](std::
|
|
790
|
+
return [__resultRef](std::string id, RNLatLng location) -> void {
|
|
702
791
|
return __resultRef->invoke(id,location);
|
|
703
792
|
};
|
|
704
793
|
}
|
|
705
794
|
}()) : std::nullopt;
|
|
706
795
|
}
|
|
707
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnMarkerDragEnd(const std::optional<std::function<void(const std::
|
|
708
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
709
|
-
method(_javaPart, onMarkerDragEnd.has_value() ?
|
|
796
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnMarkerDragEnd(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDragEnd) {
|
|
797
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string_RNLatLng::javaobject> /* onMarkerDragEnd */)>("setOnMarkerDragEnd_cxx");
|
|
798
|
+
method(_javaPart, onMarkerDragEnd.has_value() ? JFunc_void_std__string_RNLatLng_cxx::fromCpp(onMarkerDragEnd.value()) : nullptr);
|
|
710
799
|
}
|
|
711
800
|
std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>> JHybridRNGoogleMapsPlusViewSpec::getOnIndoorBuildingFocused() {
|
|
712
801
|
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNIndoorBuilding::javaobject>()>("getOnIndoorBuildingFocused_cxx");
|
|
@@ -746,6 +835,101 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
746
835
|
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_RNIndoorLevel::javaobject> /* onIndoorLevelActivated */)>("setOnIndoorLevelActivated_cxx");
|
|
747
836
|
method(_javaPart, onIndoorLevelActivated.has_value() ? JFunc_void_RNIndoorLevel_cxx::fromCpp(onIndoorLevelActivated.value()) : nullptr);
|
|
748
837
|
}
|
|
838
|
+
std::optional<std::function<void(const std::string& /* id */)>> JHybridRNGoogleMapsPlusViewSpec::getOnInfoWindowPress() {
|
|
839
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__string::javaobject>()>("getOnInfoWindowPress_cxx");
|
|
840
|
+
auto __result = method(_javaPart);
|
|
841
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::string& /* id */)> {
|
|
842
|
+
if (__result->isInstanceOf(JFunc_void_std__string_cxx::javaClassStatic())) [[likely]] {
|
|
843
|
+
auto downcast = jni::static_ref_cast<JFunc_void_std__string_cxx::javaobject>(__result);
|
|
844
|
+
return downcast->cthis()->getFunction();
|
|
845
|
+
} else {
|
|
846
|
+
auto __resultRef = jni::make_global(__result);
|
|
847
|
+
return [__resultRef](std::string id) -> void {
|
|
848
|
+
return __resultRef->invoke(id);
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
}()) : std::nullopt;
|
|
852
|
+
}
|
|
853
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnInfoWindowPress(const std::optional<std::function<void(const std::string& /* id */)>>& onInfoWindowPress) {
|
|
854
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string::javaobject> /* onInfoWindowPress */)>("setOnInfoWindowPress_cxx");
|
|
855
|
+
method(_javaPart, onInfoWindowPress.has_value() ? JFunc_void_std__string_cxx::fromCpp(onInfoWindowPress.value()) : nullptr);
|
|
856
|
+
}
|
|
857
|
+
std::optional<std::function<void(const std::string& /* id */)>> JHybridRNGoogleMapsPlusViewSpec::getOnInfoWindowClose() {
|
|
858
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__string::javaobject>()>("getOnInfoWindowClose_cxx");
|
|
859
|
+
auto __result = method(_javaPart);
|
|
860
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::string& /* id */)> {
|
|
861
|
+
if (__result->isInstanceOf(JFunc_void_std__string_cxx::javaClassStatic())) [[likely]] {
|
|
862
|
+
auto downcast = jni::static_ref_cast<JFunc_void_std__string_cxx::javaobject>(__result);
|
|
863
|
+
return downcast->cthis()->getFunction();
|
|
864
|
+
} else {
|
|
865
|
+
auto __resultRef = jni::make_global(__result);
|
|
866
|
+
return [__resultRef](std::string id) -> void {
|
|
867
|
+
return __resultRef->invoke(id);
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
}()) : std::nullopt;
|
|
871
|
+
}
|
|
872
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnInfoWindowClose(const std::optional<std::function<void(const std::string& /* id */)>>& onInfoWindowClose) {
|
|
873
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string::javaobject> /* onInfoWindowClose */)>("setOnInfoWindowClose_cxx");
|
|
874
|
+
method(_javaPart, onInfoWindowClose.has_value() ? JFunc_void_std__string_cxx::fromCpp(onInfoWindowClose.value()) : nullptr);
|
|
875
|
+
}
|
|
876
|
+
std::optional<std::function<void(const std::string& /* id */)>> JHybridRNGoogleMapsPlusViewSpec::getOnInfoWindowLongPress() {
|
|
877
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__string::javaobject>()>("getOnInfoWindowLongPress_cxx");
|
|
878
|
+
auto __result = method(_javaPart);
|
|
879
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::string& /* id */)> {
|
|
880
|
+
if (__result->isInstanceOf(JFunc_void_std__string_cxx::javaClassStatic())) [[likely]] {
|
|
881
|
+
auto downcast = jni::static_ref_cast<JFunc_void_std__string_cxx::javaobject>(__result);
|
|
882
|
+
return downcast->cthis()->getFunction();
|
|
883
|
+
} else {
|
|
884
|
+
auto __resultRef = jni::make_global(__result);
|
|
885
|
+
return [__resultRef](std::string id) -> void {
|
|
886
|
+
return __resultRef->invoke(id);
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
}()) : std::nullopt;
|
|
890
|
+
}
|
|
891
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnInfoWindowLongPress(const std::optional<std::function<void(const std::string& /* id */)>>& onInfoWindowLongPress) {
|
|
892
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string::javaobject> /* onInfoWindowLongPress */)>("setOnInfoWindowLongPress_cxx");
|
|
893
|
+
method(_javaPart, onInfoWindowLongPress.has_value() ? JFunc_void_std__string_cxx::fromCpp(onInfoWindowLongPress.value()) : nullptr);
|
|
894
|
+
}
|
|
895
|
+
std::optional<std::function<void(const RNLocation& /* location */)>> JHybridRNGoogleMapsPlusViewSpec::getOnMyLocationPress() {
|
|
896
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNLocation::javaobject>()>("getOnMyLocationPress_cxx");
|
|
897
|
+
auto __result = method(_javaPart);
|
|
898
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const RNLocation& /* location */)> {
|
|
899
|
+
if (__result->isInstanceOf(JFunc_void_RNLocation_cxx::javaClassStatic())) [[likely]] {
|
|
900
|
+
auto downcast = jni::static_ref_cast<JFunc_void_RNLocation_cxx::javaobject>(__result);
|
|
901
|
+
return downcast->cthis()->getFunction();
|
|
902
|
+
} else {
|
|
903
|
+
auto __resultRef = jni::make_global(__result);
|
|
904
|
+
return [__resultRef](RNLocation location) -> void {
|
|
905
|
+
return __resultRef->invoke(location);
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
}()) : std::nullopt;
|
|
909
|
+
}
|
|
910
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnMyLocationPress(const std::optional<std::function<void(const RNLocation& /* location */)>>& onMyLocationPress) {
|
|
911
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_RNLocation::javaobject> /* onMyLocationPress */)>("setOnMyLocationPress_cxx");
|
|
912
|
+
method(_javaPart, onMyLocationPress.has_value() ? JFunc_void_RNLocation_cxx::fromCpp(onMyLocationPress.value()) : nullptr);
|
|
913
|
+
}
|
|
914
|
+
std::optional<std::function<void(bool /* pressed */)>> JHybridRNGoogleMapsPlusViewSpec::getOnMyLocationButtonPress() {
|
|
915
|
+
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_bool::javaobject>()>("getOnMyLocationButtonPress_cxx");
|
|
916
|
+
auto __result = method(_javaPart);
|
|
917
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(bool /* pressed */)> {
|
|
918
|
+
if (__result->isInstanceOf(JFunc_void_bool_cxx::javaClassStatic())) [[likely]] {
|
|
919
|
+
auto downcast = jni::static_ref_cast<JFunc_void_bool_cxx::javaobject>(__result);
|
|
920
|
+
return downcast->cthis()->getFunction();
|
|
921
|
+
} else {
|
|
922
|
+
auto __resultRef = jni::make_global(__result);
|
|
923
|
+
return [__resultRef](bool pressed) -> void {
|
|
924
|
+
return __resultRef->invoke(pressed);
|
|
925
|
+
};
|
|
926
|
+
}
|
|
927
|
+
}()) : std::nullopt;
|
|
928
|
+
}
|
|
929
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnMyLocationButtonPress(const std::optional<std::function<void(bool /* pressed */)>>& onMyLocationButtonPress) {
|
|
930
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_bool::javaobject> /* onMyLocationButtonPress */)>("setOnMyLocationButtonPress_cxx");
|
|
931
|
+
method(_javaPart, onMyLocationButtonPress.has_value() ? JFunc_void_bool_cxx::fromCpp(onMyLocationButtonPress.value()) : nullptr);
|
|
932
|
+
}
|
|
749
933
|
std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> JHybridRNGoogleMapsPlusViewSpec::getOnCameraChangeStart() {
|
|
750
934
|
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNRegion_RNCamera_bool::javaobject>()>("getOnCameraChangeStart_cxx");
|
|
751
935
|
auto __result = method(_javaPart);
|
|
@@ -805,6 +989,14 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
805
989
|
}
|
|
806
990
|
|
|
807
991
|
// Methods
|
|
992
|
+
void JHybridRNGoogleMapsPlusViewSpec::showMarkerInfoWindow(const std::string& id) {
|
|
993
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* id */)>("showMarkerInfoWindow");
|
|
994
|
+
method(_javaPart, jni::make_jstring(id));
|
|
995
|
+
}
|
|
996
|
+
void JHybridRNGoogleMapsPlusViewSpec::hideMarkerInfoWindow(const std::string& id) {
|
|
997
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* id */)>("hideMarkerInfoWindow");
|
|
998
|
+
method(_javaPart, jni::make_jstring(id));
|
|
999
|
+
}
|
|
808
1000
|
void JHybridRNGoogleMapsPlusViewSpec::setCamera(const RNCamera& camera, std::optional<bool> animated, std::optional<double> durationMs) {
|
|
809
1001
|
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JRNCamera> /* camera */, jni::alias_ref<jni::JBoolean> /* animated */, jni::alias_ref<jni::JDouble> /* durationMs */)>("setCamera");
|
|
810
1002
|
method(_javaPart, JRNCamera::fromCpp(camera), animated.has_value() ? jni::JBoolean::valueOf(animated.value()) : nullptr, durationMs.has_value() ? jni::JDouble::valueOf(durationMs.value()) : nullptr);
|
|
@@ -83,36 +83,54 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
83
83
|
void setHeatmaps(const std::optional<std::vector<RNHeatmap>>& heatmaps) override;
|
|
84
84
|
std::optional<std::vector<RNKMLayer>> getKmlLayers() override;
|
|
85
85
|
void setKmlLayers(const std::optional<std::vector<RNKMLayer>>& kmlLayers) override;
|
|
86
|
+
std::optional<std::vector<RNUrlTileOverlay>> getUrlTileOverlays() override;
|
|
87
|
+
void setUrlTileOverlays(const std::optional<std::vector<RNUrlTileOverlay>>& urlTileOverlays) override;
|
|
86
88
|
std::optional<RNLocationConfig> getLocationConfig() override;
|
|
87
89
|
void setLocationConfig(const std::optional<RNLocationConfig>& locationConfig) override;
|
|
88
90
|
std::optional<std::function<void(RNMapErrorCode /* error */)>> getOnMapError() override;
|
|
89
91
|
void setOnMapError(const std::optional<std::function<void(RNMapErrorCode /* error */)>>& onMapError) override;
|
|
90
92
|
std::optional<std::function<void(bool /* ready */)>> getOnMapReady() override;
|
|
91
93
|
void setOnMapReady(const std::optional<std::function<void(bool /* ready */)>>& onMapReady) override;
|
|
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;
|
|
92
96
|
std::optional<std::function<void(const RNLocation& /* location */)>> getOnLocationUpdate() override;
|
|
93
97
|
void setOnLocationUpdate(const std::optional<std::function<void(const RNLocation& /* location */)>>& onLocationUpdate) override;
|
|
94
98
|
std::optional<std::function<void(RNLocationErrorCode /* error */)>> getOnLocationError() override;
|
|
95
99
|
void setOnLocationError(const std::optional<std::function<void(RNLocationErrorCode /* error */)>>& onLocationError) override;
|
|
96
100
|
std::optional<std::function<void(const RNLatLng& /* coordinate */)>> getOnMapPress() override;
|
|
97
101
|
void setOnMapPress(const std::optional<std::function<void(const RNLatLng& /* coordinate */)>>& onMapPress) override;
|
|
98
|
-
std::optional<std::function<void(const
|
|
99
|
-
void
|
|
100
|
-
std::optional<std::function<void(const std::
|
|
101
|
-
void
|
|
102
|
-
std::optional<std::function<void(const std::
|
|
103
|
-
void
|
|
104
|
-
std::optional<std::function<void(const std::
|
|
105
|
-
void
|
|
106
|
-
std::optional<std::function<void(const std::
|
|
107
|
-
void
|
|
108
|
-
std::optional<std::function<void(const std::
|
|
109
|
-
void
|
|
110
|
-
std::optional<std::function<void(const std::
|
|
111
|
-
void
|
|
102
|
+
std::optional<std::function<void(const RNLatLng& /* coordinate */)>> getOnMapLongPress() override;
|
|
103
|
+
void setOnMapLongPress(const std::optional<std::function<void(const RNLatLng& /* coordinate */)>>& onMapLongPress) override;
|
|
104
|
+
std::optional<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>> getOnPoiPress() override;
|
|
105
|
+
void setOnPoiPress(const std::optional<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>>& onPoiPress) override;
|
|
106
|
+
std::optional<std::function<void(const std::string& /* id */)>> getOnMarkerPress() override;
|
|
107
|
+
void setOnMarkerPress(const std::optional<std::function<void(const std::string& /* id */)>>& onMarkerPress) override;
|
|
108
|
+
std::optional<std::function<void(const std::string& /* id */)>> getOnPolylinePress() override;
|
|
109
|
+
void setOnPolylinePress(const std::optional<std::function<void(const std::string& /* id */)>>& onPolylinePress) override;
|
|
110
|
+
std::optional<std::function<void(const std::string& /* id */)>> getOnPolygonPress() override;
|
|
111
|
+
void setOnPolygonPress(const std::optional<std::function<void(const std::string& /* id */)>>& onPolygonPress) override;
|
|
112
|
+
std::optional<std::function<void(const std::string& /* id */)>> getOnCirclePress() override;
|
|
113
|
+
void setOnCirclePress(const std::optional<std::function<void(const std::string& /* id */)>>& onCirclePress) override;
|
|
114
|
+
std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> getOnMarkerDragStart() override;
|
|
115
|
+
void setOnMarkerDragStart(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDragStart) override;
|
|
116
|
+
std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> getOnMarkerDrag() override;
|
|
117
|
+
void setOnMarkerDrag(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDrag) override;
|
|
118
|
+
std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> getOnMarkerDragEnd() override;
|
|
119
|
+
void setOnMarkerDragEnd(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDragEnd) override;
|
|
112
120
|
std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>> getOnIndoorBuildingFocused() override;
|
|
113
121
|
void setOnIndoorBuildingFocused(const std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>>& onIndoorBuildingFocused) override;
|
|
114
122
|
std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>> getOnIndoorLevelActivated() override;
|
|
115
123
|
void setOnIndoorLevelActivated(const std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>>& onIndoorLevelActivated) override;
|
|
124
|
+
std::optional<std::function<void(const std::string& /* id */)>> getOnInfoWindowPress() override;
|
|
125
|
+
void setOnInfoWindowPress(const std::optional<std::function<void(const std::string& /* id */)>>& onInfoWindowPress) override;
|
|
126
|
+
std::optional<std::function<void(const std::string& /* id */)>> getOnInfoWindowClose() override;
|
|
127
|
+
void setOnInfoWindowClose(const std::optional<std::function<void(const std::string& /* id */)>>& onInfoWindowClose) override;
|
|
128
|
+
std::optional<std::function<void(const std::string& /* id */)>> getOnInfoWindowLongPress() override;
|
|
129
|
+
void setOnInfoWindowLongPress(const std::optional<std::function<void(const std::string& /* id */)>>& onInfoWindowLongPress) override;
|
|
130
|
+
std::optional<std::function<void(const RNLocation& /* location */)>> getOnMyLocationPress() override;
|
|
131
|
+
void setOnMyLocationPress(const std::optional<std::function<void(const RNLocation& /* location */)>>& onMyLocationPress) override;
|
|
132
|
+
std::optional<std::function<void(bool /* pressed */)>> getOnMyLocationButtonPress() override;
|
|
133
|
+
void setOnMyLocationButtonPress(const std::optional<std::function<void(bool /* pressed */)>>& onMyLocationButtonPress) override;
|
|
116
134
|
std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> getOnCameraChangeStart() override;
|
|
117
135
|
void setOnCameraChangeStart(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>& onCameraChangeStart) override;
|
|
118
136
|
std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> getOnCameraChange() override;
|
|
@@ -122,6 +140,8 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
122
140
|
|
|
123
141
|
public:
|
|
124
142
|
// Methods
|
|
143
|
+
void showMarkerInfoWindow(const std::string& id) override;
|
|
144
|
+
void hideMarkerInfoWindow(const std::string& id) override;
|
|
125
145
|
void setCamera(const RNCamera& camera, std::optional<bool> animated, std::optional<double> durationMs) override;
|
|
126
146
|
void setCameraToCoordinates(const std::vector<RNLatLng>& coordinates, const std::optional<RNMapPadding>& padding, std::optional<bool> animated, std::optional<double> durationMs) override;
|
|
127
147
|
void setCameraBounds(const std::optional<RNLatLngBounds>& bounds) override;
|