@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.
Files changed (126) hide show
  1. package/lib/hooks/useFocusedEffect.d.ts +9 -0
  2. package/lib/hooks/useFocusedEffect.js +32 -0
  3. package/lib/hooks/useIsAutoPlayFocused.d.ts +7 -0
  4. package/lib/hooks/useIsAutoPlayFocused.js +20 -0
  5. package/lib/index.d.ts +1 -0
  6. package/lib/index.js +1 -0
  7. package/nitrogen/generated/android/c++/JFunc_void.hpp +2 -1
  8. package/nitrogen/generated/android/c++/JFunc_void_AlertDismissalReason.hpp +2 -1
  9. package/nitrogen/generated/android/c++/JFunc_void_ColorScheme.hpp +2 -1
  10. package/nitrogen/generated/android/c++/JFunc_void_Point.hpp +2 -1
  11. package/nitrogen/generated/android/c++/JFunc_void_Point_double.hpp +2 -1
  12. package/nitrogen/generated/android/c++/JFunc_void_Point_std__optional_Point_.hpp +2 -1
  13. package/nitrogen/generated/android/c++/JFunc_void_SafeAreaInsets.hpp +2 -1
  14. package/nitrogen/generated/android/c++/JFunc_void_VisibilityState.hpp +2 -1
  15. package/nitrogen/generated/android/c++/JFunc_void_bool.hpp +2 -1
  16. package/nitrogen/generated/android/c++/JFunc_void_std__optional_Location__std__optional_std__string_.hpp +2 -1
  17. package/nitrogen/generated/android/c++/JFunc_void_std__optional_Telemetry__std__optional_std__string_.hpp +2 -1
  18. package/nitrogen/generated/android/c++/JFunc_void_std__optional_bool_.hpp +2 -1
  19. package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +2 -1
  20. package/nitrogen/generated/android/c++/JFunc_void_std__string_ColorScheme.hpp +2 -1
  21. package/nitrogen/generated/android/c++/JFunc_void_std__string_ZoomEvent.hpp +2 -1
  22. package/nitrogen/generated/android/c++/JFunc_void_std__string_bool.hpp +2 -1
  23. package/nitrogen/generated/android/c++/JFunc_void_std__string_std__string.hpp +2 -1
  24. package/nitrogen/generated/android/c++/JGridTemplateConfig.hpp +6 -15
  25. package/nitrogen/generated/android/c++/JHybridAndroidAutoTelemetrySpec.cpp +2 -3
  26. package/nitrogen/generated/android/c++/JHybridAutoPlaySpec.cpp +5 -12
  27. package/nitrogen/generated/android/c++/JHybridClusterSpec.cpp +6 -15
  28. package/nitrogen/generated/android/c++/JHybridGridTemplateSpec.cpp +1 -0
  29. package/nitrogen/generated/android/c++/JHybridInformationTemplateSpec.cpp +1 -0
  30. package/nitrogen/generated/android/c++/JHybridListTemplateSpec.cpp +1 -0
  31. package/nitrogen/generated/android/c++/JHybridMapTemplateSpec.cpp +1 -0
  32. package/nitrogen/generated/android/c++/JHybridMessageTemplateSpec.cpp +1 -0
  33. package/nitrogen/generated/android/c++/JHybridSearchTemplateSpec.cpp +1 -0
  34. package/nitrogen/generated/android/c++/JInformationTemplateConfig.hpp +6 -15
  35. package/nitrogen/generated/android/c++/JListTemplateConfig.hpp +6 -15
  36. package/nitrogen/generated/android/c++/JMapTemplateConfig.hpp +14 -39
  37. package/nitrogen/generated/android/c++/JMessageTemplateConfig.hpp +6 -15
  38. package/nitrogen/generated/android/c++/JNavigationAlertAction.hpp +2 -3
  39. package/nitrogen/generated/android/c++/JNitroAction.hpp +2 -3
  40. package/nitrogen/generated/android/c++/JNitroBaseMapTemplateConfig.hpp +7 -18
  41. package/nitrogen/generated/android/c++/JNitroGridButton.hpp +2 -3
  42. package/nitrogen/generated/android/c++/JNitroManeuver.cpp +9 -9
  43. package/nitrogen/generated/android/c++/JNitroMapButton.hpp +2 -3
  44. package/nitrogen/generated/android/c++/JNitroNavigationAlert.hpp +3 -6
  45. package/nitrogen/generated/android/c++/JNitroRow.hpp +2 -3
  46. package/nitrogen/generated/android/c++/JNitroSection.hpp +1 -0
  47. package/nitrogen/generated/android/c++/JSearchTemplateConfig.hpp +8 -21
  48. package/nitrogen/generated/android/c++/JTripSelectorCallback.hpp +2 -3
  49. package/nitrogen/generated/ios/ReactNativeAutoPlay-Swift-Cxx-Bridge.cpp +1 -0
  50. package/nitrogen/generated/ios/swift/AssetImage.swift +1 -0
  51. package/nitrogen/generated/ios/swift/AutoText.swift +1 -0
  52. package/nitrogen/generated/ios/swift/Distance.swift +1 -0
  53. package/nitrogen/generated/ios/swift/DurationWithTimeZone.swift +1 -0
  54. package/nitrogen/generated/ios/swift/Func_void.swift +1 -1
  55. package/nitrogen/generated/ios/swift/Func_void_AlertDismissalReason.swift +1 -1
  56. package/nitrogen/generated/ios/swift/Func_void_ColorScheme.swift +1 -1
  57. package/nitrogen/generated/ios/swift/Func_void_Point.swift +1 -1
  58. package/nitrogen/generated/ios/swift/Func_void_Point_double.swift +1 -1
  59. package/nitrogen/generated/ios/swift/Func_void_Point_std__optional_Point_.swift +1 -1
  60. package/nitrogen/generated/ios/swift/Func_void_SafeAreaInsets.swift +1 -1
  61. package/nitrogen/generated/ios/swift/Func_void_VisibilityState.swift +1 -1
  62. package/nitrogen/generated/ios/swift/Func_void_bool.swift +1 -1
  63. package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -1
  64. package/nitrogen/generated/ios/swift/Func_void_std__optional_Location__std__optional_std__string_.swift +1 -1
  65. package/nitrogen/generated/ios/swift/Func_void_std__optional_bool_.swift +1 -1
  66. package/nitrogen/generated/ios/swift/Func_void_std__string.swift +1 -1
  67. package/nitrogen/generated/ios/swift/Func_void_std__string_ColorScheme.swift +1 -1
  68. package/nitrogen/generated/ios/swift/Func_void_std__string_ZoomEvent.swift +1 -1
  69. package/nitrogen/generated/ios/swift/Func_void_std__string_bool.swift +1 -1
  70. package/nitrogen/generated/ios/swift/Func_void_std__string_std__string.swift +1 -1
  71. package/nitrogen/generated/ios/swift/GlyphImage.swift +1 -0
  72. package/nitrogen/generated/ios/swift/GridTemplateConfig.swift +1 -0
  73. package/nitrogen/generated/ios/swift/HybridAutoPlaySpec.swift +0 -1
  74. package/nitrogen/generated/ios/swift/HybridAutoPlaySpec_cxx.swift +0 -1
  75. package/nitrogen/generated/ios/swift/HybridCarPlayDashboardSpec.swift +0 -1
  76. package/nitrogen/generated/ios/swift/HybridCarPlayDashboardSpec_cxx.swift +0 -1
  77. package/nitrogen/generated/ios/swift/HybridClusterSpec.swift +0 -1
  78. package/nitrogen/generated/ios/swift/HybridClusterSpec_cxx.swift +0 -1
  79. package/nitrogen/generated/ios/swift/HybridGridTemplateSpec.swift +0 -1
  80. package/nitrogen/generated/ios/swift/HybridGridTemplateSpec_cxx.swift +0 -1
  81. package/nitrogen/generated/ios/swift/HybridInformationTemplateSpec.swift +0 -1
  82. package/nitrogen/generated/ios/swift/HybridInformationTemplateSpec_cxx.swift +0 -1
  83. package/nitrogen/generated/ios/swift/HybridListTemplateSpec.swift +0 -1
  84. package/nitrogen/generated/ios/swift/HybridListTemplateSpec_cxx.swift +0 -1
  85. package/nitrogen/generated/ios/swift/HybridMapTemplateSpec.swift +0 -1
  86. package/nitrogen/generated/ios/swift/HybridMapTemplateSpec_cxx.swift +0 -1
  87. package/nitrogen/generated/ios/swift/HybridSearchTemplateSpec.swift +0 -1
  88. package/nitrogen/generated/ios/swift/HybridSearchTemplateSpec_cxx.swift +0 -1
  89. package/nitrogen/generated/ios/swift/ImageLane.swift +1 -0
  90. package/nitrogen/generated/ios/swift/InformationTemplateConfig.swift +1 -0
  91. package/nitrogen/generated/ios/swift/LaneGuidance.swift +1 -0
  92. package/nitrogen/generated/ios/swift/ListTemplateConfig.swift +1 -0
  93. package/nitrogen/generated/ios/swift/Location.swift +1 -0
  94. package/nitrogen/generated/ios/swift/MapTemplateConfig.swift +1 -0
  95. package/nitrogen/generated/ios/swift/MessageTemplateConfig.swift +1 -0
  96. package/nitrogen/generated/ios/swift/NavigationAlertAction.swift +1 -0
  97. package/nitrogen/generated/ios/swift/NitroAction.swift +1 -0
  98. package/nitrogen/generated/ios/swift/NitroAttributedString.swift +1 -0
  99. package/nitrogen/generated/ios/swift/NitroAttributedStringImage.swift +1 -0
  100. package/nitrogen/generated/ios/swift/NitroBaseMapTemplateConfig.swift +1 -0
  101. package/nitrogen/generated/ios/swift/NitroCarPlayDashboardButton.swift +1 -0
  102. package/nitrogen/generated/ios/swift/NitroColor.swift +1 -0
  103. package/nitrogen/generated/ios/swift/NitroGridButton.swift +1 -0
  104. package/nitrogen/generated/ios/swift/NitroLoadingManeuver.swift +1 -0
  105. package/nitrogen/generated/ios/swift/NitroMapButton.swift +1 -0
  106. package/nitrogen/generated/ios/swift/NitroMessageManeuver.swift +1 -0
  107. package/nitrogen/generated/ios/swift/NitroNavigationAlert.swift +1 -0
  108. package/nitrogen/generated/ios/swift/NitroRoutingManeuver.swift +1 -0
  109. package/nitrogen/generated/ios/swift/NitroRow.swift +1 -0
  110. package/nitrogen/generated/ios/swift/NitroSection.swift +1 -0
  111. package/nitrogen/generated/ios/swift/Point.swift +1 -0
  112. package/nitrogen/generated/ios/swift/PreferredImageLane.swift +1 -0
  113. package/nitrogen/generated/ios/swift/RouteChoice.swift +1 -0
  114. package/nitrogen/generated/ios/swift/SafeAreaInsets.swift +1 -0
  115. package/nitrogen/generated/ios/swift/SearchTemplateConfig.swift +1 -0
  116. package/nitrogen/generated/ios/swift/TravelEstimates.swift +1 -0
  117. package/nitrogen/generated/ios/swift/TripConfig.swift +1 -0
  118. package/nitrogen/generated/ios/swift/TripPoint.swift +1 -0
  119. package/nitrogen/generated/ios/swift/TripPreviewTextConfiguration.swift +1 -0
  120. package/nitrogen/generated/ios/swift/TripSelectorCallback.swift +1 -0
  121. package/nitrogen/generated/ios/swift/TripsConfig.swift +1 -0
  122. package/package.json +2 -2
  123. package/src/hooks/useFocusedEffect.ts +42 -0
  124. package/src/index.ts +1 -0
  125. package/lib/specs/VoiceInput.nitro.d.ts +0 -8
  126. 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 [onWillAppearRef](std::optional<bool> animated) -> void {
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 [onWillDisappearRef](std::optional<bool> animated) -> void {
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 [onDidAppearRef](std::optional<bool> animated) -> void {
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 [onDidDisappearRef](std::optional<bool> animated) -> void {
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 [onPoppedRef]() -> void {
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 [onSearchTextChangedRef](std::string searchText) -> void {
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 [onSearchTextSubmittedRef](std::string searchText) -> void {
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 [setSelectedTripRef](std::string id) -> void {
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,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -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 `() -> 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 `(_ 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) -> 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 `(_ error: Error) -> 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 `(_ animated: 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 `(_ 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`.
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /// See ``HybridAutoPlaySpec``
13
12
  public protocol HybridAutoPlaySpec_protocol: HybridObject {
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /**
13
12
  * A class implementation that bridges HybridAutoPlaySpec over to C++.
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /// See ``HybridCarPlayDashboardSpec``
13
12
  public protocol HybridCarPlayDashboardSpec_protocol: HybridObject {
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /**
13
12
  * A class implementation that bridges HybridCarPlayDashboardSpec over to C++.
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /// See ``HybridClusterSpec``
13
12
  public protocol HybridClusterSpec_protocol: HybridObject {
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /**
13
12
  * A class implementation that bridges HybridClusterSpec over to C++.
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /// See ``HybridGridTemplateSpec``
13
12
  public protocol HybridGridTemplateSpec_protocol: HybridObject {
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /**
13
12
  * A class implementation that bridges HybridGridTemplateSpec over to C++.
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /// See ``HybridInformationTemplateSpec``
13
12
  public protocol HybridInformationTemplateSpec_protocol: HybridObject {
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /**
13
12
  * A class implementation that bridges HybridInformationTemplateSpec over to C++.
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /// See ``HybridListTemplateSpec``
13
12
  public protocol HybridListTemplateSpec_protocol: HybridObject {
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /**
13
12
  * A class implementation that bridges HybridListTemplateSpec over to C++.
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /// See ``HybridMapTemplateSpec``
13
12
  public protocol HybridMapTemplateSpec_protocol: HybridObject {
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /**
13
12
  * A class implementation that bridges HybridMapTemplateSpec over to C++.
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /// See ``HybridSearchTemplateSpec``
13
12
  public protocol HybridSearchTemplateSpec_protocol: HybridObject {
@@ -7,7 +7,6 @@
7
7
 
8
8
  import Foundation
9
9
  import NitroModules
10
- import NitroModules
11
10
 
12
11
  /**
13
12
  * A class implementation that bridges HybridSearchTemplateSpec over to C++.
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**
@@ -5,6 +5,7 @@
5
5
  /// Copyright © 2025 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
+ import Foundation
8
9
  import NitroModules
9
10
 
10
11
  /**