react-native-google-maps-plus 1.7.0-dev.9 → 1.7.0
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 +120 -124
- package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +33 -0
- package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +27 -11
- package/android/src/main/java/com/rngooglemapsplus/extensions/BitmapExtension.kt +35 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/LatLngBoundsExtension.kt +31 -0
- package/android/src/main/java/com/rngooglemapsplus/extensions/MapObjectTagExtensions.kt +84 -0
- package/ios/GoogleMapViewImpl.swift +81 -64
- package/ios/MapMarkerBuilder.swift +55 -2
- package/ios/RNGoogleMapsPlusView.swift +20 -10
- package/ios/extensions/MapObjectTag+Extension.swift +93 -0
- package/ios/extensions/UIImage+Extension.swift +45 -0
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +12 -10
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +1 -0
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +4 -4
- package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +75 -0
- package/nitrogen/generated/android/c++/JFunc_void_std__string_RNLatLng.hpp +77 -0
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +100 -92
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +22 -20
- package/nitrogen/generated/android/c++/JRNMarker.hpp +7 -3
- 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/HybridRNGoogleMapsPlusViewSpec.kt +38 -30
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +6 -3
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +16 -8
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +58 -36
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +32 -20
- 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/HybridRNGoogleMapsPlusViewSpec.swift +12 -10
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +142 -180
- package/nitrogen/generated/ios/swift/RNMarker.swift +24 -1
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +2 -0
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +22 -20
- package/nitrogen/generated/shared/c++/RNMarker.hpp +6 -2
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +20 -20
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +10 -10
- package/package.json +1 -1
- package/src/RNGoogleMapsPlusView.nitro.ts +14 -10
- package/src/types.ts +1 -0
- 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
|
@@ -173,8 +173,8 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotResultType; }
|
|
|
173
173
|
#include "JRNLocationErrorCode.hpp"
|
|
174
174
|
#include "JFunc_void_RNLatLng.hpp"
|
|
175
175
|
#include "JFunc_void_std__string_std__string_RNLatLng.hpp"
|
|
176
|
-
#include "
|
|
177
|
-
#include "
|
|
176
|
+
#include "JFunc_void_std__string.hpp"
|
|
177
|
+
#include "JFunc_void_std__string_RNLatLng.hpp"
|
|
178
178
|
#include "RNIndoorBuilding.hpp"
|
|
179
179
|
#include "JFunc_void_RNIndoorBuilding.hpp"
|
|
180
180
|
#include "JRNIndoorBuilding.hpp"
|
|
@@ -664,138 +664,138 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
664
664
|
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string_std__string_RNLatLng::javaobject> /* onPoiPress */)>("setOnPoiPress_cxx");
|
|
665
665
|
method(_javaPart, onPoiPress.has_value() ? JFunc_void_std__string_std__string_RNLatLng_cxx::fromCpp(onPoiPress.value()) : nullptr);
|
|
666
666
|
}
|
|
667
|
-
std::optional<std::function<void(const std::
|
|
668
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
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
669
|
auto __result = method(_javaPart);
|
|
670
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
671
|
-
if (__result->isInstanceOf(
|
|
672
|
-
auto downcast = jni::static_ref_cast<
|
|
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
673
|
return downcast->cthis()->getFunction();
|
|
674
674
|
} else {
|
|
675
675
|
auto __resultRef = jni::make_global(__result);
|
|
676
|
-
return [__resultRef](std::
|
|
676
|
+
return [__resultRef](std::string id) -> void {
|
|
677
677
|
return __resultRef->invoke(id);
|
|
678
678
|
};
|
|
679
679
|
}
|
|
680
680
|
}()) : std::nullopt;
|
|
681
681
|
}
|
|
682
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnMarkerPress(const std::optional<std::function<void(const std::
|
|
683
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
684
|
-
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);
|
|
685
685
|
}
|
|
686
|
-
std::optional<std::function<void(const std::
|
|
687
|
-
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");
|
|
688
688
|
auto __result = method(_javaPart);
|
|
689
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
690
|
-
if (__result->isInstanceOf(
|
|
691
|
-
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);
|
|
692
692
|
return downcast->cthis()->getFunction();
|
|
693
693
|
} else {
|
|
694
694
|
auto __resultRef = jni::make_global(__result);
|
|
695
|
-
return [__resultRef](std::
|
|
695
|
+
return [__resultRef](std::string id) -> void {
|
|
696
696
|
return __resultRef->invoke(id);
|
|
697
697
|
};
|
|
698
698
|
}
|
|
699
699
|
}()) : std::nullopt;
|
|
700
700
|
}
|
|
701
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnPolylinePress(const std::optional<std::function<void(const std::
|
|
702
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
703
|
-
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);
|
|
704
704
|
}
|
|
705
|
-
std::optional<std::function<void(const std::
|
|
706
|
-
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");
|
|
707
707
|
auto __result = method(_javaPart);
|
|
708
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
709
|
-
if (__result->isInstanceOf(
|
|
710
|
-
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);
|
|
711
711
|
return downcast->cthis()->getFunction();
|
|
712
712
|
} else {
|
|
713
713
|
auto __resultRef = jni::make_global(__result);
|
|
714
|
-
return [__resultRef](std::
|
|
714
|
+
return [__resultRef](std::string id) -> void {
|
|
715
715
|
return __resultRef->invoke(id);
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
718
|
}()) : std::nullopt;
|
|
719
719
|
}
|
|
720
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnPolygonPress(const std::optional<std::function<void(const std::
|
|
721
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
722
|
-
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);
|
|
723
723
|
}
|
|
724
|
-
std::optional<std::function<void(const std::
|
|
725
|
-
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");
|
|
726
726
|
auto __result = method(_javaPart);
|
|
727
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
728
|
-
if (__result->isInstanceOf(
|
|
729
|
-
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);
|
|
730
730
|
return downcast->cthis()->getFunction();
|
|
731
731
|
} else {
|
|
732
732
|
auto __resultRef = jni::make_global(__result);
|
|
733
|
-
return [__resultRef](std::
|
|
733
|
+
return [__resultRef](std::string id) -> void {
|
|
734
734
|
return __resultRef->invoke(id);
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
737
|
}()) : std::nullopt;
|
|
738
738
|
}
|
|
739
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnCirclePress(const std::optional<std::function<void(const std::
|
|
740
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
741
|
-
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);
|
|
742
742
|
}
|
|
743
|
-
std::optional<std::function<void(const std::
|
|
744
|
-
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");
|
|
745
745
|
auto __result = method(_javaPart);
|
|
746
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
747
|
-
if (__result->isInstanceOf(
|
|
748
|
-
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);
|
|
749
749
|
return downcast->cthis()->getFunction();
|
|
750
750
|
} else {
|
|
751
751
|
auto __resultRef = jni::make_global(__result);
|
|
752
|
-
return [__resultRef](std::
|
|
752
|
+
return [__resultRef](std::string id, RNLatLng location) -> void {
|
|
753
753
|
return __resultRef->invoke(id,location);
|
|
754
754
|
};
|
|
755
755
|
}
|
|
756
756
|
}()) : std::nullopt;
|
|
757
757
|
}
|
|
758
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnMarkerDragStart(const std::optional<std::function<void(const std::
|
|
759
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
760
|
-
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);
|
|
761
761
|
}
|
|
762
|
-
std::optional<std::function<void(const std::
|
|
763
|
-
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");
|
|
764
764
|
auto __result = method(_javaPart);
|
|
765
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
766
|
-
if (__result->isInstanceOf(
|
|
767
|
-
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);
|
|
768
768
|
return downcast->cthis()->getFunction();
|
|
769
769
|
} else {
|
|
770
770
|
auto __resultRef = jni::make_global(__result);
|
|
771
|
-
return [__resultRef](std::
|
|
771
|
+
return [__resultRef](std::string id, RNLatLng location) -> void {
|
|
772
772
|
return __resultRef->invoke(id,location);
|
|
773
773
|
};
|
|
774
774
|
}
|
|
775
775
|
}()) : std::nullopt;
|
|
776
776
|
}
|
|
777
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnMarkerDrag(const std::optional<std::function<void(const std::
|
|
778
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
779
|
-
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);
|
|
780
780
|
}
|
|
781
|
-
std::optional<std::function<void(const std::
|
|
782
|
-
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");
|
|
783
783
|
auto __result = method(_javaPart);
|
|
784
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
785
|
-
if (__result->isInstanceOf(
|
|
786
|
-
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);
|
|
787
787
|
return downcast->cthis()->getFunction();
|
|
788
788
|
} else {
|
|
789
789
|
auto __resultRef = jni::make_global(__result);
|
|
790
|
-
return [__resultRef](std::
|
|
790
|
+
return [__resultRef](std::string id, RNLatLng location) -> void {
|
|
791
791
|
return __resultRef->invoke(id,location);
|
|
792
792
|
};
|
|
793
793
|
}
|
|
794
794
|
}()) : std::nullopt;
|
|
795
795
|
}
|
|
796
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnMarkerDragEnd(const std::optional<std::function<void(const std::
|
|
797
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
798
|
-
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);
|
|
799
799
|
}
|
|
800
800
|
std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>> JHybridRNGoogleMapsPlusViewSpec::getOnIndoorBuildingFocused() {
|
|
801
801
|
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNIndoorBuilding::javaobject>()>("getOnIndoorBuildingFocused_cxx");
|
|
@@ -835,62 +835,62 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
835
835
|
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_RNIndoorLevel::javaobject> /* onIndoorLevelActivated */)>("setOnIndoorLevelActivated_cxx");
|
|
836
836
|
method(_javaPart, onIndoorLevelActivated.has_value() ? JFunc_void_RNIndoorLevel_cxx::fromCpp(onIndoorLevelActivated.value()) : nullptr);
|
|
837
837
|
}
|
|
838
|
-
std::optional<std::function<void(const std::
|
|
839
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
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
840
|
auto __result = method(_javaPart);
|
|
841
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
842
|
-
if (__result->isInstanceOf(
|
|
843
|
-
auto downcast = jni::static_ref_cast<
|
|
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
844
|
return downcast->cthis()->getFunction();
|
|
845
845
|
} else {
|
|
846
846
|
auto __resultRef = jni::make_global(__result);
|
|
847
|
-
return [__resultRef](std::
|
|
847
|
+
return [__resultRef](std::string id) -> void {
|
|
848
848
|
return __resultRef->invoke(id);
|
|
849
849
|
};
|
|
850
850
|
}
|
|
851
851
|
}()) : std::nullopt;
|
|
852
852
|
}
|
|
853
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnInfoWindowPress(const std::optional<std::function<void(const std::
|
|
854
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
855
|
-
method(_javaPart, onInfoWindowPress.has_value() ?
|
|
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
856
|
}
|
|
857
|
-
std::optional<std::function<void(const std::
|
|
858
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
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
859
|
auto __result = method(_javaPart);
|
|
860
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
861
|
-
if (__result->isInstanceOf(
|
|
862
|
-
auto downcast = jni::static_ref_cast<
|
|
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
863
|
return downcast->cthis()->getFunction();
|
|
864
864
|
} else {
|
|
865
865
|
auto __resultRef = jni::make_global(__result);
|
|
866
|
-
return [__resultRef](std::
|
|
866
|
+
return [__resultRef](std::string id) -> void {
|
|
867
867
|
return __resultRef->invoke(id);
|
|
868
868
|
};
|
|
869
869
|
}
|
|
870
870
|
}()) : std::nullopt;
|
|
871
871
|
}
|
|
872
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnInfoWindowClose(const std::optional<std::function<void(const std::
|
|
873
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
874
|
-
method(_javaPart, onInfoWindowClose.has_value() ?
|
|
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
875
|
}
|
|
876
|
-
std::optional<std::function<void(const std::
|
|
877
|
-
static const auto method = javaClassStatic()->getMethod<jni::local_ref<
|
|
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
878
|
auto __result = method(_javaPart);
|
|
879
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::
|
|
880
|
-
if (__result->isInstanceOf(
|
|
881
|
-
auto downcast = jni::static_ref_cast<
|
|
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
882
|
return downcast->cthis()->getFunction();
|
|
883
883
|
} else {
|
|
884
884
|
auto __resultRef = jni::make_global(__result);
|
|
885
|
-
return [__resultRef](std::
|
|
885
|
+
return [__resultRef](std::string id) -> void {
|
|
886
886
|
return __resultRef->invoke(id);
|
|
887
887
|
};
|
|
888
888
|
}
|
|
889
889
|
}()) : std::nullopt;
|
|
890
890
|
}
|
|
891
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnInfoWindowLongPress(const std::optional<std::function<void(const std::
|
|
892
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<
|
|
893
|
-
method(_javaPart, onInfoWindowLongPress.has_value() ?
|
|
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
894
|
}
|
|
895
895
|
std::optional<std::function<void(const RNLocation& /* location */)>> JHybridRNGoogleMapsPlusViewSpec::getOnMyLocationPress() {
|
|
896
896
|
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNLocation::javaobject>()>("getOnMyLocationPress_cxx");
|
|
@@ -989,6 +989,14 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
989
989
|
}
|
|
990
990
|
|
|
991
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
|
+
}
|
|
992
1000
|
void JHybridRNGoogleMapsPlusViewSpec::setCamera(const RNCamera& camera, std::optional<bool> animated, std::optional<double> durationMs) {
|
|
993
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");
|
|
994
1002
|
method(_javaPart, JRNCamera::fromCpp(camera), animated.has_value() ? jni::JBoolean::valueOf(animated.value()) : nullptr, durationMs.has_value() ? jni::JDouble::valueOf(durationMs.value()) : nullptr);
|
|
@@ -103,30 +103,30 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
103
103
|
void setOnMapLongPress(const std::optional<std::function<void(const RNLatLng& /* coordinate */)>>& onMapLongPress) override;
|
|
104
104
|
std::optional<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>> getOnPoiPress() override;
|
|
105
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::
|
|
107
|
-
void setOnMarkerPress(const std::optional<std::function<void(const std::
|
|
108
|
-
std::optional<std::function<void(const std::
|
|
109
|
-
void setOnPolylinePress(const std::optional<std::function<void(const std::
|
|
110
|
-
std::optional<std::function<void(const std::
|
|
111
|
-
void setOnPolygonPress(const std::optional<std::function<void(const std::
|
|
112
|
-
std::optional<std::function<void(const std::
|
|
113
|
-
void setOnCirclePress(const std::optional<std::function<void(const std::
|
|
114
|
-
std::optional<std::function<void(const std::
|
|
115
|
-
void setOnMarkerDragStart(const std::optional<std::function<void(const std::
|
|
116
|
-
std::optional<std::function<void(const std::
|
|
117
|
-
void setOnMarkerDrag(const std::optional<std::function<void(const std::
|
|
118
|
-
std::optional<std::function<void(const std::
|
|
119
|
-
void setOnMarkerDragEnd(const std::optional<std::function<void(const std::
|
|
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;
|
|
120
120
|
std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>> getOnIndoorBuildingFocused() override;
|
|
121
121
|
void setOnIndoorBuildingFocused(const std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>>& onIndoorBuildingFocused) override;
|
|
122
122
|
std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>> getOnIndoorLevelActivated() override;
|
|
123
123
|
void setOnIndoorLevelActivated(const std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>>& onIndoorLevelActivated) override;
|
|
124
|
-
std::optional<std::function<void(const std::
|
|
125
|
-
void setOnInfoWindowPress(const std::optional<std::function<void(const std::
|
|
126
|
-
std::optional<std::function<void(const std::
|
|
127
|
-
void setOnInfoWindowClose(const std::optional<std::function<void(const std::
|
|
128
|
-
std::optional<std::function<void(const std::
|
|
129
|
-
void setOnInfoWindowLongPress(const std::optional<std::function<void(const std::
|
|
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
130
|
std::optional<std::function<void(const RNLocation& /* location */)>> getOnMyLocationPress() override;
|
|
131
131
|
void setOnMyLocationPress(const std::optional<std::function<void(const RNLocation& /* location */)>>& onMyLocationPress) override;
|
|
132
132
|
std::optional<std::function<void(bool /* pressed */)>> getOnMyLocationButtonPress() override;
|
|
@@ -140,6 +140,8 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
140
140
|
|
|
141
141
|
public:
|
|
142
142
|
// Methods
|
|
143
|
+
void showMarkerInfoWindow(const std::string& id) override;
|
|
144
|
+
void hideMarkerInfoWindow(const std::string& id) override;
|
|
143
145
|
void setCamera(const RNCamera& camera, std::optional<bool> animated, std::optional<double> durationMs) override;
|
|
144
146
|
void setCameraToCoordinates(const std::vector<RNLatLng>& coordinates, const std::optional<RNMapPadding>& padding, std::optional<bool> animated, std::optional<double> durationMs) override;
|
|
145
147
|
void setCameraBounds(const std::optional<RNLatLngBounds>& bounds) override;
|
|
@@ -64,6 +64,8 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
64
64
|
jni::local_ref<JRNPosition> infoWindowAnchor = this->getFieldValue(fieldInfoWindowAnchor);
|
|
65
65
|
static const auto fieldIconSvg = clazz->getField<JRNMarkerSvg>("iconSvg");
|
|
66
66
|
jni::local_ref<JRNMarkerSvg> iconSvg = this->getFieldValue(fieldIconSvg);
|
|
67
|
+
static const auto fieldInfoWindowIconSvg = clazz->getField<JRNMarkerSvg>("infoWindowIconSvg");
|
|
68
|
+
jni::local_ref<JRNMarkerSvg> infoWindowIconSvg = this->getFieldValue(fieldInfoWindowIconSvg);
|
|
67
69
|
return RNMarker(
|
|
68
70
|
id->toStdString(),
|
|
69
71
|
zIndex != nullptr ? std::make_optional(zIndex->value()) : std::nullopt,
|
|
@@ -77,7 +79,8 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
77
79
|
draggable != nullptr ? std::make_optional(static_cast<bool>(draggable->value())) : std::nullopt,
|
|
78
80
|
rotation != nullptr ? std::make_optional(rotation->value()) : std::nullopt,
|
|
79
81
|
infoWindowAnchor != nullptr ? std::make_optional(infoWindowAnchor->toCpp()) : std::nullopt,
|
|
80
|
-
iconSvg != nullptr ? std::make_optional(iconSvg->toCpp()) : std::nullopt
|
|
82
|
+
iconSvg != nullptr ? std::make_optional(iconSvg->toCpp()) : std::nullopt,
|
|
83
|
+
infoWindowIconSvg != nullptr ? std::make_optional(infoWindowIconSvg->toCpp()) : std::nullopt
|
|
81
84
|
);
|
|
82
85
|
}
|
|
83
86
|
|
|
@@ -87,7 +90,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
87
90
|
*/
|
|
88
91
|
[[maybe_unused]]
|
|
89
92
|
static jni::local_ref<JRNMarker::javaobject> fromCpp(const RNMarker& value) {
|
|
90
|
-
using JSignature = JRNMarker(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JDouble>, jni::alias_ref<JRNLatLng>, jni::alias_ref<JRNPosition>, jni::alias_ref<jni::JBoolean>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JDouble>, jni::alias_ref<jni::JBoolean>, jni::alias_ref<jni::JBoolean>, jni::alias_ref<jni::JDouble>, jni::alias_ref<JRNPosition>, jni::alias_ref<JRNMarkerSvg>);
|
|
93
|
+
using JSignature = JRNMarker(jni::alias_ref<jni::JString>, jni::alias_ref<jni::JDouble>, jni::alias_ref<JRNLatLng>, jni::alias_ref<JRNPosition>, jni::alias_ref<jni::JBoolean>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JString>, jni::alias_ref<jni::JDouble>, jni::alias_ref<jni::JBoolean>, jni::alias_ref<jni::JBoolean>, jni::alias_ref<jni::JDouble>, jni::alias_ref<JRNPosition>, jni::alias_ref<JRNMarkerSvg>, jni::alias_ref<JRNMarkerSvg>);
|
|
91
94
|
static const auto clazz = javaClassStatic();
|
|
92
95
|
static const auto create = clazz->getStaticMethod<JSignature>("fromCpp");
|
|
93
96
|
return create(
|
|
@@ -104,7 +107,8 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
104
107
|
value.draggable.has_value() ? jni::JBoolean::valueOf(value.draggable.value()) : nullptr,
|
|
105
108
|
value.rotation.has_value() ? jni::JDouble::valueOf(value.rotation.value()) : nullptr,
|
|
106
109
|
value.infoWindowAnchor.has_value() ? JRNPosition::fromCpp(value.infoWindowAnchor.value()) : nullptr,
|
|
107
|
-
value.iconSvg.has_value() ? JRNMarkerSvg::fromCpp(value.iconSvg.value()) : nullptr
|
|
110
|
+
value.iconSvg.has_value() ? JRNMarkerSvg::fromCpp(value.iconSvg.value()) : nullptr,
|
|
111
|
+
value.infoWindowIconSvg.has_value() ? JRNMarkerSvg::fromCpp(value.infoWindowIconSvg.value()) : nullptr
|
|
108
112
|
);
|
|
109
113
|
}
|
|
110
114
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// Func_void_std__string.kt
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
@@ -15,25 +15,25 @@ import dalvik.annotation.optimization.FastNative
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Represents the JavaScript callback `(id:
|
|
18
|
+
* Represents the JavaScript callback `(id: string) => void`.
|
|
19
19
|
* This can be either implemented in C++ (in which case it might be a callback coming from JS),
|
|
20
20
|
* or in Kotlin/Java (in which case it is a native callback).
|
|
21
21
|
*/
|
|
22
22
|
@DoNotStrip
|
|
23
23
|
@Keep
|
|
24
24
|
@Suppress("ClassName", "RedundantUnitReturnType")
|
|
25
|
-
fun interface
|
|
25
|
+
fun interface Func_void_std__string: (String) -> Unit {
|
|
26
26
|
/**
|
|
27
27
|
* Call the given JS callback.
|
|
28
28
|
* @throws Throwable if the JS function itself throws an error, or if the JS function/runtime has already been deleted.
|
|
29
29
|
*/
|
|
30
30
|
@DoNotStrip
|
|
31
31
|
@Keep
|
|
32
|
-
override fun invoke(id: String
|
|
32
|
+
override fun invoke(id: String): Unit
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* Represents the JavaScript callback `(id:
|
|
36
|
+
* Represents the JavaScript callback `(id: string) => void`.
|
|
37
37
|
* This is implemented in C++, via a `std::function<...>`.
|
|
38
38
|
* The callback might be coming from JS.
|
|
39
39
|
*/
|
|
@@ -44,7 +44,7 @@ fun interface Func_void_std__optional_std__string_: (String?) -> Unit {
|
|
|
44
44
|
"RedundantSuppression", "RedundantUnitReturnType", "FunctionName",
|
|
45
45
|
"ConvertSecondaryConstructorToPrimary", "ClassName", "LocalVariableName",
|
|
46
46
|
)
|
|
47
|
-
class
|
|
47
|
+
class Func_void_std__string_cxx: Func_void_std__string {
|
|
48
48
|
@DoNotStrip
|
|
49
49
|
@Keep
|
|
50
50
|
private val mHybridData: HybridData
|
|
@@ -57,25 +57,25 @@ class Func_void_std__optional_std__string__cxx: Func_void_std__optional_std__str
|
|
|
57
57
|
|
|
58
58
|
@DoNotStrip
|
|
59
59
|
@Keep
|
|
60
|
-
override fun invoke(id: String
|
|
60
|
+
override fun invoke(id: String): Unit
|
|
61
61
|
= invoke_cxx(id)
|
|
62
62
|
|
|
63
63
|
@FastNative
|
|
64
|
-
private external fun invoke_cxx(id: String
|
|
64
|
+
private external fun invoke_cxx(id: String): Unit
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
* Represents the JavaScript callback `(id:
|
|
69
|
-
* This is implemented in Java/Kotlin, via a `(String
|
|
68
|
+
* Represents the JavaScript callback `(id: string) => void`.
|
|
69
|
+
* This is implemented in Java/Kotlin, via a `(String) -> Unit`.
|
|
70
70
|
* The callback is always coming from native.
|
|
71
71
|
*/
|
|
72
72
|
@DoNotStrip
|
|
73
73
|
@Keep
|
|
74
74
|
@Suppress("ClassName", "RedundantUnitReturnType", "unused")
|
|
75
|
-
class
|
|
75
|
+
class Func_void_std__string_java(private val function: (String) -> Unit): Func_void_std__string {
|
|
76
76
|
@DoNotStrip
|
|
77
77
|
@Keep
|
|
78
|
-
override fun invoke(id: String
|
|
78
|
+
override fun invoke(id: String): Unit {
|
|
79
79
|
return this.function(id)
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// Func_void_std__string_RNLatLng.kt
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
@@ -15,25 +15,25 @@ import dalvik.annotation.optimization.FastNative
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Represents the JavaScript callback `(id:
|
|
18
|
+
* Represents the JavaScript callback `(id: string, location: struct) => void`.
|
|
19
19
|
* This can be either implemented in C++ (in which case it might be a callback coming from JS),
|
|
20
20
|
* or in Kotlin/Java (in which case it is a native callback).
|
|
21
21
|
*/
|
|
22
22
|
@DoNotStrip
|
|
23
23
|
@Keep
|
|
24
24
|
@Suppress("ClassName", "RedundantUnitReturnType")
|
|
25
|
-
fun interface
|
|
25
|
+
fun interface Func_void_std__string_RNLatLng: (String, RNLatLng) -> Unit {
|
|
26
26
|
/**
|
|
27
27
|
* Call the given JS callback.
|
|
28
28
|
* @throws Throwable if the JS function itself throws an error, or if the JS function/runtime has already been deleted.
|
|
29
29
|
*/
|
|
30
30
|
@DoNotStrip
|
|
31
31
|
@Keep
|
|
32
|
-
override fun invoke(id: String
|
|
32
|
+
override fun invoke(id: String, location: RNLatLng): Unit
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* Represents the JavaScript callback `(id:
|
|
36
|
+
* Represents the JavaScript callback `(id: string, location: struct) => void`.
|
|
37
37
|
* This is implemented in C++, via a `std::function<...>`.
|
|
38
38
|
* The callback might be coming from JS.
|
|
39
39
|
*/
|
|
@@ -44,7 +44,7 @@ fun interface Func_void_std__optional_std__string__RNLatLng: (String?, RNLatLng)
|
|
|
44
44
|
"RedundantSuppression", "RedundantUnitReturnType", "FunctionName",
|
|
45
45
|
"ConvertSecondaryConstructorToPrimary", "ClassName", "LocalVariableName",
|
|
46
46
|
)
|
|
47
|
-
class
|
|
47
|
+
class Func_void_std__string_RNLatLng_cxx: Func_void_std__string_RNLatLng {
|
|
48
48
|
@DoNotStrip
|
|
49
49
|
@Keep
|
|
50
50
|
private val mHybridData: HybridData
|
|
@@ -57,25 +57,25 @@ class Func_void_std__optional_std__string__RNLatLng_cxx: Func_void_std__optional
|
|
|
57
57
|
|
|
58
58
|
@DoNotStrip
|
|
59
59
|
@Keep
|
|
60
|
-
override fun invoke(id: String
|
|
60
|
+
override fun invoke(id: String, location: RNLatLng): Unit
|
|
61
61
|
= invoke_cxx(id,location)
|
|
62
62
|
|
|
63
63
|
@FastNative
|
|
64
|
-
private external fun invoke_cxx(id: String
|
|
64
|
+
private external fun invoke_cxx(id: String, location: RNLatLng): Unit
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
* Represents the JavaScript callback `(id:
|
|
69
|
-
* This is implemented in Java/Kotlin, via a `(String
|
|
68
|
+
* Represents the JavaScript callback `(id: string, location: struct) => void`.
|
|
69
|
+
* This is implemented in Java/Kotlin, via a `(String, RNLatLng) -> Unit`.
|
|
70
70
|
* The callback is always coming from native.
|
|
71
71
|
*/
|
|
72
72
|
@DoNotStrip
|
|
73
73
|
@Keep
|
|
74
74
|
@Suppress("ClassName", "RedundantUnitReturnType", "unused")
|
|
75
|
-
class
|
|
75
|
+
class Func_void_std__string_RNLatLng_java(private val function: (String, RNLatLng) -> Unit): Func_void_std__string_RNLatLng {
|
|
76
76
|
@DoNotStrip
|
|
77
77
|
@Keep
|
|
78
|
-
override fun invoke(id: String
|
|
78
|
+
override fun invoke(id: String, location: RNLatLng): Unit {
|
|
79
79
|
return this.function(id, location)
|
|
80
80
|
}
|
|
81
81
|
}
|