@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
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
#include "NitroRow.hpp"
|
|
41
41
|
#include "NitroSection.hpp"
|
|
42
42
|
#include "NitroSectionType.hpp"
|
|
43
|
+
#include <NitroModules/JNICallable.hpp>
|
|
43
44
|
#include <functional>
|
|
44
45
|
#include <optional>
|
|
45
46
|
#include <string>
|
|
@@ -101,9 +102,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
101
102
|
return downcast->cthis()->getFunction();
|
|
102
103
|
} else {
|
|
103
104
|
auto onWillAppearRef = jni::make_global(onWillAppear);
|
|
104
|
-
return
|
|
105
|
-
return onWillAppearRef->invoke(animated);
|
|
106
|
-
};
|
|
105
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onWillAppearRef));
|
|
107
106
|
}
|
|
108
107
|
}()) : std::nullopt,
|
|
109
108
|
onWillDisappear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -112,9 +111,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
112
111
|
return downcast->cthis()->getFunction();
|
|
113
112
|
} else {
|
|
114
113
|
auto onWillDisappearRef = jni::make_global(onWillDisappear);
|
|
115
|
-
return
|
|
116
|
-
return onWillDisappearRef->invoke(animated);
|
|
117
|
-
};
|
|
114
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onWillDisappearRef));
|
|
118
115
|
}
|
|
119
116
|
}()) : std::nullopt,
|
|
120
117
|
onDidAppear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -123,9 +120,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
123
120
|
return downcast->cthis()->getFunction();
|
|
124
121
|
} else {
|
|
125
122
|
auto onDidAppearRef = jni::make_global(onDidAppear);
|
|
126
|
-
return
|
|
127
|
-
return onDidAppearRef->invoke(animated);
|
|
128
|
-
};
|
|
123
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onDidAppearRef));
|
|
129
124
|
}
|
|
130
125
|
}()) : std::nullopt,
|
|
131
126
|
onDidDisappear != nullptr ? std::make_optional([&]() -> std::function<void(std::optional<bool> /* animated */)> {
|
|
@@ -134,9 +129,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
134
129
|
return downcast->cthis()->getFunction();
|
|
135
130
|
} else {
|
|
136
131
|
auto onDidDisappearRef = jni::make_global(onDidDisappear);
|
|
137
|
-
return
|
|
138
|
-
return onDidDisappearRef->invoke(animated);
|
|
139
|
-
};
|
|
132
|
+
return JNICallable<JFunc_void_std__optional_bool_, void(std::optional<bool>)>(std::move(onDidDisappearRef));
|
|
140
133
|
}
|
|
141
134
|
}()) : std::nullopt,
|
|
142
135
|
onPopped != nullptr ? std::make_optional([&]() -> std::function<void()> {
|
|
@@ -145,9 +138,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
145
138
|
return downcast->cthis()->getFunction();
|
|
146
139
|
} else {
|
|
147
140
|
auto onPoppedRef = jni::make_global(onPopped);
|
|
148
|
-
return
|
|
149
|
-
return onPoppedRef->invoke();
|
|
150
|
-
};
|
|
141
|
+
return JNICallable<JFunc_void, void()>(std::move(onPoppedRef));
|
|
151
142
|
}
|
|
152
143
|
}()) : std::nullopt,
|
|
153
144
|
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 onSearchTextChangedRef = jni::make_global(onSearchTextChanged);
|
|
174
|
-
return
|
|
175
|
-
return onSearchTextChangedRef->invoke(searchText);
|
|
176
|
-
};
|
|
165
|
+
return JNICallable<JFunc_void_std__string, void(std::string)>(std::move(onSearchTextChangedRef));
|
|
177
166
|
}
|
|
178
167
|
}(),
|
|
179
168
|
[&]() -> std::function<void(const std::string& /* searchText */)> {
|
|
@@ -182,9 +171,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
182
171
|
return downcast->cthis()->getFunction();
|
|
183
172
|
} else {
|
|
184
173
|
auto onSearchTextSubmittedRef = jni::make_global(onSearchTextSubmitted);
|
|
185
|
-
return
|
|
186
|
-
return onSearchTextSubmittedRef->invoke(searchText);
|
|
187
|
-
};
|
|
174
|
+
return JNICallable<JFunc_void_std__string, void(std::string)>(std::move(onSearchTextSubmittedRef));
|
|
188
175
|
}
|
|
189
176
|
}()
|
|
190
177
|
);
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
#include "TripSelectorCallback.hpp"
|
|
12
12
|
|
|
13
13
|
#include "JFunc_void_std__string.hpp"
|
|
14
|
+
#include <NitroModules/JNICallable.hpp>
|
|
14
15
|
#include <functional>
|
|
15
16
|
#include <string>
|
|
16
17
|
|
|
@@ -42,9 +43,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
|
|
|
42
43
|
return downcast->cthis()->getFunction();
|
|
43
44
|
} else {
|
|
44
45
|
auto setSelectedTripRef = jni::make_global(setSelectedTrip);
|
|
45
|
-
return
|
|
46
|
-
return setSelectedTripRef->invoke(id);
|
|
47
|
-
};
|
|
46
|
+
return JNICallable<JFunc_void_std__string, void(std::string)>(std::move(setSelectedTripRef));
|
|
48
47
|
}
|
|
49
48
|
}()
|
|
50
49
|
);
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
#include "HybridMessageTemplateSpecSwift.hpp"
|
|
19
19
|
#include "HybridSearchTemplateSpecSwift.hpp"
|
|
20
20
|
#include "ReactNativeAutoPlay-Swift-Cxx-Umbrella.hpp"
|
|
21
|
+
#include <NitroModules/NitroDefines.hpp>
|
|
21
22
|
|
|
22
23
|
namespace margelo::nitro::swe::iternio::reactnativeautoplay::bridge::swift {
|
|
23
24
|
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ reason: AlertDismissalReason) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ colorScheme: ColorScheme) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ center: Point, _ scale: Double) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ translation: Point, _ velocity: Point?) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ insets: SafeAreaInsets) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ payload: VisibilityState) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ isPanningInterfaceVisible: Bool) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ coordinates: Location?, _ query: String?) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ searchText: String) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ clusterId: String, _ payload: ColorScheme) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ clusterId: String, _ payload: ZoomEvent) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ clusterId: String, _ payload: Bool) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* Wraps a Swift `(_ tripId: String, _ routeId: String) -> Void` as a class.
|
|
13
13
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|