@iternio/react-native-auto-play 0.1.2 → 0.1.4
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/lib/hooks/useFocusedEffect.d.ts +9 -0
- package/lib/hooks/useFocusedEffect.js +32 -0
- package/lib/hooks/useIsAutoPlayFocused.d.ts +7 -0
- package/lib/hooks/useIsAutoPlayFocused.js +20 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/nitrogen/generated/android/c++/JFunc_void.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_AlertDismissalReason.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_ColorScheme.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_Point.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_Point_double.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_Point_std__optional_Point_.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_SafeAreaInsets.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_VisibilityState.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_bool.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_std__optional_Location__std__optional_std__string_.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_std__optional_Telemetry__std__optional_std__string_.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_std__optional_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_ColorScheme.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_std__string_ZoomEvent.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_std__string_bool.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_std__string_std__string.hpp +2 -1
- package/nitrogen/generated/android/c++/JGridTemplateConfig.hpp +6 -15
- package/nitrogen/generated/android/c++/JHybridAndroidAutoTelemetrySpec.cpp +2 -3
- package/nitrogen/generated/android/c++/JHybridAutoPlaySpec.cpp +5 -12
- package/nitrogen/generated/android/c++/JHybridClusterSpec.cpp +6 -15
- package/nitrogen/generated/android/c++/JHybridGridTemplateSpec.cpp +1 -0
- package/nitrogen/generated/android/c++/JHybridInformationTemplateSpec.cpp +1 -0
- package/nitrogen/generated/android/c++/JHybridListTemplateSpec.cpp +1 -0
- package/nitrogen/generated/android/c++/JHybridMapTemplateSpec.cpp +1 -0
- package/nitrogen/generated/android/c++/JHybridMessageTemplateSpec.cpp +1 -0
- package/nitrogen/generated/android/c++/JHybridSearchTemplateSpec.cpp +1 -0
- package/nitrogen/generated/android/c++/JInformationTemplateConfig.hpp +6 -15
- package/nitrogen/generated/android/c++/JListTemplateConfig.hpp +6 -15
- package/nitrogen/generated/android/c++/JMapTemplateConfig.hpp +14 -39
- package/nitrogen/generated/android/c++/JMessageTemplateConfig.hpp +6 -15
- package/nitrogen/generated/android/c++/JNavigationAlertAction.hpp +2 -3
- package/nitrogen/generated/android/c++/JNitroAction.hpp +2 -3
- package/nitrogen/generated/android/c++/JNitroBaseMapTemplateConfig.hpp +7 -18
- package/nitrogen/generated/android/c++/JNitroGridButton.hpp +2 -3
- package/nitrogen/generated/android/c++/JNitroManeuver.cpp +9 -9
- package/nitrogen/generated/android/c++/JNitroMapButton.hpp +2 -3
- package/nitrogen/generated/android/c++/JNitroNavigationAlert.hpp +3 -6
- package/nitrogen/generated/android/c++/JNitroRow.hpp +2 -3
- package/nitrogen/generated/android/c++/JNitroSection.hpp +1 -0
- package/nitrogen/generated/android/c++/JSearchTemplateConfig.hpp +8 -21
- package/nitrogen/generated/android/c++/JTripSelectorCallback.hpp +2 -3
- package/nitrogen/generated/ios/ReactNativeAutoPlay-Swift-Cxx-Bridge.cpp +1 -0
- package/nitrogen/generated/ios/swift/AssetImage.swift +1 -0
- package/nitrogen/generated/ios/swift/AutoText.swift +1 -0
- package/nitrogen/generated/ios/swift/Distance.swift +1 -0
- package/nitrogen/generated/ios/swift/DurationWithTimeZone.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_AlertDismissalReason.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_ColorScheme.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_Point.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_Point_double.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_Point_std__optional_Point_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_SafeAreaInsets.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_VisibilityState.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_Location__std__optional_std__string_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_bool_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__string_ColorScheme.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__string_ZoomEvent.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__string_bool.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__string_std__string.swift +1 -1
- package/nitrogen/generated/ios/swift/GlyphImage.swift +1 -0
- package/nitrogen/generated/ios/swift/GridTemplateConfig.swift +1 -0
- package/nitrogen/generated/ios/swift/HybridAutoPlaySpec.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridAutoPlaySpec_cxx.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridCarPlayDashboardSpec.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridCarPlayDashboardSpec_cxx.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridClusterSpec.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridClusterSpec_cxx.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridGridTemplateSpec.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridGridTemplateSpec_cxx.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridInformationTemplateSpec.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridInformationTemplateSpec_cxx.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridListTemplateSpec.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridListTemplateSpec_cxx.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridMapTemplateSpec.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridMapTemplateSpec_cxx.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridSearchTemplateSpec.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridSearchTemplateSpec_cxx.swift +0 -1
- package/nitrogen/generated/ios/swift/ImageLane.swift +1 -0
- package/nitrogen/generated/ios/swift/InformationTemplateConfig.swift +1 -0
- package/nitrogen/generated/ios/swift/LaneGuidance.swift +1 -0
- package/nitrogen/generated/ios/swift/ListTemplateConfig.swift +1 -0
- package/nitrogen/generated/ios/swift/Location.swift +1 -0
- package/nitrogen/generated/ios/swift/MapTemplateConfig.swift +1 -0
- package/nitrogen/generated/ios/swift/MessageTemplateConfig.swift +1 -0
- package/nitrogen/generated/ios/swift/NavigationAlertAction.swift +1 -0
- package/nitrogen/generated/ios/swift/NitroAction.swift +1 -0
- package/nitrogen/generated/ios/swift/NitroAttributedString.swift +1 -0
- package/nitrogen/generated/ios/swift/NitroAttributedStringImage.swift +1 -0
- package/nitrogen/generated/ios/swift/NitroBaseMapTemplateConfig.swift +1 -0
- package/nitrogen/generated/ios/swift/NitroCarPlayDashboardButton.swift +1 -0
- package/nitrogen/generated/ios/swift/NitroColor.swift +1 -0
- package/nitrogen/generated/ios/swift/NitroGridButton.swift +1 -0
- package/nitrogen/generated/ios/swift/NitroLoadingManeuver.swift +1 -0
- package/nitrogen/generated/ios/swift/NitroMapButton.swift +1 -0
- package/nitrogen/generated/ios/swift/NitroMessageManeuver.swift +1 -0
- package/nitrogen/generated/ios/swift/NitroNavigationAlert.swift +1 -0
- package/nitrogen/generated/ios/swift/NitroRoutingManeuver.swift +1 -0
- package/nitrogen/generated/ios/swift/NitroRow.swift +1 -0
- package/nitrogen/generated/ios/swift/NitroSection.swift +1 -0
- package/nitrogen/generated/ios/swift/Point.swift +1 -0
- package/nitrogen/generated/ios/swift/PreferredImageLane.swift +1 -0
- package/nitrogen/generated/ios/swift/RouteChoice.swift +1 -0
- package/nitrogen/generated/ios/swift/SafeAreaInsets.swift +1 -0
- package/nitrogen/generated/ios/swift/SearchTemplateConfig.swift +1 -0
- package/nitrogen/generated/ios/swift/TravelEstimates.swift +1 -0
- package/nitrogen/generated/ios/swift/TripConfig.swift +1 -0
- package/nitrogen/generated/ios/swift/TripPoint.swift +1 -0
- package/nitrogen/generated/ios/swift/TripPreviewTextConfiguration.swift +1 -0
- package/nitrogen/generated/ios/swift/TripSelectorCallback.swift +1 -0
- package/nitrogen/generated/ios/swift/TripsConfig.swift +1 -0
- package/package.json +2 -2
- package/src/hooks/useFocusedEffect.ts +42 -0
- package/src/index.ts +1 -0
- package/lib/specs/VoiceInput.nitro.d.ts +0 -8
- package/lib/specs/VoiceInput.nitro.js +0 -1
|
@@ -44,6 +44,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class NitroSe
|
|
|
44
44
|
#include <optional>
|
|
45
45
|
#include <functional>
|
|
46
46
|
#include "JFunc_void_std__optional_bool_.hpp"
|
|
47
|
+
#include <NitroModules/JNICallable.hpp>
|
|
47
48
|
#include "JFunc_void.hpp"
|
|
48
49
|
#include "NitroAction.hpp"
|
|
49
50
|
#include <vector>
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
#include "NitroRow.hpp"
|
|
48
48
|
#include "NitroSection.hpp"
|
|
49
49
|
#include "NitroSectionType.hpp"
|
|
50
|
+
#include <NitroModules/JNICallable.hpp>
|
|
50
51
|
#include <functional>
|
|
51
52
|
#include <optional>
|
|
52
53
|
#include <string>
|
|
@@ -104,9 +105,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
104
105
|
return downcast->cthis()->getFunction();
|
|
105
106
|
} else {
|
|
106
107
|
auto onWillAppearRef = jni::make_global(onWillAppear);
|
|
107
|
-
return
|
|
108
|
-
return onWillAppearRef->invoke(animated);
|
|
109
|
-
};
|
|
108
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onWillAppearRef));
|
|
110
109
|
}
|
|
111
110
|
}()) : std::nullopt,
|
|
112
111
|
onWillDisappear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -115,9 +114,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
115
114
|
return downcast->cthis()->getFunction();
|
|
116
115
|
} else {
|
|
117
116
|
auto onWillDisappearRef = jni::make_global(onWillDisappear);
|
|
118
|
-
return
|
|
119
|
-
return onWillDisappearRef->invoke(animated);
|
|
120
|
-
};
|
|
117
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onWillDisappearRef));
|
|
121
118
|
}
|
|
122
119
|
}()) : std::nullopt,
|
|
123
120
|
onDidAppear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -126,9 +123,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
126
123
|
return downcast->cthis()->getFunction();
|
|
127
124
|
} else {
|
|
128
125
|
auto onDidAppearRef = jni::make_global(onDidAppear);
|
|
129
|
-
return
|
|
130
|
-
return onDidAppearRef->invoke(animated);
|
|
131
|
-
};
|
|
126
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onDidAppearRef));
|
|
132
127
|
}
|
|
133
128
|
}()) : std::nullopt,
|
|
134
129
|
onDidDisappear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -137,9 +132,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
137
132
|
return downcast->cthis()->getFunction();
|
|
138
133
|
} else {
|
|
139
134
|
auto onDidDisappearRef = jni::make_global(onDidDisappear);
|
|
140
|
-
return
|
|
141
|
-
return onDidDisappearRef->invoke(animated);
|
|
142
|
-
};
|
|
135
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onDidDisappearRef));
|
|
143
136
|
}
|
|
144
137
|
}()) : std::nullopt,
|
|
145
138
|
onPopped != nullptr ? std::make_optional([&]() -> std::function<void()> {
|
|
@@ -148,9 +141,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
148
141
|
return downcast->cthis()->getFunction();
|
|
149
142
|
} else {
|
|
150
143
|
auto onPoppedRef = jni::make_global(onPopped);
|
|
151
|
-
return
|
|
152
|
-
return onPoppedRef->invoke();
|
|
153
|
-
};
|
|
144
|
+
return JNICallable<JFunc_void, void()>(std::move(onPoppedRef));
|
|
154
145
|
}
|
|
155
146
|
}()) : std::nullopt,
|
|
156
147
|
autoDismissMs != nullptr ? std::make_optional(autoDismissMs->value()) : std::nullopt,
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
#include "NitroRow.hpp"
|
|
48
48
|
#include "NitroSection.hpp"
|
|
49
49
|
#include "NitroSectionType.hpp"
|
|
50
|
+
#include <NitroModules/JNICallable.hpp>
|
|
50
51
|
#include <functional>
|
|
51
52
|
#include <optional>
|
|
52
53
|
#include <string>
|
|
@@ -102,9 +103,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
102
103
|
return downcast->cthis()->getFunction();
|
|
103
104
|
} else {
|
|
104
105
|
auto onWillAppearRef = jni::make_global(onWillAppear);
|
|
105
|
-
return
|
|
106
|
-
return onWillAppearRef->invoke(animated);
|
|
107
|
-
};
|
|
106
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onWillAppearRef));
|
|
108
107
|
}
|
|
109
108
|
}()) : std::nullopt,
|
|
110
109
|
onWillDisappear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -113,9 +112,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
113
112
|
return downcast->cthis()->getFunction();
|
|
114
113
|
} else {
|
|
115
114
|
auto onWillDisappearRef = jni::make_global(onWillDisappear);
|
|
116
|
-
return
|
|
117
|
-
return onWillDisappearRef->invoke(animated);
|
|
118
|
-
};
|
|
115
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onWillDisappearRef));
|
|
119
116
|
}
|
|
120
117
|
}()) : std::nullopt,
|
|
121
118
|
onDidAppear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -124,9 +121,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
124
121
|
return downcast->cthis()->getFunction();
|
|
125
122
|
} else {
|
|
126
123
|
auto onDidAppearRef = jni::make_global(onDidAppear);
|
|
127
|
-
return
|
|
128
|
-
return onDidAppearRef->invoke(animated);
|
|
129
|
-
};
|
|
124
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onDidAppearRef));
|
|
130
125
|
}
|
|
131
126
|
}()) : std::nullopt,
|
|
132
127
|
onDidDisappear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -135,9 +130,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
135
130
|
return downcast->cthis()->getFunction();
|
|
136
131
|
} else {
|
|
137
132
|
auto onDidDisappearRef = jni::make_global(onDidDisappear);
|
|
138
|
-
return
|
|
139
|
-
return onDidDisappearRef->invoke(animated);
|
|
140
|
-
};
|
|
133
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onDidDisappearRef));
|
|
141
134
|
}
|
|
142
135
|
}()) : std::nullopt,
|
|
143
136
|
onPopped != nullptr ? std::make_optional([&]() -> std::function<void()> {
|
|
@@ -146,9 +139,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
146
139
|
return downcast->cthis()->getFunction();
|
|
147
140
|
} else {
|
|
148
141
|
auto onPoppedRef = jni::make_global(onPopped);
|
|
149
|
-
return
|
|
150
|
-
return onPoppedRef->invoke();
|
|
151
|
-
};
|
|
142
|
+
return JNICallable<JFunc_void, void()>(std::move(onPoppedRef));
|
|
152
143
|
}
|
|
153
144
|
}()) : std::nullopt,
|
|
154
145
|
autoDismissMs != nullptr ? std::make_optional(autoDismissMs->value()) : std::nullopt,
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
#include "NitroMapButtonType.hpp"
|
|
44
44
|
#include "Point.hpp"
|
|
45
45
|
#include "VisibleTravelEstimate.hpp"
|
|
46
|
+
#include <NitroModules/JNICallable.hpp>
|
|
46
47
|
#include <functional>
|
|
47
48
|
#include <optional>
|
|
48
49
|
#include <string>
|
|
@@ -114,9 +115,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
114
115
|
return downcast->cthis()->getFunction();
|
|
115
116
|
} else {
|
|
116
117
|
auto onWillAppearRef = jni::make_global(onWillAppear);
|
|
117
|
-
return
|
|
118
|
-
return onWillAppearRef->invoke(animated);
|
|
119
|
-
};
|
|
118
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onWillAppearRef));
|
|
120
119
|
}
|
|
121
120
|
}()) : std::nullopt,
|
|
122
121
|
onWillDisappear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -125,9 +124,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
125
124
|
return downcast->cthis()->getFunction();
|
|
126
125
|
} else {
|
|
127
126
|
auto onWillDisappearRef = jni::make_global(onWillDisappear);
|
|
128
|
-
return
|
|
129
|
-
return onWillDisappearRef->invoke(animated);
|
|
130
|
-
};
|
|
127
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onWillDisappearRef));
|
|
131
128
|
}
|
|
132
129
|
}()) : std::nullopt,
|
|
133
130
|
onDidAppear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -136,9 +133,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
136
133
|
return downcast->cthis()->getFunction();
|
|
137
134
|
} else {
|
|
138
135
|
auto onDidAppearRef = jni::make_global(onDidAppear);
|
|
139
|
-
return
|
|
140
|
-
return onDidAppearRef->invoke(animated);
|
|
141
|
-
};
|
|
136
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onDidAppearRef));
|
|
142
137
|
}
|
|
143
138
|
}()) : std::nullopt,
|
|
144
139
|
onDidDisappear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -147,9 +142,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
147
142
|
return downcast->cthis()->getFunction();
|
|
148
143
|
} else {
|
|
149
144
|
auto onDidDisappearRef = jni::make_global(onDidDisappear);
|
|
150
|
-
return
|
|
151
|
-
return onDidDisappearRef->invoke(animated);
|
|
152
|
-
};
|
|
145
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onDidDisappearRef));
|
|
153
146
|
}
|
|
154
147
|
}()) : std::nullopt,
|
|
155
148
|
onPopped != nullptr ? std::make_optional([&]() -> std::function<void()> {
|
|
@@ -158,9 +151,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
158
151
|
return downcast->cthis()->getFunction();
|
|
159
152
|
} else {
|
|
160
153
|
auto onPoppedRef = jni::make_global(onPopped);
|
|
161
|
-
return
|
|
162
|
-
return onPoppedRef->invoke();
|
|
163
|
-
};
|
|
154
|
+
return JNICallable<JFunc_void, void()>(std::move(onPoppedRef));
|
|
164
155
|
}
|
|
165
156
|
}()) : std::nullopt,
|
|
166
157
|
autoDismissMs != nullptr ? std::make_optional(autoDismissMs->value()) : std::nullopt,
|
|
@@ -171,9 +162,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
171
162
|
return downcast->cthis()->getFunction();
|
|
172
163
|
} else {
|
|
173
164
|
auto onDidPanRef = jni::make_global(onDidPan);
|
|
174
|
-
return
|
|
175
|
-
return onDidPanRef->invoke(translation,velocity);
|
|
176
|
-
};
|
|
165
|
+
return JNICallable<JFunc_void_Point_std__optional_Point_, void(Point, std::optional<Point>)>(std::move(onDidPanRef));
|
|
177
166
|
}
|
|
178
167
|
}()) : std::nullopt,
|
|
179
168
|
onDidUpdateZoomGestureWithCenter != nullptr ? std::make_optional([&]() -> std::function<void(const Point& /* center */, double /* scale */)> {
|
|
@@ -182,9 +171,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
182
171
|
return downcast->cthis()->getFunction();
|
|
183
172
|
} else {
|
|
184
173
|
auto onDidUpdateZoomGestureWithCenterRef = jni::make_global(onDidUpdateZoomGestureWithCenter);
|
|
185
|
-
return
|
|
186
|
-
return onDidUpdateZoomGestureWithCenterRef->invoke(center,scale);
|
|
187
|
-
};
|
|
174
|
+
return JNICallable<JFunc_void_Point_double, void(Point, double)>(std::move(onDidUpdateZoomGestureWithCenterRef));
|
|
188
175
|
}
|
|
189
176
|
}()) : std::nullopt,
|
|
190
177
|
onClick != nullptr ? std::make_optional([&]() -> std::function<void(const Point& /* center */)> {
|
|
@@ -193,9 +180,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
193
180
|
return downcast->cthis()->getFunction();
|
|
194
181
|
} else {
|
|
195
182
|
auto onClickRef = jni::make_global(onClick);
|
|
196
|
-
return
|
|
197
|
-
return onClickRef->invoke(center);
|
|
198
|
-
};
|
|
183
|
+
return JNICallable<JFunc_void_Point, void(Point)>(std::move(onClickRef));
|
|
199
184
|
}
|
|
200
185
|
}()) : std::nullopt,
|
|
201
186
|
onDoubleClick != nullptr ? std::make_optional([&]() -> std::function<void(const Point& /* center */)> {
|
|
@@ -204,9 +189,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
204
189
|
return downcast->cthis()->getFunction();
|
|
205
190
|
} else {
|
|
206
191
|
auto onDoubleClickRef = jni::make_global(onDoubleClick);
|
|
207
|
-
return
|
|
208
|
-
return onDoubleClickRef->invoke(center);
|
|
209
|
-
};
|
|
192
|
+
return JNICallable<JFunc_void_Point, void(Point)>(std::move(onDoubleClickRef));
|
|
210
193
|
}
|
|
211
194
|
}()) : std::nullopt,
|
|
212
195
|
onAppearanceDidChange != nullptr ? std::make_optional([&]() -> std::function<void(ColorScheme /* colorScheme */)> {
|
|
@@ -215,9 +198,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
215
198
|
return downcast->cthis()->getFunction();
|
|
216
199
|
} else {
|
|
217
200
|
auto onAppearanceDidChangeRef = jni::make_global(onAppearanceDidChange);
|
|
218
|
-
return
|
|
219
|
-
return onAppearanceDidChangeRef->invoke(colorScheme);
|
|
220
|
-
};
|
|
201
|
+
return JNICallable<JFunc_void_ColorScheme, void(ColorScheme)>(std::move(onAppearanceDidChangeRef));
|
|
221
202
|
}
|
|
222
203
|
}()) : std::nullopt,
|
|
223
204
|
[&]() -> std::function<void()> {
|
|
@@ -226,9 +207,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
226
207
|
return downcast->cthis()->getFunction();
|
|
227
208
|
} else {
|
|
228
209
|
auto onStopNavigationRef = jni::make_global(onStopNavigation);
|
|
229
|
-
return
|
|
230
|
-
return onStopNavigationRef->invoke();
|
|
231
|
-
};
|
|
210
|
+
return JNICallable<JFunc_void, void()>(std::move(onStopNavigationRef));
|
|
232
211
|
}
|
|
233
212
|
}(),
|
|
234
213
|
onAutoDriveEnabled != nullptr ? std::make_optional([&]() -> std::function<void()> {
|
|
@@ -237,9 +216,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
237
216
|
return downcast->cthis()->getFunction();
|
|
238
217
|
} else {
|
|
239
218
|
auto onAutoDriveEnabledRef = jni::make_global(onAutoDriveEnabled);
|
|
240
|
-
return
|
|
241
|
-
return onAutoDriveEnabledRef->invoke();
|
|
242
|
-
};
|
|
219
|
+
return JNICallable<JFunc_void, void()>(std::move(onAutoDriveEnabledRef));
|
|
243
220
|
}
|
|
244
221
|
}()) : std::nullopt,
|
|
245
222
|
mapButtons != nullptr ? std::make_optional([&]() {
|
|
@@ -269,9 +246,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
269
246
|
return downcast->cthis()->getFunction();
|
|
270
247
|
} else {
|
|
271
248
|
auto onDidChangePanningInterfaceRef = jni::make_global(onDidChangePanningInterface);
|
|
272
|
-
return
|
|
273
|
-
return onDidChangePanningInterfaceRef->invoke(isPanningInterfaceVisible);
|
|
274
|
-
};
|
|
249
|
+
return JNICallable<JFunc_void_bool, void(bool)>(std::move(onDidChangePanningInterfaceRef));
|
|
275
250
|
}
|
|
276
251
|
}()) : std::nullopt
|
|
277
252
|
);
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
#include "NitroColor.hpp"
|
|
42
42
|
#include "NitroMapButton.hpp"
|
|
43
43
|
#include "NitroMapButtonType.hpp"
|
|
44
|
+
#include <NitroModules/JNICallable.hpp>
|
|
44
45
|
#include <functional>
|
|
45
46
|
#include <optional>
|
|
46
47
|
#include <string>
|
|
@@ -100,9 +101,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
100
101
|
return downcast->cthis()->getFunction();
|
|
101
102
|
} else {
|
|
102
103
|
auto onWillAppearRef = jni::make_global(onWillAppear);
|
|
103
|
-
return
|
|
104
|
-
return onWillAppearRef->invoke(animated);
|
|
105
|
-
};
|
|
104
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onWillAppearRef));
|
|
106
105
|
}
|
|
107
106
|
}()) : std::nullopt,
|
|
108
107
|
onWillDisappear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -111,9 +110,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
111
110
|
return downcast->cthis()->getFunction();
|
|
112
111
|
} else {
|
|
113
112
|
auto onWillDisappearRef = jni::make_global(onWillDisappear);
|
|
114
|
-
return
|
|
115
|
-
return onWillDisappearRef->invoke(animated);
|
|
116
|
-
};
|
|
113
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onWillDisappearRef));
|
|
117
114
|
}
|
|
118
115
|
}()) : std::nullopt,
|
|
119
116
|
onDidAppear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -122,9 +119,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
122
119
|
return downcast->cthis()->getFunction();
|
|
123
120
|
} else {
|
|
124
121
|
auto onDidAppearRef = jni::make_global(onDidAppear);
|
|
125
|
-
return
|
|
126
|
-
return onDidAppearRef->invoke(animated);
|
|
127
|
-
};
|
|
122
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onDidAppearRef));
|
|
128
123
|
}
|
|
129
124
|
}()) : std::nullopt,
|
|
130
125
|
onDidDisappear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -133,9 +128,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
133
128
|
return downcast->cthis()->getFunction();
|
|
134
129
|
} else {
|
|
135
130
|
auto onDidDisappearRef = jni::make_global(onDidDisappear);
|
|
136
|
-
return
|
|
137
|
-
return onDidDisappearRef->invoke(animated);
|
|
138
|
-
};
|
|
131
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onDidDisappearRef));
|
|
139
132
|
}
|
|
140
133
|
}()) : std::nullopt,
|
|
141
134
|
onPopped != nullptr ? std::make_optional([&]() -> std::function<void()> {
|
|
@@ -144,9 +137,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
144
137
|
return downcast->cthis()->getFunction();
|
|
145
138
|
} else {
|
|
146
139
|
auto onPoppedRef = jni::make_global(onPopped);
|
|
147
|
-
return
|
|
148
|
-
return onPoppedRef->invoke();
|
|
149
|
-
};
|
|
140
|
+
return JNICallable<JFunc_void, void()>(std::move(onPoppedRef));
|
|
150
141
|
}
|
|
151
142
|
}()) : std::nullopt,
|
|
152
143
|
autoDismissMs != nullptr ? std::make_optional(autoDismissMs->value()) : std::nullopt,
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
#include "AlertActionStyle.hpp"
|
|
14
14
|
#include "JAlertActionStyle.hpp"
|
|
15
15
|
#include "JFunc_void.hpp"
|
|
16
|
+
#include <NitroModules/JNICallable.hpp>
|
|
16
17
|
#include <functional>
|
|
17
18
|
#include <optional>
|
|
18
19
|
#include <string>
|
|
@@ -51,9 +52,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
51
52
|
return downcast->cthis()->getFunction();
|
|
52
53
|
} else {
|
|
53
54
|
auto onPressRef = jni::make_global(onPress);
|
|
54
|
-
return
|
|
55
|
-
return onPressRef->invoke();
|
|
56
|
-
};
|
|
55
|
+
return JNICallable<JFunc_void, void()>(std::move(onPressRef));
|
|
57
56
|
}
|
|
58
57
|
}()
|
|
59
58
|
);
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
#include "NitroAlignment.hpp"
|
|
25
25
|
#include "NitroButtonStyle.hpp"
|
|
26
26
|
#include "NitroColor.hpp"
|
|
27
|
+
#include <NitroModules/JNICallable.hpp>
|
|
27
28
|
#include <functional>
|
|
28
29
|
#include <optional>
|
|
29
30
|
#include <string>
|
|
@@ -74,9 +75,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
74
75
|
return downcast->cthis()->getFunction();
|
|
75
76
|
} else {
|
|
76
77
|
auto onPressRef = jni::make_global(onPress);
|
|
77
|
-
return
|
|
78
|
-
return onPressRef->invoke();
|
|
79
|
-
};
|
|
78
|
+
return JNICallable<JFunc_void, void()>(std::move(onPressRef));
|
|
80
79
|
}
|
|
81
80
|
}(),
|
|
82
81
|
type->toCpp(),
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
#include "NitroColor.hpp"
|
|
34
34
|
#include "NitroMapButton.hpp"
|
|
35
35
|
#include "NitroMapButtonType.hpp"
|
|
36
|
+
#include <NitroModules/JNICallable.hpp>
|
|
36
37
|
#include <functional>
|
|
37
38
|
#include <optional>
|
|
38
39
|
#include <string>
|
|
@@ -103,9 +104,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
103
104
|
return downcast->cthis()->getFunction();
|
|
104
105
|
} else {
|
|
105
106
|
auto onDidChangePanningInterfaceRef = jni::make_global(onDidChangePanningInterface);
|
|
106
|
-
return
|
|
107
|
-
return onDidChangePanningInterfaceRef->invoke(isPanningInterfaceVisible);
|
|
108
|
-
};
|
|
107
|
+
return JNICallable<JFunc_void_bool, void(bool)>(std::move(onDidChangePanningInterfaceRef));
|
|
109
108
|
}
|
|
110
109
|
}()) : std::nullopt,
|
|
111
110
|
onWillAppear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -114,9 +113,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
114
113
|
return downcast->cthis()->getFunction();
|
|
115
114
|
} else {
|
|
116
115
|
auto onWillAppearRef = jni::make_global(onWillAppear);
|
|
117
|
-
return
|
|
118
|
-
return onWillAppearRef->invoke(animated);
|
|
119
|
-
};
|
|
116
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onWillAppearRef));
|
|
120
117
|
}
|
|
121
118
|
}()) : std::nullopt,
|
|
122
119
|
onWillDisappear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -125,9 +122,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
125
122
|
return downcast->cthis()->getFunction();
|
|
126
123
|
} else {
|
|
127
124
|
auto onWillDisappearRef = jni::make_global(onWillDisappear);
|
|
128
|
-
return
|
|
129
|
-
return onWillDisappearRef->invoke(animated);
|
|
130
|
-
};
|
|
125
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onWillDisappearRef));
|
|
131
126
|
}
|
|
132
127
|
}()) : std::nullopt,
|
|
133
128
|
onDidAppear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -136,9 +131,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
136
131
|
return downcast->cthis()->getFunction();
|
|
137
132
|
} else {
|
|
138
133
|
auto onDidAppearRef = jni::make_global(onDidAppear);
|
|
139
|
-
return
|
|
140
|
-
return onDidAppearRef->invoke(animated);
|
|
141
|
-
};
|
|
134
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onDidAppearRef));
|
|
142
135
|
}
|
|
143
136
|
}()) : std::nullopt,
|
|
144
137
|
onDidDisappear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -147,9 +140,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
147
140
|
return downcast->cthis()->getFunction();
|
|
148
141
|
} else {
|
|
149
142
|
auto onDidDisappearRef = jni::make_global(onDidDisappear);
|
|
150
|
-
return
|
|
151
|
-
return onDidDisappearRef->invoke(animated);
|
|
152
|
-
};
|
|
143
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onDidDisappearRef));
|
|
153
144
|
}
|
|
154
145
|
}()) : std::nullopt,
|
|
155
146
|
onPopped != nullptr ? std::make_optional([&]() -> std::function<void()> {
|
|
@@ -158,9 +149,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
158
149
|
return downcast->cthis()->getFunction();
|
|
159
150
|
} else {
|
|
160
151
|
auto onPoppedRef = jni::make_global(onPopped);
|
|
161
|
-
return
|
|
162
|
-
return onPoppedRef->invoke();
|
|
163
|
-
};
|
|
152
|
+
return JNICallable<JFunc_void, void()>(std::move(onPoppedRef));
|
|
164
153
|
}
|
|
165
154
|
}()) : std::nullopt,
|
|
166
155
|
autoDismissMs != nullptr ? std::make_optional(autoDismissMs->value()) : std::nullopt
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
#include "JNitroColor.hpp"
|
|
25
25
|
#include "JNitroImage.hpp"
|
|
26
26
|
#include "NitroColor.hpp"
|
|
27
|
+
#include <NitroModules/JNICallable.hpp>
|
|
27
28
|
#include <functional>
|
|
28
29
|
#include <optional>
|
|
29
30
|
#include <string>
|
|
@@ -63,9 +64,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
63
64
|
return downcast->cthis()->getFunction();
|
|
64
65
|
} else {
|
|
65
66
|
auto onPressRef = jni::make_global(onPress);
|
|
66
|
-
return
|
|
67
|
-
return onPressRef->invoke();
|
|
68
|
-
};
|
|
67
|
+
return JNICallable<JFunc_void, void()>(std::move(onPressRef));
|
|
69
68
|
}
|
|
70
69
|
}()
|
|
71
70
|
);
|
|
@@ -16,15 +16,15 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
16
16
|
// It's a `std::vector<NitroRoutingManeuver>`
|
|
17
17
|
auto jniValue = static_cast<const JNitroManeuver_impl::First*>(this)->getValue();
|
|
18
18
|
return [&]() {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
size_t __size = jniValue->size();
|
|
20
|
+
std::vector<NitroRoutingManeuver> __vector;
|
|
21
|
+
__vector.reserve(__size);
|
|
22
|
+
for (size_t __i = 0; __i < __size; __i++) {
|
|
23
|
+
auto __element = jniValue->getElement(__i);
|
|
24
|
+
__vector.push_back(__element->toCpp());
|
|
25
|
+
}
|
|
26
|
+
return __vector;
|
|
27
|
+
}();
|
|
28
28
|
} else if (isInstanceOf(JNitroManeuver_impl::Second::javaClassStatic())) {
|
|
29
29
|
// It's a `NitroMessageManeuver`
|
|
30
30
|
auto jniValue = static_cast<const JNitroManeuver_impl::Second*>(this)->getValue();
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
#include "JNitroMapButtonType.hpp"
|
|
21
21
|
#include "NitroColor.hpp"
|
|
22
22
|
#include "NitroMapButtonType.hpp"
|
|
23
|
+
#include <NitroModules/JNICallable.hpp>
|
|
23
24
|
#include <functional>
|
|
24
25
|
#include <optional>
|
|
25
26
|
#include <string>
|
|
@@ -59,9 +60,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
59
60
|
return downcast->cthis()->getFunction();
|
|
60
61
|
} else {
|
|
61
62
|
auto onPressRef = jni::make_global(onPress);
|
|
62
|
-
return
|
|
63
|
-
return onPressRef->invoke();
|
|
64
|
-
};
|
|
63
|
+
return JNICallable<JFunc_void, void()>(std::move(onPressRef));
|
|
65
64
|
}
|
|
66
65
|
}()) : std::nullopt
|
|
67
66
|
);
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
#include "JVariant_GlyphImage_AssetImage.hpp"
|
|
32
32
|
#include "NavigationAlertAction.hpp"
|
|
33
33
|
#include "NitroColor.hpp"
|
|
34
|
+
#include <NitroModules/JNICallable.hpp>
|
|
34
35
|
#include <functional>
|
|
35
36
|
#include <optional>
|
|
36
37
|
#include <string>
|
|
@@ -89,9 +90,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
89
90
|
return downcast->cthis()->getFunction();
|
|
90
91
|
} else {
|
|
91
92
|
auto onWillShowRef = jni::make_global(onWillShow);
|
|
92
|
-
return
|
|
93
|
-
return onWillShowRef->invoke();
|
|
94
|
-
};
|
|
93
|
+
return JNICallable<JFunc_void, void()>(std::move(onWillShowRef));
|
|
95
94
|
}
|
|
96
95
|
}()) : std::nullopt,
|
|
97
96
|
onDidDismiss != nullptr ? std::make_optional([&]() -> std::function<void(AlertDismissalReason /* reason */)> {
|
|
@@ -100,9 +99,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
100
99
|
return downcast->cthis()->getFunction();
|
|
101
100
|
} else {
|
|
102
101
|
auto onDidDismissRef = jni::make_global(onDidDismiss);
|
|
103
|
-
return
|
|
104
|
-
return onDidDismissRef->invoke(reason);
|
|
105
|
-
};
|
|
102
|
+
return JNICallable<JFunc_void_AlertDismissalReason, void(AlertDismissalReason)>(std::move(onDidDismissRef));
|
|
106
103
|
}
|
|
107
104
|
}()) : std::nullopt,
|
|
108
105
|
priority
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
#include "JNitroColor.hpp"
|
|
25
25
|
#include "JVariant_GlyphImage_AssetImage.hpp"
|
|
26
26
|
#include "NitroColor.hpp"
|
|
27
|
+
#include <NitroModules/JNICallable.hpp>
|
|
27
28
|
#include <functional>
|
|
28
29
|
#include <optional>
|
|
29
30
|
#include <string>
|
|
@@ -77,9 +78,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
77
78
|
return downcast->cthis()->getFunction();
|
|
78
79
|
} else {
|
|
79
80
|
auto onPressRef = jni::make_global(onPress);
|
|
80
|
-
return
|
|
81
|
-
return onPressRef->invoke(checked);
|
|
82
|
-
};
|
|
81
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onPressRef));
|
|
83
82
|
}
|
|
84
83
|
}()) : std::nullopt,
|
|
85
84
|
selected != nullptr ? std::make_optional(static_cast<bool>(selected->value())) : std::nullopt
|