react-native-google-maps-plus 1.10.2-dev.1 → 1.10.2-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -114
- package/ios/GoogleMapViewImpl.swift +3 -0
- package/lib/module/GoogleMapsPlus.js +10 -1
- package/lib/module/GoogleMapsPlus.js.map +1 -1
- package/lib/module/index.js +90 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js +145 -39
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/GoogleMapsPlus.d.ts +8 -0
- package/lib/typescript/src/GoogleMapsPlus.d.ts.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusModule.nitro.d.ts +17 -1
- package/lib/typescript/src/RNGoogleMapsPlusModule.nitro.d.ts.map +1 -1
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +87 -3
- package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +89 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +340 -17
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JFunc_void_RNIndoorBuilding.hpp +12 -11
- package/nitrogen/generated/android/c++/JFunc_void_RNIndoorLevel.hpp +12 -11
- package/nitrogen/generated/android/c++/JFunc_void_RNLatLng.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_RNLocation.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_RNLocationErrorCode.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_RNMapErrorCode.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCamera.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_RNRegion_RNCamera_bool.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_bool.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_std__string_RNLatLng.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_std__string_std__string_RNLatLng.hpp +2 -1
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +32 -81
- package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +4 -4
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorBuilding.kt +9 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorLevel.kt +9 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +2 -2
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +7 -6
- package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +28 -28
- package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +4 -4
- package/nitrogen/generated/ios/swift/Func_void_RNIndoorBuilding.swift +6 -6
- package/nitrogen/generated/ios/swift/Func_void_RNIndoorLevel.swift +6 -6
- package/nitrogen/generated/ios/swift/Func_void_RNLatLng.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_RNLocation.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_RNLocationErrorCode.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_RNLocationPermissionResult.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_RNMapErrorCode.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_RNRegion_RNCamera.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_RNRegion_RNCamera_bool.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__string_RNLatLng.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__string_std__string_RNLatLng.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusModuleSpec.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusModuleSpec_cxx.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +2 -3
- package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +16 -17
- package/nitrogen/generated/ios/swift/RNAndroidLocationConfig.swift +1 -0
- package/nitrogen/generated/ios/swift/RNCamera.swift +1 -0
- package/nitrogen/generated/ios/swift/RNCameraUpdate.swift +1 -0
- package/nitrogen/generated/ios/swift/RNCircle.swift +1 -0
- package/nitrogen/generated/ios/swift/RNHeatmap.swift +1 -0
- package/nitrogen/generated/ios/swift/RNHeatmapGradient.swift +1 -0
- package/nitrogen/generated/ios/swift/RNHeatmapPoint.swift +1 -0
- package/nitrogen/generated/ios/swift/RNIOSLocationConfig.swift +1 -0
- package/nitrogen/generated/ios/swift/RNIndoorBuilding.swift +1 -0
- package/nitrogen/generated/ios/swift/RNIndoorLevel.swift +1 -0
- package/nitrogen/generated/ios/swift/RNInitialProps.swift +1 -0
- package/nitrogen/generated/ios/swift/RNKMLayer.swift +1 -0
- package/nitrogen/generated/ios/swift/RNLatLng.swift +1 -0
- package/nitrogen/generated/ios/swift/RNLatLngBounds.swift +1 -0
- package/nitrogen/generated/ios/swift/RNLocation.swift +1 -0
- package/nitrogen/generated/ios/swift/RNLocationAndroid.swift +1 -0
- package/nitrogen/generated/ios/swift/RNLocationConfig.swift +1 -0
- package/nitrogen/generated/ios/swift/RNLocationIOS.swift +1 -0
- package/nitrogen/generated/ios/swift/RNLocationPermissionResult.swift +1 -0
- package/nitrogen/generated/ios/swift/RNMapPadding.swift +1 -0
- package/nitrogen/generated/ios/swift/RNMapUiSettings.swift +1 -0
- package/nitrogen/generated/ios/swift/RNMapZoomConfig.swift +1 -0
- package/nitrogen/generated/ios/swift/RNMarker.swift +1 -0
- package/nitrogen/generated/ios/swift/RNMarkerSvg.swift +1 -0
- package/nitrogen/generated/ios/swift/RNPolygon.swift +1 -0
- package/nitrogen/generated/ios/swift/RNPolygonHole.swift +1 -0
- package/nitrogen/generated/ios/swift/RNPolyline.swift +1 -0
- package/nitrogen/generated/ios/swift/RNPosition.swift +1 -0
- package/nitrogen/generated/ios/swift/RNRegion.swift +1 -0
- package/nitrogen/generated/ios/swift/RNSize.swift +1 -0
- package/nitrogen/generated/ios/swift/RNSnapshotOptions.swift +1 -0
- package/nitrogen/generated/ios/swift/RNUrlTileOverlay.swift +1 -0
- package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +4 -4
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +4 -4
- package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +2 -2
- package/package.json +11 -7
- package/src/GoogleMapsPlus.tsx +9 -1
- package/src/RNGoogleMapsPlusModule.nitro.ts +21 -4
- package/src/RNGoogleMapsPlusView.nitro.ts +143 -18
- package/src/index.tsx +90 -1
- package/src/types.ts +475 -67
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
#include "RNIndoorBuilding.hpp"
|
|
14
14
|
#include <functional>
|
|
15
|
+
#include <NitroModules/JNICallable.hpp>
|
|
15
16
|
#include "JRNIndoorBuilding.hpp"
|
|
16
17
|
#include <optional>
|
|
17
18
|
#include "RNIndoorLevel.hpp"
|
|
@@ -24,7 +25,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
24
25
|
using namespace facebook;
|
|
25
26
|
|
|
26
27
|
/**
|
|
27
|
-
* Represents the Java/Kotlin callback `(
|
|
28
|
+
* Represents the Java/Kotlin callback `(building: RNIndoorBuilding) -> Unit`.
|
|
28
29
|
* This can be passed around between C++ and Java/Kotlin.
|
|
29
30
|
*/
|
|
30
31
|
struct JFunc_void_RNIndoorBuilding: public jni::JavaClass<JFunc_void_RNIndoorBuilding> {
|
|
@@ -35,18 +36,18 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
35
36
|
/**
|
|
36
37
|
* Invokes the function this `JFunc_void_RNIndoorBuilding` instance holds through JNI.
|
|
37
38
|
*/
|
|
38
|
-
void invoke(const RNIndoorBuilding&
|
|
39
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JRNIndoorBuilding> /*
|
|
40
|
-
method(self(), JRNIndoorBuilding::fromCpp(
|
|
39
|
+
void invoke(const RNIndoorBuilding& building) const {
|
|
40
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JRNIndoorBuilding> /* building */)>("invoke");
|
|
41
|
+
method(self(), JRNIndoorBuilding::fromCpp(building));
|
|
41
42
|
}
|
|
42
43
|
};
|
|
43
44
|
|
|
44
45
|
/**
|
|
45
46
|
* An implementation of Func_void_RNIndoorBuilding that is backed by a C++ implementation (using `std::function<...>`)
|
|
46
47
|
*/
|
|
47
|
-
|
|
48
|
+
class JFunc_void_RNIndoorBuilding_cxx final: public jni::HybridClass<JFunc_void_RNIndoorBuilding_cxx, JFunc_void_RNIndoorBuilding> {
|
|
48
49
|
public:
|
|
49
|
-
static jni::local_ref<JFunc_void_RNIndoorBuilding::javaobject> fromCpp(const std::function<void(const RNIndoorBuilding& /*
|
|
50
|
+
static jni::local_ref<JFunc_void_RNIndoorBuilding::javaobject> fromCpp(const std::function<void(const RNIndoorBuilding& /* building */)>& func) {
|
|
50
51
|
return JFunc_void_RNIndoorBuilding_cxx::newObjectCxxArgs(func);
|
|
51
52
|
}
|
|
52
53
|
|
|
@@ -54,13 +55,13 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
54
55
|
/**
|
|
55
56
|
* Invokes the C++ `std::function<...>` this `JFunc_void_RNIndoorBuilding_cxx` instance holds.
|
|
56
57
|
*/
|
|
57
|
-
void invoke_cxx(jni::alias_ref<JRNIndoorBuilding>
|
|
58
|
-
_func(
|
|
58
|
+
void invoke_cxx(jni::alias_ref<JRNIndoorBuilding> building) {
|
|
59
|
+
_func(building->toCpp());
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
public:
|
|
62
63
|
[[nodiscard]]
|
|
63
|
-
inline const std::function<void(const RNIndoorBuilding& /*
|
|
64
|
+
inline const std::function<void(const RNIndoorBuilding& /* building */)>& getFunction() const {
|
|
64
65
|
return _func;
|
|
65
66
|
}
|
|
66
67
|
|
|
@@ -71,11 +72,11 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
private:
|
|
74
|
-
explicit JFunc_void_RNIndoorBuilding_cxx(const std::function<void(const RNIndoorBuilding& /*
|
|
75
|
+
explicit JFunc_void_RNIndoorBuilding_cxx(const std::function<void(const RNIndoorBuilding& /* building */)>& func): _func(func) { }
|
|
75
76
|
|
|
76
77
|
private:
|
|
77
78
|
friend HybridBase;
|
|
78
|
-
std::function<void(const RNIndoorBuilding& /*
|
|
79
|
+
std::function<void(const RNIndoorBuilding& /* building */)> _func;
|
|
79
80
|
};
|
|
80
81
|
|
|
81
82
|
} // namespace margelo::nitro::rngooglemapsplus
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
#include "RNIndoorLevel.hpp"
|
|
14
14
|
#include <functional>
|
|
15
|
+
#include <NitroModules/JNICallable.hpp>
|
|
15
16
|
#include "JRNIndoorLevel.hpp"
|
|
16
17
|
#include <string>
|
|
17
18
|
#include <optional>
|
|
@@ -21,7 +22,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
21
22
|
using namespace facebook;
|
|
22
23
|
|
|
23
24
|
/**
|
|
24
|
-
* Represents the Java/Kotlin callback `(
|
|
25
|
+
* Represents the Java/Kotlin callback `(level: RNIndoorLevel) -> Unit`.
|
|
25
26
|
* This can be passed around between C++ and Java/Kotlin.
|
|
26
27
|
*/
|
|
27
28
|
struct JFunc_void_RNIndoorLevel: public jni::JavaClass<JFunc_void_RNIndoorLevel> {
|
|
@@ -32,18 +33,18 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
32
33
|
/**
|
|
33
34
|
* Invokes the function this `JFunc_void_RNIndoorLevel` instance holds through JNI.
|
|
34
35
|
*/
|
|
35
|
-
void invoke(const RNIndoorLevel&
|
|
36
|
-
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JRNIndoorLevel> /*
|
|
37
|
-
method(self(), JRNIndoorLevel::fromCpp(
|
|
36
|
+
void invoke(const RNIndoorLevel& level) const {
|
|
37
|
+
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JRNIndoorLevel> /* level */)>("invoke");
|
|
38
|
+
method(self(), JRNIndoorLevel::fromCpp(level));
|
|
38
39
|
}
|
|
39
40
|
};
|
|
40
41
|
|
|
41
42
|
/**
|
|
42
43
|
* An implementation of Func_void_RNIndoorLevel that is backed by a C++ implementation (using `std::function<...>`)
|
|
43
44
|
*/
|
|
44
|
-
|
|
45
|
+
class JFunc_void_RNIndoorLevel_cxx final: public jni::HybridClass<JFunc_void_RNIndoorLevel_cxx, JFunc_void_RNIndoorLevel> {
|
|
45
46
|
public:
|
|
46
|
-
static jni::local_ref<JFunc_void_RNIndoorLevel::javaobject> fromCpp(const std::function<void(const RNIndoorLevel& /*
|
|
47
|
+
static jni::local_ref<JFunc_void_RNIndoorLevel::javaobject> fromCpp(const std::function<void(const RNIndoorLevel& /* level */)>& func) {
|
|
47
48
|
return JFunc_void_RNIndoorLevel_cxx::newObjectCxxArgs(func);
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -51,13 +52,13 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
51
52
|
/**
|
|
52
53
|
* Invokes the C++ `std::function<...>` this `JFunc_void_RNIndoorLevel_cxx` instance holds.
|
|
53
54
|
*/
|
|
54
|
-
void invoke_cxx(jni::alias_ref<JRNIndoorLevel>
|
|
55
|
-
_func(
|
|
55
|
+
void invoke_cxx(jni::alias_ref<JRNIndoorLevel> level) {
|
|
56
|
+
_func(level->toCpp());
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
public:
|
|
59
60
|
[[nodiscard]]
|
|
60
|
-
inline const std::function<void(const RNIndoorLevel& /*
|
|
61
|
+
inline const std::function<void(const RNIndoorLevel& /* level */)>& getFunction() const {
|
|
61
62
|
return _func;
|
|
62
63
|
}
|
|
63
64
|
|
|
@@ -68,11 +69,11 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
private:
|
|
71
|
-
explicit JFunc_void_RNIndoorLevel_cxx(const std::function<void(const RNIndoorLevel& /*
|
|
72
|
+
explicit JFunc_void_RNIndoorLevel_cxx(const std::function<void(const RNIndoorLevel& /* level */)>& func): _func(func) { }
|
|
72
73
|
|
|
73
74
|
private:
|
|
74
75
|
friend HybridBase;
|
|
75
|
-
std::function<void(const RNIndoorLevel& /*
|
|
76
|
+
std::function<void(const RNIndoorLevel& /* level */)> _func;
|
|
76
77
|
};
|
|
77
78
|
|
|
78
79
|
} // namespace margelo::nitro::rngooglemapsplus
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
#include "RNLatLng.hpp"
|
|
14
14
|
#include <functional>
|
|
15
|
+
#include <NitroModules/JNICallable.hpp>
|
|
15
16
|
#include "JRNLatLng.hpp"
|
|
16
17
|
|
|
17
18
|
namespace margelo::nitro::rngooglemapsplus {
|
|
@@ -39,7 +40,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
39
40
|
/**
|
|
40
41
|
* An implementation of Func_void_RNLatLng that is backed by a C++ implementation (using `std::function<...>`)
|
|
41
42
|
*/
|
|
42
|
-
|
|
43
|
+
class JFunc_void_RNLatLng_cxx final: public jni::HybridClass<JFunc_void_RNLatLng_cxx, JFunc_void_RNLatLng> {
|
|
43
44
|
public:
|
|
44
45
|
static jni::local_ref<JFunc_void_RNLatLng::javaobject> fromCpp(const std::function<void(const RNLatLng& /* coordinate */)>& func) {
|
|
45
46
|
return JFunc_void_RNLatLng_cxx::newObjectCxxArgs(func);
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
#include "RNLocation.hpp"
|
|
14
14
|
#include <functional>
|
|
15
|
+
#include <NitroModules/JNICallable.hpp>
|
|
15
16
|
#include "JRNLocation.hpp"
|
|
16
17
|
#include "RNLatLng.hpp"
|
|
17
18
|
#include "JRNLatLng.hpp"
|
|
@@ -47,7 +48,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
47
48
|
/**
|
|
48
49
|
* An implementation of Func_void_RNLocation that is backed by a C++ implementation (using `std::function<...>`)
|
|
49
50
|
*/
|
|
50
|
-
|
|
51
|
+
class JFunc_void_RNLocation_cxx final: public jni::HybridClass<JFunc_void_RNLocation_cxx, JFunc_void_RNLocation> {
|
|
51
52
|
public:
|
|
52
53
|
static jni::local_ref<JFunc_void_RNLocation::javaobject> fromCpp(const std::function<void(const RNLocation& /* location */)>& func) {
|
|
53
54
|
return JFunc_void_RNLocation_cxx::newObjectCxxArgs(func);
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
#include "RNLocationErrorCode.hpp"
|
|
14
14
|
#include <functional>
|
|
15
|
+
#include <NitroModules/JNICallable.hpp>
|
|
15
16
|
#include "JRNLocationErrorCode.hpp"
|
|
16
17
|
|
|
17
18
|
namespace margelo::nitro::rngooglemapsplus {
|
|
@@ -39,7 +40,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
39
40
|
/**
|
|
40
41
|
* An implementation of Func_void_RNLocationErrorCode that is backed by a C++ implementation (using `std::function<...>`)
|
|
41
42
|
*/
|
|
42
|
-
|
|
43
|
+
class JFunc_void_RNLocationErrorCode_cxx final: public jni::HybridClass<JFunc_void_RNLocationErrorCode_cxx, JFunc_void_RNLocationErrorCode> {
|
|
43
44
|
public:
|
|
44
45
|
static jni::local_ref<JFunc_void_RNLocationErrorCode::javaobject> fromCpp(const std::function<void(RNLocationErrorCode /* error */)>& func) {
|
|
45
46
|
return JFunc_void_RNLocationErrorCode_cxx::newObjectCxxArgs(func);
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
#include "RNMapErrorCode.hpp"
|
|
14
14
|
#include <functional>
|
|
15
|
+
#include <NitroModules/JNICallable.hpp>
|
|
15
16
|
#include "JRNMapErrorCode.hpp"
|
|
16
17
|
|
|
17
18
|
namespace margelo::nitro::rngooglemapsplus {
|
|
@@ -39,7 +40,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
39
40
|
/**
|
|
40
41
|
* An implementation of Func_void_RNMapErrorCode that is backed by a C++ implementation (using `std::function<...>`)
|
|
41
42
|
*/
|
|
42
|
-
|
|
43
|
+
class JFunc_void_RNMapErrorCode_cxx final: public jni::HybridClass<JFunc_void_RNMapErrorCode_cxx, JFunc_void_RNMapErrorCode> {
|
|
43
44
|
public:
|
|
44
45
|
static jni::local_ref<JFunc_void_RNMapErrorCode::javaobject> fromCpp(const std::function<void(RNMapErrorCode /* error */)>& func) {
|
|
45
46
|
return JFunc_void_RNMapErrorCode_cxx::newObjectCxxArgs(func);
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
#include "RNRegion.hpp"
|
|
14
14
|
#include "RNCamera.hpp"
|
|
15
15
|
#include <functional>
|
|
16
|
+
#include <NitroModules/JNICallable.hpp>
|
|
16
17
|
#include "JRNRegion.hpp"
|
|
17
18
|
#include "RNLatLng.hpp"
|
|
18
19
|
#include "JRNLatLng.hpp"
|
|
@@ -45,7 +46,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
45
46
|
/**
|
|
46
47
|
* An implementation of Func_void_RNRegion_RNCamera that is backed by a C++ implementation (using `std::function<...>`)
|
|
47
48
|
*/
|
|
48
|
-
|
|
49
|
+
class JFunc_void_RNRegion_RNCamera_cxx final: public jni::HybridClass<JFunc_void_RNRegion_RNCamera_cxx, JFunc_void_RNRegion_RNCamera> {
|
|
49
50
|
public:
|
|
50
51
|
static jni::local_ref<JFunc_void_RNRegion_RNCamera::javaobject> fromCpp(const std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */)>& func) {
|
|
51
52
|
return JFunc_void_RNRegion_RNCamera_cxx::newObjectCxxArgs(func);
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
#include "RNRegion.hpp"
|
|
14
14
|
#include "RNCamera.hpp"
|
|
15
15
|
#include <functional>
|
|
16
|
+
#include <NitroModules/JNICallable.hpp>
|
|
16
17
|
#include "JRNRegion.hpp"
|
|
17
18
|
#include "RNLatLng.hpp"
|
|
18
19
|
#include "JRNLatLng.hpp"
|
|
@@ -45,7 +46,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
45
46
|
/**
|
|
46
47
|
* An implementation of Func_void_RNRegion_RNCamera_bool that is backed by a C++ implementation (using `std::function<...>`)
|
|
47
48
|
*/
|
|
48
|
-
|
|
49
|
+
class JFunc_void_RNRegion_RNCamera_bool_cxx final: public jni::HybridClass<JFunc_void_RNRegion_RNCamera_bool_cxx, JFunc_void_RNRegion_RNCamera_bool> {
|
|
49
50
|
public:
|
|
50
51
|
static jni::local_ref<JFunc_void_RNRegion_RNCamera_bool::javaobject> fromCpp(const std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>& func) {
|
|
51
52
|
return JFunc_void_RNRegion_RNCamera_bool_cxx::newObjectCxxArgs(func);
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
#include <functional>
|
|
12
12
|
|
|
13
13
|
#include <functional>
|
|
14
|
+
#include <NitroModules/JNICallable.hpp>
|
|
14
15
|
|
|
15
16
|
namespace margelo::nitro::rngooglemapsplus {
|
|
16
17
|
|
|
@@ -37,7 +38,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
37
38
|
/**
|
|
38
39
|
* An implementation of Func_void_bool that is backed by a C++ implementation (using `std::function<...>`)
|
|
39
40
|
*/
|
|
40
|
-
|
|
41
|
+
class JFunc_void_bool_cxx final: public jni::HybridClass<JFunc_void_bool_cxx, JFunc_void_bool> {
|
|
41
42
|
public:
|
|
42
43
|
static jni::local_ref<JFunc_void_bool::javaobject> fromCpp(const std::function<void(bool /* ready */)>& func) {
|
|
43
44
|
return JFunc_void_bool_cxx::newObjectCxxArgs(func);
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
#include <string>
|
|
14
14
|
#include <functional>
|
|
15
|
+
#include <NitroModules/JNICallable.hpp>
|
|
15
16
|
|
|
16
17
|
namespace margelo::nitro::rngooglemapsplus {
|
|
17
18
|
|
|
@@ -38,7 +39,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
38
39
|
/**
|
|
39
40
|
* An implementation of Func_void_std__string that is backed by a C++ implementation (using `std::function<...>`)
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
|
+
class JFunc_void_std__string_cxx final: public jni::HybridClass<JFunc_void_std__string_cxx, JFunc_void_std__string> {
|
|
42
43
|
public:
|
|
43
44
|
static jni::local_ref<JFunc_void_std__string::javaobject> fromCpp(const std::function<void(const std::string& /* id */)>& func) {
|
|
44
45
|
return JFunc_void_std__string_cxx::newObjectCxxArgs(func);
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
#include <string>
|
|
14
14
|
#include "RNLatLng.hpp"
|
|
15
15
|
#include <functional>
|
|
16
|
+
#include <NitroModules/JNICallable.hpp>
|
|
16
17
|
#include "JRNLatLng.hpp"
|
|
17
18
|
|
|
18
19
|
namespace margelo::nitro::rngooglemapsplus {
|
|
@@ -40,7 +41,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
40
41
|
/**
|
|
41
42
|
* An implementation of Func_void_std__string_RNLatLng that is backed by a C++ implementation (using `std::function<...>`)
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
+
class JFunc_void_std__string_RNLatLng_cxx final: public jni::HybridClass<JFunc_void_std__string_RNLatLng_cxx, JFunc_void_std__string_RNLatLng> {
|
|
44
45
|
public:
|
|
45
46
|
static jni::local_ref<JFunc_void_std__string_RNLatLng::javaobject> fromCpp(const std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>& func) {
|
|
46
47
|
return JFunc_void_std__string_RNLatLng_cxx::newObjectCxxArgs(func);
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
#include <string>
|
|
14
14
|
#include "RNLatLng.hpp"
|
|
15
15
|
#include <functional>
|
|
16
|
+
#include <NitroModules/JNICallable.hpp>
|
|
16
17
|
#include "JRNLatLng.hpp"
|
|
17
18
|
|
|
18
19
|
namespace margelo::nitro::rngooglemapsplus {
|
|
@@ -40,7 +41,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
40
41
|
/**
|
|
41
42
|
* An implementation of Func_void_std__string_std__string_RNLatLng that is backed by a C++ implementation (using `std::function<...>`)
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
+
class JFunc_void_std__string_std__string_RNLatLng_cxx final: public jni::HybridClass<JFunc_void_std__string_std__string_RNLatLng_cxx, JFunc_void_std__string_std__string_RNLatLng> {
|
|
44
45
|
public:
|
|
45
46
|
static jni::local_ref<JFunc_void_std__string_std__string_RNLatLng::javaobject> fromCpp(const std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>& func) {
|
|
46
47
|
return JFunc_void_std__string_std__string_RNLatLng_cxx::newObjectCxxArgs(func);
|
|
@@ -160,6 +160,7 @@ namespace margelo::nitro::rngooglemapsplus { enum class RNSnapshotResultType; }
|
|
|
160
160
|
#include "RNMapErrorCode.hpp"
|
|
161
161
|
#include <functional>
|
|
162
162
|
#include "JFunc_void_RNMapErrorCode.hpp"
|
|
163
|
+
#include <NitroModules/JNICallable.hpp>
|
|
163
164
|
#include "JRNMapErrorCode.hpp"
|
|
164
165
|
#include "JFunc_void_bool.hpp"
|
|
165
166
|
#include "RNRegion.hpp"
|
|
@@ -542,9 +543,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
542
543
|
return downcast->cthis()->getFunction();
|
|
543
544
|
} else {
|
|
544
545
|
auto __resultRef = jni::make_global(__result);
|
|
545
|
-
return
|
|
546
|
-
return __resultRef->invoke(error);
|
|
547
|
-
};
|
|
546
|
+
return JNICallable<JFunc_void_RNMapErrorCode, void(RNMapErrorCode)>(std::move(__resultRef));
|
|
548
547
|
}
|
|
549
548
|
}()) : std::nullopt;
|
|
550
549
|
}
|
|
@@ -561,9 +560,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
561
560
|
return downcast->cthis()->getFunction();
|
|
562
561
|
} else {
|
|
563
562
|
auto __resultRef = jni::make_global(__result);
|
|
564
|
-
return
|
|
565
|
-
return __resultRef->invoke(ready);
|
|
566
|
-
};
|
|
563
|
+
return JNICallable<JFunc_void_bool, void(bool)>(std::move(__resultRef));
|
|
567
564
|
}
|
|
568
565
|
}()) : std::nullopt;
|
|
569
566
|
}
|
|
@@ -580,9 +577,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
580
577
|
return downcast->cthis()->getFunction();
|
|
581
578
|
} else {
|
|
582
579
|
auto __resultRef = jni::make_global(__result);
|
|
583
|
-
return
|
|
584
|
-
return __resultRef->invoke(region,camera);
|
|
585
|
-
};
|
|
580
|
+
return JNICallable<JFunc_void_RNRegion_RNCamera, void(RNRegion, RNCamera)>(std::move(__resultRef));
|
|
586
581
|
}
|
|
587
582
|
}()) : std::nullopt;
|
|
588
583
|
}
|
|
@@ -599,9 +594,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
599
594
|
return downcast->cthis()->getFunction();
|
|
600
595
|
} else {
|
|
601
596
|
auto __resultRef = jni::make_global(__result);
|
|
602
|
-
return
|
|
603
|
-
return __resultRef->invoke(location);
|
|
604
|
-
};
|
|
597
|
+
return JNICallable<JFunc_void_RNLocation, void(RNLocation)>(std::move(__resultRef));
|
|
605
598
|
}
|
|
606
599
|
}()) : std::nullopt;
|
|
607
600
|
}
|
|
@@ -618,9 +611,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
618
611
|
return downcast->cthis()->getFunction();
|
|
619
612
|
} else {
|
|
620
613
|
auto __resultRef = jni::make_global(__result);
|
|
621
|
-
return
|
|
622
|
-
return __resultRef->invoke(error);
|
|
623
|
-
};
|
|
614
|
+
return JNICallable<JFunc_void_RNLocationErrorCode, void(RNLocationErrorCode)>(std::move(__resultRef));
|
|
624
615
|
}
|
|
625
616
|
}()) : std::nullopt;
|
|
626
617
|
}
|
|
@@ -637,9 +628,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
637
628
|
return downcast->cthis()->getFunction();
|
|
638
629
|
} else {
|
|
639
630
|
auto __resultRef = jni::make_global(__result);
|
|
640
|
-
return
|
|
641
|
-
return __resultRef->invoke(coordinate);
|
|
642
|
-
};
|
|
631
|
+
return JNICallable<JFunc_void_RNLatLng, void(RNLatLng)>(std::move(__resultRef));
|
|
643
632
|
}
|
|
644
633
|
}()) : std::nullopt;
|
|
645
634
|
}
|
|
@@ -656,9 +645,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
656
645
|
return downcast->cthis()->getFunction();
|
|
657
646
|
} else {
|
|
658
647
|
auto __resultRef = jni::make_global(__result);
|
|
659
|
-
return
|
|
660
|
-
return __resultRef->invoke(coordinate);
|
|
661
|
-
};
|
|
648
|
+
return JNICallable<JFunc_void_RNLatLng, void(RNLatLng)>(std::move(__resultRef));
|
|
662
649
|
}
|
|
663
650
|
}()) : std::nullopt;
|
|
664
651
|
}
|
|
@@ -675,9 +662,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
675
662
|
return downcast->cthis()->getFunction();
|
|
676
663
|
} else {
|
|
677
664
|
auto __resultRef = jni::make_global(__result);
|
|
678
|
-
return
|
|
679
|
-
return __resultRef->invoke(placeId,name,coordinate);
|
|
680
|
-
};
|
|
665
|
+
return JNICallable<JFunc_void_std__string_std__string_RNLatLng, void(std::string, std::string, RNLatLng)>(std::move(__resultRef));
|
|
681
666
|
}
|
|
682
667
|
}()) : std::nullopt;
|
|
683
668
|
}
|
|
@@ -694,9 +679,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
694
679
|
return downcast->cthis()->getFunction();
|
|
695
680
|
} else {
|
|
696
681
|
auto __resultRef = jni::make_global(__result);
|
|
697
|
-
return
|
|
698
|
-
return __resultRef->invoke(id);
|
|
699
|
-
};
|
|
682
|
+
return JNICallable<JFunc_void_std__string, void(std::string)>(std::move(__resultRef));
|
|
700
683
|
}
|
|
701
684
|
}()) : std::nullopt;
|
|
702
685
|
}
|
|
@@ -713,9 +696,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
713
696
|
return downcast->cthis()->getFunction();
|
|
714
697
|
} else {
|
|
715
698
|
auto __resultRef = jni::make_global(__result);
|
|
716
|
-
return
|
|
717
|
-
return __resultRef->invoke(id);
|
|
718
|
-
};
|
|
699
|
+
return JNICallable<JFunc_void_std__string, void(std::string)>(std::move(__resultRef));
|
|
719
700
|
}
|
|
720
701
|
}()) : std::nullopt;
|
|
721
702
|
}
|
|
@@ -732,9 +713,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
732
713
|
return downcast->cthis()->getFunction();
|
|
733
714
|
} else {
|
|
734
715
|
auto __resultRef = jni::make_global(__result);
|
|
735
|
-
return
|
|
736
|
-
return __resultRef->invoke(id);
|
|
737
|
-
};
|
|
716
|
+
return JNICallable<JFunc_void_std__string, void(std::string)>(std::move(__resultRef));
|
|
738
717
|
}
|
|
739
718
|
}()) : std::nullopt;
|
|
740
719
|
}
|
|
@@ -751,9 +730,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
751
730
|
return downcast->cthis()->getFunction();
|
|
752
731
|
} else {
|
|
753
732
|
auto __resultRef = jni::make_global(__result);
|
|
754
|
-
return
|
|
755
|
-
return __resultRef->invoke(id);
|
|
756
|
-
};
|
|
733
|
+
return JNICallable<JFunc_void_std__string, void(std::string)>(std::move(__resultRef));
|
|
757
734
|
}
|
|
758
735
|
}()) : std::nullopt;
|
|
759
736
|
}
|
|
@@ -770,9 +747,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
770
747
|
return downcast->cthis()->getFunction();
|
|
771
748
|
} else {
|
|
772
749
|
auto __resultRef = jni::make_global(__result);
|
|
773
|
-
return
|
|
774
|
-
return __resultRef->invoke(id,location);
|
|
775
|
-
};
|
|
750
|
+
return JNICallable<JFunc_void_std__string_RNLatLng, void(std::string, RNLatLng)>(std::move(__resultRef));
|
|
776
751
|
}
|
|
777
752
|
}()) : std::nullopt;
|
|
778
753
|
}
|
|
@@ -789,9 +764,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
789
764
|
return downcast->cthis()->getFunction();
|
|
790
765
|
} else {
|
|
791
766
|
auto __resultRef = jni::make_global(__result);
|
|
792
|
-
return
|
|
793
|
-
return __resultRef->invoke(id,location);
|
|
794
|
-
};
|
|
767
|
+
return JNICallable<JFunc_void_std__string_RNLatLng, void(std::string, RNLatLng)>(std::move(__resultRef));
|
|
795
768
|
}
|
|
796
769
|
}()) : std::nullopt;
|
|
797
770
|
}
|
|
@@ -808,9 +781,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
808
781
|
return downcast->cthis()->getFunction();
|
|
809
782
|
} else {
|
|
810
783
|
auto __resultRef = jni::make_global(__result);
|
|
811
|
-
return
|
|
812
|
-
return __resultRef->invoke(id,location);
|
|
813
|
-
};
|
|
784
|
+
return JNICallable<JFunc_void_std__string_RNLatLng, void(std::string, RNLatLng)>(std::move(__resultRef));
|
|
814
785
|
}
|
|
815
786
|
}()) : std::nullopt;
|
|
816
787
|
}
|
|
@@ -818,41 +789,37 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
818
789
|
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string_RNLatLng::javaobject> /* onMarkerDragEnd */)>("setOnMarkerDragEnd_cxx");
|
|
819
790
|
method(_javaPart, onMarkerDragEnd.has_value() ? JFunc_void_std__string_RNLatLng_cxx::fromCpp(onMarkerDragEnd.value()) : nullptr);
|
|
820
791
|
}
|
|
821
|
-
std::optional<std::function<void(const RNIndoorBuilding& /*
|
|
792
|
+
std::optional<std::function<void(const RNIndoorBuilding& /* building */)>> JHybridRNGoogleMapsPlusViewSpec::getOnIndoorBuildingFocused() {
|
|
822
793
|
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNIndoorBuilding::javaobject>()>("getOnIndoorBuildingFocused_cxx");
|
|
823
794
|
auto __result = method(_javaPart);
|
|
824
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const RNIndoorBuilding& /*
|
|
795
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const RNIndoorBuilding& /* building */)> {
|
|
825
796
|
if (__result->isInstanceOf(JFunc_void_RNIndoorBuilding_cxx::javaClassStatic())) [[likely]] {
|
|
826
797
|
auto downcast = jni::static_ref_cast<JFunc_void_RNIndoorBuilding_cxx::javaobject>(__result);
|
|
827
798
|
return downcast->cthis()->getFunction();
|
|
828
799
|
} else {
|
|
829
800
|
auto __resultRef = jni::make_global(__result);
|
|
830
|
-
return
|
|
831
|
-
return __resultRef->invoke(indoorBuilding);
|
|
832
|
-
};
|
|
801
|
+
return JNICallable<JFunc_void_RNIndoorBuilding, void(RNIndoorBuilding)>(std::move(__resultRef));
|
|
833
802
|
}
|
|
834
803
|
}()) : std::nullopt;
|
|
835
804
|
}
|
|
836
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnIndoorBuildingFocused(const std::optional<std::function<void(const RNIndoorBuilding& /*
|
|
805
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnIndoorBuildingFocused(const std::optional<std::function<void(const RNIndoorBuilding& /* building */)>>& onIndoorBuildingFocused) {
|
|
837
806
|
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_RNIndoorBuilding::javaobject> /* onIndoorBuildingFocused */)>("setOnIndoorBuildingFocused_cxx");
|
|
838
807
|
method(_javaPart, onIndoorBuildingFocused.has_value() ? JFunc_void_RNIndoorBuilding_cxx::fromCpp(onIndoorBuildingFocused.value()) : nullptr);
|
|
839
808
|
}
|
|
840
|
-
std::optional<std::function<void(const RNIndoorLevel& /*
|
|
809
|
+
std::optional<std::function<void(const RNIndoorLevel& /* level */)>> JHybridRNGoogleMapsPlusViewSpec::getOnIndoorLevelActivated() {
|
|
841
810
|
static const auto method = javaClassStatic()->getMethod<jni::local_ref<JFunc_void_RNIndoorLevel::javaobject>()>("getOnIndoorLevelActivated_cxx");
|
|
842
811
|
auto __result = method(_javaPart);
|
|
843
|
-
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const RNIndoorLevel& /*
|
|
812
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const RNIndoorLevel& /* level */)> {
|
|
844
813
|
if (__result->isInstanceOf(JFunc_void_RNIndoorLevel_cxx::javaClassStatic())) [[likely]] {
|
|
845
814
|
auto downcast = jni::static_ref_cast<JFunc_void_RNIndoorLevel_cxx::javaobject>(__result);
|
|
846
815
|
return downcast->cthis()->getFunction();
|
|
847
816
|
} else {
|
|
848
817
|
auto __resultRef = jni::make_global(__result);
|
|
849
|
-
return
|
|
850
|
-
return __resultRef->invoke(indoorLevel);
|
|
851
|
-
};
|
|
818
|
+
return JNICallable<JFunc_void_RNIndoorLevel, void(RNIndoorLevel)>(std::move(__resultRef));
|
|
852
819
|
}
|
|
853
820
|
}()) : std::nullopt;
|
|
854
821
|
}
|
|
855
|
-
void JHybridRNGoogleMapsPlusViewSpec::setOnIndoorLevelActivated(const std::optional<std::function<void(const RNIndoorLevel& /*
|
|
822
|
+
void JHybridRNGoogleMapsPlusViewSpec::setOnIndoorLevelActivated(const std::optional<std::function<void(const RNIndoorLevel& /* level */)>>& onIndoorLevelActivated) {
|
|
856
823
|
static const auto method = javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_RNIndoorLevel::javaobject> /* onIndoorLevelActivated */)>("setOnIndoorLevelActivated_cxx");
|
|
857
824
|
method(_javaPart, onIndoorLevelActivated.has_value() ? JFunc_void_RNIndoorLevel_cxx::fromCpp(onIndoorLevelActivated.value()) : nullptr);
|
|
858
825
|
}
|
|
@@ -865,9 +832,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
865
832
|
return downcast->cthis()->getFunction();
|
|
866
833
|
} else {
|
|
867
834
|
auto __resultRef = jni::make_global(__result);
|
|
868
|
-
return
|
|
869
|
-
return __resultRef->invoke(id);
|
|
870
|
-
};
|
|
835
|
+
return JNICallable<JFunc_void_std__string, void(std::string)>(std::move(__resultRef));
|
|
871
836
|
}
|
|
872
837
|
}()) : std::nullopt;
|
|
873
838
|
}
|
|
@@ -884,9 +849,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
884
849
|
return downcast->cthis()->getFunction();
|
|
885
850
|
} else {
|
|
886
851
|
auto __resultRef = jni::make_global(__result);
|
|
887
|
-
return
|
|
888
|
-
return __resultRef->invoke(id);
|
|
889
|
-
};
|
|
852
|
+
return JNICallable<JFunc_void_std__string, void(std::string)>(std::move(__resultRef));
|
|
890
853
|
}
|
|
891
854
|
}()) : std::nullopt;
|
|
892
855
|
}
|
|
@@ -903,9 +866,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
903
866
|
return downcast->cthis()->getFunction();
|
|
904
867
|
} else {
|
|
905
868
|
auto __resultRef = jni::make_global(__result);
|
|
906
|
-
return
|
|
907
|
-
return __resultRef->invoke(id);
|
|
908
|
-
};
|
|
869
|
+
return JNICallable<JFunc_void_std__string, void(std::string)>(std::move(__resultRef));
|
|
909
870
|
}
|
|
910
871
|
}()) : std::nullopt;
|
|
911
872
|
}
|
|
@@ -922,9 +883,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
922
883
|
return downcast->cthis()->getFunction();
|
|
923
884
|
} else {
|
|
924
885
|
auto __resultRef = jni::make_global(__result);
|
|
925
|
-
return
|
|
926
|
-
return __resultRef->invoke(location);
|
|
927
|
-
};
|
|
886
|
+
return JNICallable<JFunc_void_RNLocation, void(RNLocation)>(std::move(__resultRef));
|
|
928
887
|
}
|
|
929
888
|
}()) : std::nullopt;
|
|
930
889
|
}
|
|
@@ -941,9 +900,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
941
900
|
return downcast->cthis()->getFunction();
|
|
942
901
|
} else {
|
|
943
902
|
auto __resultRef = jni::make_global(__result);
|
|
944
|
-
return
|
|
945
|
-
return __resultRef->invoke(pressed);
|
|
946
|
-
};
|
|
903
|
+
return JNICallable<JFunc_void_bool, void(bool)>(std::move(__resultRef));
|
|
947
904
|
}
|
|
948
905
|
}()) : std::nullopt;
|
|
949
906
|
}
|
|
@@ -960,9 +917,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
960
917
|
return downcast->cthis()->getFunction();
|
|
961
918
|
} else {
|
|
962
919
|
auto __resultRef = jni::make_global(__result);
|
|
963
|
-
return
|
|
964
|
-
return __resultRef->invoke(region,camera,isGesture);
|
|
965
|
-
};
|
|
920
|
+
return JNICallable<JFunc_void_RNRegion_RNCamera_bool, void(RNRegion, RNCamera, bool)>(std::move(__resultRef));
|
|
966
921
|
}
|
|
967
922
|
}()) : std::nullopt;
|
|
968
923
|
}
|
|
@@ -979,9 +934,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
979
934
|
return downcast->cthis()->getFunction();
|
|
980
935
|
} else {
|
|
981
936
|
auto __resultRef = jni::make_global(__result);
|
|
982
|
-
return
|
|
983
|
-
return __resultRef->invoke(region,camera,isGesture);
|
|
984
|
-
};
|
|
937
|
+
return JNICallable<JFunc_void_RNRegion_RNCamera_bool, void(RNRegion, RNCamera, bool)>(std::move(__resultRef));
|
|
985
938
|
}
|
|
986
939
|
}()) : std::nullopt;
|
|
987
940
|
}
|
|
@@ -998,9 +951,7 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
998
951
|
return downcast->cthis()->getFunction();
|
|
999
952
|
} else {
|
|
1000
953
|
auto __resultRef = jni::make_global(__result);
|
|
1001
|
-
return
|
|
1002
|
-
return __resultRef->invoke(region,camera,isGesture);
|
|
1003
|
-
};
|
|
954
|
+
return JNICallable<JFunc_void_RNRegion_RNCamera_bool, void(RNRegion, RNCamera, bool)>(std::move(__resultRef));
|
|
1004
955
|
}
|
|
1005
956
|
}()) : std::nullopt;
|
|
1006
957
|
}
|
|
@@ -118,10 +118,10 @@ namespace margelo::nitro::rngooglemapsplus {
|
|
|
118
118
|
void setOnMarkerDrag(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDrag) override;
|
|
119
119
|
std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> getOnMarkerDragEnd() override;
|
|
120
120
|
void setOnMarkerDragEnd(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDragEnd) override;
|
|
121
|
-
std::optional<std::function<void(const RNIndoorBuilding& /*
|
|
122
|
-
void setOnIndoorBuildingFocused(const std::optional<std::function<void(const RNIndoorBuilding& /*
|
|
123
|
-
std::optional<std::function<void(const RNIndoorLevel& /*
|
|
124
|
-
void setOnIndoorLevelActivated(const std::optional<std::function<void(const RNIndoorLevel& /*
|
|
121
|
+
std::optional<std::function<void(const RNIndoorBuilding& /* building */)>> getOnIndoorBuildingFocused() override;
|
|
122
|
+
void setOnIndoorBuildingFocused(const std::optional<std::function<void(const RNIndoorBuilding& /* building */)>>& onIndoorBuildingFocused) override;
|
|
123
|
+
std::optional<std::function<void(const RNIndoorLevel& /* level */)>> getOnIndoorLevelActivated() override;
|
|
124
|
+
void setOnIndoorLevelActivated(const std::optional<std::function<void(const RNIndoorLevel& /* level */)>>& onIndoorLevelActivated) override;
|
|
125
125
|
std::optional<std::function<void(const std::string& /* id */)>> getOnInfoWindowPress() override;
|
|
126
126
|
void setOnInfoWindowPress(const std::optional<std::function<void(const std::string& /* id */)>>& onInfoWindowPress) override;
|
|
127
127
|
std::optional<std::function<void(const std::string& /* id */)>> getOnInfoWindowClose() override;
|