react-native-google-maps-plus 1.7.0-dev.1 → 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/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +457 -451
- package/android/src/main/java/com/rngooglemapsplus/LocationHandler.kt +3 -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 +103 -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 +84 -34
- 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 +164 -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 +68 -11
- 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 +7 -0
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +18 -9
- 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 +237 -83
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +32 -16
- 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 +28 -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 +122 -24
- 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 +168 -43
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +3 -0
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +86 -22
- package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +35 -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 +17 -8
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +340 -138
- 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 +16 -0
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +41 -22
- 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 +100 -16
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +18 -10
- package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +7 -0
- package/package.json +4 -2
- package/src/RNGoogleMapsPlusView.nitro.ts +20 -8
- 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,24 +550,24 @@ 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
|
}
|
|
521
|
-
std::optional<std::function<void(
|
|
522
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
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");
|
|
523
555
|
auto __result = method(_javaPart);
|
|
524
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(
|
|
525
|
-
if (__result->isInstanceOf(
|
|
526
|
-
auto downcast = jni::static_ref_cast<
|
|
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);
|
|
527
559
|
return downcast->cthis()->getFunction();
|
|
528
560
|
} else {
|
|
529
561
|
auto __resultRef = jni::make_global(__result);
|
|
530
|
-
return [__resultRef](
|
|
531
|
-
return __resultRef->invoke(
|
|
562
|
+
return [__resultRef](RNRegion region, RNCamera camera) -> void {
|
|
563
|
+
return __resultRef->invoke(region,camera);
|
|
532
564
|
};
|
|
533
565
|
}
|
|
534
566
|
}()) : std::nullopt;
|
|
535
567
|
}
|
|
536
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnMapLoaded(const std::optional<std::function<void(
|
|
537
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
538
|
-
method(_javaPart, onMapLoaded.has_value() ?
|
|
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);
|
|
539
571
|
}
|
|
540
572
|
std::optional<std::function<void(const RNLocation& /* location */)>> JHybridRNGoogleMapsPlusViewSpec::getOnLocationUpdate() {
|
|
541
573
|
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNLocation::javaobject>()>("getOnLocationUpdate_cxx");
|
|
@@ -613,138 +645,157 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
613
645
|
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_RNLatLng::javaobject> /* onMapLongPress */)>("setOnMapLongPress_cxx");
|
|
614
646
|
method(_javaPart, onMapLongPress.has_value() ? JFunc_void_RNLatLng_cxx::fromCpp(onMapLongPress.value()) : nullptr);
|
|
615
647
|
}
|
|
616
|
-
std::optional<std::function<void(const std::
|
|
617
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
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");
|
|
618
650
|
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<
|
|
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);
|
|
622
654
|
return downcast->cthis()->getFunction();
|
|
623
655
|
} else {
|
|
624
656
|
auto __resultRef = jni::make_global(__result);
|
|
625
|
-
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 {
|
|
626
677
|
return __resultRef->invoke(id);
|
|
627
678
|
};
|
|
628
679
|
}
|
|
629
680
|
}()) : std::nullopt;
|
|
630
681
|
}
|
|
631
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnMarkerPress(const std::optional<std::function<void(const std::
|
|
632
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
633
|
-
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);
|
|
634
685
|
}
|
|
635
|
-
std::optional<std::function<void(const std::
|
|
636
|
-
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");
|
|
637
688
|
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<
|
|
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);
|
|
641
692
|
return downcast->cthis()->getFunction();
|
|
642
693
|
} else {
|
|
643
694
|
auto __resultRef = jni::make_global(__result);
|
|
644
|
-
return [__resultRef](std::
|
|
695
|
+
return [__resultRef](std::string id) -> void {
|
|
645
696
|
return __resultRef->invoke(id);
|
|
646
697
|
};
|
|
647
698
|
}
|
|
648
699
|
}()) : std::nullopt;
|
|
649
700
|
}
|
|
650
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnPolylinePress(const std::optional<std::function<void(const std::
|
|
651
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
652
|
-
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);
|
|
653
704
|
}
|
|
654
|
-
std::optional<std::function<void(const std::
|
|
655
|
-
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");
|
|
656
707
|
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<
|
|
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);
|
|
660
711
|
return downcast->cthis()->getFunction();
|
|
661
712
|
} else {
|
|
662
713
|
auto __resultRef = jni::make_global(__result);
|
|
663
|
-
return [__resultRef](std::
|
|
714
|
+
return [__resultRef](std::string id) -> void {
|
|
664
715
|
return __resultRef->invoke(id);
|
|
665
716
|
};
|
|
666
717
|
}
|
|
667
718
|
}()) : std::nullopt;
|
|
668
719
|
}
|
|
669
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnPolygonPress(const std::optional<std::function<void(const std::
|
|
670
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
671
|
-
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);
|
|
672
723
|
}
|
|
673
|
-
std::optional<std::function<void(const std::
|
|
674
|
-
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");
|
|
675
726
|
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<
|
|
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);
|
|
679
730
|
return downcast->cthis()->getFunction();
|
|
680
731
|
} else {
|
|
681
732
|
auto __resultRef = jni::make_global(__result);
|
|
682
|
-
return [__resultRef](std::
|
|
733
|
+
return [__resultRef](std::string id) -> void {
|
|
683
734
|
return __resultRef->invoke(id);
|
|
684
735
|
};
|
|
685
736
|
}
|
|
686
737
|
}()) : std::nullopt;
|
|
687
738
|
}
|
|
688
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnCirclePress(const std::optional<std::function<void(const std::
|
|
689
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
690
|
-
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);
|
|
691
742
|
}
|
|
692
|
-
std::optional<std::function<void(const std::
|
|
693
|
-
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");
|
|
694
745
|
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<
|
|
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);
|
|
698
749
|
return downcast->cthis()->getFunction();
|
|
699
750
|
} else {
|
|
700
751
|
auto __resultRef = jni::make_global(__result);
|
|
701
|
-
return [__resultRef](std::
|
|
752
|
+
return [__resultRef](std::string id, RNLatLng location) -> void {
|
|
702
753
|
return __resultRef->invoke(id,location);
|
|
703
754
|
};
|
|
704
755
|
}
|
|
705
756
|
}()) : std::nullopt;
|
|
706
757
|
}
|
|
707
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnMarkerDragStart(const std::optional<std::function<void(const std::
|
|
708
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
709
|
-
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);
|
|
710
761
|
}
|
|
711
|
-
std::optional<std::function<void(const std::
|
|
712
|
-
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");
|
|
713
764
|
auto __result = method(_javaPart);
|
|
714
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
715
|
-
if (__result->isInstanceOf(
|
|
716
|
-
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);
|
|
717
768
|
return downcast->cthis()->getFunction();
|
|
718
769
|
} else {
|
|
719
770
|
auto __resultRef = jni::make_global(__result);
|
|
720
|
-
return [__resultRef](std::
|
|
771
|
+
return [__resultRef](std::string id, RNLatLng location) -> void {
|
|
721
772
|
return __resultRef->invoke(id,location);
|
|
722
773
|
};
|
|
723
774
|
}
|
|
724
775
|
}()) : std::nullopt;
|
|
725
776
|
}
|
|
726
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnMarkerDrag(const std::optional<std::function<void(const std::
|
|
727
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
728
|
-
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);
|
|
729
780
|
}
|
|
730
|
-
std::optional<std::function<void(const std::
|
|
731
|
-
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");
|
|
732
783
|
auto __result = method(_javaPart);
|
|
733
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
734
|
-
if (__result->isInstanceOf(
|
|
735
|
-
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);
|
|
736
787
|
return downcast->cthis()->getFunction();
|
|
737
788
|
} else {
|
|
738
789
|
auto __resultRef = jni::make_global(__result);
|
|
739
|
-
return [__resultRef](std::
|
|
790
|
+
return [__resultRef](std::string id, RNLatLng location) -> void {
|
|
740
791
|
return __resultRef->invoke(id,location);
|
|
741
792
|
};
|
|
742
793
|
}
|
|
743
794
|
}()) : std::nullopt;
|
|
744
795
|
}
|
|
745
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnMarkerDragEnd(const std::optional<std::function<void(const std::
|
|
746
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
747
|
-
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);
|
|
748
799
|
}
|
|
749
800
|
std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>> JHybridRNGoogleMapsPlusViewSpec::getOnIndoorBuildingFocused() {
|
|
750
801
|
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNIndoorBuilding::javaobject>()>("getOnIndoorBuildingFocused_cxx");
|
|
@@ -784,6 +835,101 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
784
835
|
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_RNIndoorLevel::javaobject> /* onIndoorLevelActivated */)>("setOnIndoorLevelActivated_cxx");
|
|
785
836
|
method(_javaPart, onIndoorLevelActivated.has_value() ? JFunc_void_RNIndoorLevel_cxx::fromCpp(onIndoorLevelActivated.value()) : nullptr);
|
|
786
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
|
+
}
|
|
787
933
|
std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> JHybridRNGoogleMapsPlusViewSpec::getOnCameraChangeStart() {
|
|
788
934
|
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNRegion_RNCamera_bool::javaobject>()>("getOnCameraChangeStart_cxx");
|
|
789
935
|
auto __result = method(_javaPart);
|
|
@@ -843,6 +989,14 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
843
989
|
}
|
|
844
990
|
|
|
845
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
|
+
}
|
|
846
1000
|
void JHybridRNGoogleMapsPlusViewSpec::setCamera(const RNCamera& camera, std::optional<bool> animated, std::optional<double> durationMs) {
|
|
847
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");
|
|
848
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,14 +83,16 @@ 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;
|
|
92
|
-
std::optional<std::function<void(
|
|
93
|
-
void setOnMapLoaded(const std::optional<std::function<void(
|
|
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;
|
|
94
96
|
std::optional<std::function<void(const RNLocation& /* location */)>> getOnLocationUpdate() override;
|
|
95
97
|
void setOnLocationUpdate(const std::optional<std::function<void(const RNLocation& /* location */)>>& onLocationUpdate) override;
|
|
96
98
|
std::optional<std::function<void(RNLocationErrorCode /* error */)>> getOnLocationError() override;
|
|
@@ -99,24 +101,36 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
99
101
|
void setOnMapPress(const std::optional<std::function<void(const RNLatLng& /* coordinate */)>>& onMapPress) override;
|
|
100
102
|
std::optional<std::function<void(const RNLatLng& /* coordinate */)>> getOnMapLongPress() override;
|
|
101
103
|
void setOnMapLongPress(const std::optional<std::function<void(const RNLatLng& /* coordinate */)>>& onMapLongPress) override;
|
|
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
|
|
112
|
-
std::optional<std::function<void(const std::
|
|
113
|
-
void
|
|
114
|
-
std::optional<std::function<void(const std::
|
|
115
|
-
void
|
|
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;
|
|
116
120
|
std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>> getOnIndoorBuildingFocused() override;
|
|
117
121
|
void setOnIndoorBuildingFocused(const std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>>& onIndoorBuildingFocused) override;
|
|
118
122
|
std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>> getOnIndoorLevelActivated() override;
|
|
119
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;
|
|
120
134
|
std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> getOnCameraChangeStart() override;
|
|
121
135
|
void setOnCameraChangeStart(const std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>>& onCameraChangeStart) override;
|
|
122
136
|
std::optional<std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>> getOnCameraChange() override;
|
|
@@ -126,6 +140,8 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
126
140
|
|
|
127
141
|
public:
|
|
128
142
|
// Methods
|
|
143
|
+
void showMarkerInfoWindow(const std::string& id) override;
|
|
144
|
+
void hideMarkerInfoWindow(const std::string& id) override;
|
|
129
145
|
void setCamera(const RNCamera& camera, std::optional<bool> animated, std::optional<double> durationMs) override;
|
|
130
146
|
void setCameraToCoordinates(const std::vector<RNLatLng>& coordinates, const std::optional<RNMapPadding>& padding, std::optional<bool> animated, std::optional<double> durationMs) override;
|
|
131
147
|
void setCameraBounds(const std::optional<RNLatLngBounds>& bounds) override;
|