@iternio/react-native-auto-play 0.3.11 → 0.3.13

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 (137) hide show
  1. package/README.md +103 -3
  2. package/ReactNativeAutoPlay.podspec +0 -4
  3. package/android/src/automotive/AndroidManifest.xml +1 -0
  4. package/android/src/main/AndroidManifest.xml +1 -0
  5. package/android/src/main/java/com/margelo/nitro/swe/iternio/reactnativeautoplay/HybridAutoPlay.kt +91 -0
  6. package/android/src/main/java/com/margelo/nitro/swe/iternio/reactnativeautoplay/VoiceInputManager.kt +214 -0
  7. package/android/src/main/java/com/margelo/nitro/swe/iternio/reactnativeautoplay/template/MapTemplate.kt +2 -5
  8. package/android/src/main/java/com/margelo/nitro/swe/iternio/reactnativeautoplay/template/Parser.kt +117 -38
  9. package/android/src/main/java/com/margelo/nitro/swe/iternio/reactnativeautoplay/utils/BitmapCache.kt +14 -0
  10. package/android/src/main/java/com/margelo/nitro/swe/iternio/reactnativeautoplay/utils/SymbolFont.kt +29 -30
  11. package/ios/extensions/NitroImageExtensions.swift +10 -1
  12. package/ios/hybrid/HybridAutoPlay.swift +51 -4
  13. package/ios/templates/GridTemplate.swift +7 -0
  14. package/ios/templates/MapTemplate.swift +14 -0
  15. package/ios/templates/Parser.swift +91 -4
  16. package/ios/utils/SymbolFont.swift +44 -44
  17. package/ios/utils/VoiceInputManager.swift +233 -0
  18. package/lib/index.d.ts +1 -0
  19. package/lib/index.js +1 -0
  20. package/lib/specs/AutoPlay.nitro.d.ts +31 -1
  21. package/lib/templates/MapTemplate.d.ts +4 -1
  22. package/lib/types/Image.d.ts +46 -4
  23. package/lib/types/Maneuver.d.ts +2 -10
  24. package/lib/utils/NitroImage.d.ts +29 -3
  25. package/lib/utils/NitroImage.js +64 -3
  26. package/nitrogen/generated/android/ReactNativeAutoPlay+autolinking.cmake +1 -1
  27. package/nitrogen/generated/android/c++/JGlyphImage.hpp +6 -1
  28. package/nitrogen/generated/android/c++/JGridTemplateConfig.hpp +3 -1
  29. package/nitrogen/generated/android/c++/JHybridAutoPlaySpec.cpp +48 -1
  30. package/nitrogen/generated/android/c++/JHybridAutoPlaySpec.hpp +4 -0
  31. package/nitrogen/generated/android/c++/JHybridClusterSpec.cpp +4 -0
  32. package/nitrogen/generated/android/c++/JHybridGridTemplateSpec.cpp +5 -1
  33. package/nitrogen/generated/android/c++/JHybridInformationTemplateSpec.cpp +5 -1
  34. package/nitrogen/generated/android/c++/JHybridListTemplateSpec.cpp +5 -1
  35. package/nitrogen/generated/android/c++/JHybridMapTemplateSpec.cpp +5 -1
  36. package/nitrogen/generated/android/c++/JHybridMessageTemplateSpec.cpp +5 -1
  37. package/nitrogen/generated/android/c++/JHybridSearchTemplateSpec.cpp +5 -1
  38. package/nitrogen/generated/android/c++/JHybridSignInTemplateSpec.cpp +5 -1
  39. package/nitrogen/generated/android/c++/JImageLane.hpp +2 -0
  40. package/nitrogen/generated/android/c++/JInformationTemplateConfig.hpp +3 -1
  41. package/nitrogen/generated/android/c++/JLaneGuidance.hpp +2 -0
  42. package/nitrogen/generated/android/c++/JListTemplateConfig.hpp +3 -1
  43. package/nitrogen/generated/android/c++/JMapTemplateConfig.hpp +3 -1
  44. package/nitrogen/generated/android/c++/JMessageTemplateConfig.hpp +7 -5
  45. package/nitrogen/generated/android/c++/JNitroAction.hpp +7 -5
  46. package/nitrogen/generated/android/c++/JNitroAttributedString.hpp +2 -0
  47. package/nitrogen/generated/android/c++/JNitroAttributedStringImage.hpp +2 -0
  48. package/nitrogen/generated/android/c++/JNitroBaseMapTemplateConfig.hpp +3 -1
  49. package/nitrogen/generated/android/c++/JNitroGridButton.hpp +2 -0
  50. package/nitrogen/generated/android/c++/JNitroImage.cpp +6 -2
  51. package/nitrogen/generated/android/c++/JNitroImage.hpp +20 -3
  52. package/nitrogen/generated/android/c++/JNitroManeuver.hpp +3 -1
  53. package/nitrogen/generated/android/c++/JNitroMapButton.hpp +2 -0
  54. package/nitrogen/generated/android/c++/JNitroMessageManeuver.hpp +7 -5
  55. package/nitrogen/generated/android/c++/JNitroNavigationAlert.hpp +7 -5
  56. package/nitrogen/generated/android/c++/JNitroRoutingManeuver.hpp +7 -5
  57. package/nitrogen/generated/android/c++/JNitroRow.hpp +7 -5
  58. package/nitrogen/generated/android/c++/JNitroSection.hpp +3 -1
  59. package/nitrogen/generated/android/c++/JPreferredImageLane.hpp +2 -0
  60. package/nitrogen/generated/android/c++/JRemoteImage.hpp +68 -0
  61. package/nitrogen/generated/android/c++/JSearchTemplateConfig.hpp +3 -1
  62. package/nitrogen/generated/android/c++/JSignInTemplateConfig.hpp +3 -1
  63. package/nitrogen/generated/android/c++/JVariant_GlyphImage_AssetImage_RemoteImage.cpp +30 -0
  64. package/nitrogen/generated/android/c++/JVariant_GlyphImage_AssetImage_RemoteImage.hpp +92 -0
  65. package/nitrogen/generated/android/c++/JVariant_PreferredImageLane_ImageLane.hpp +3 -1
  66. package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/GlyphImage.kt +5 -2
  67. package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/HybridAutoPlaySpec.kt +17 -0
  68. package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/MessageTemplateConfig.kt +3 -3
  69. package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroAction.kt +3 -3
  70. package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroImage.kt +14 -2
  71. package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroMessageManeuver.kt +2 -2
  72. package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroNavigationAlert.kt +3 -3
  73. package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroRoutingManeuver.kt +2 -2
  74. package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/NitroRow.kt +3 -3
  75. package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/RemoteImage.kt +44 -0
  76. package/nitrogen/generated/android/kotlin/com/margelo/nitro/swe/iternio/reactnativeautoplay/{Variant_GlyphImage_AssetImage.kt → Variant_GlyphImage_AssetImage_RemoteImage.kt} +20 -8
  77. package/nitrogen/generated/ios/ReactNativeAutoPlay-Swift-Cxx-Bridge.cpp +16 -8
  78. package/nitrogen/generated/ios/ReactNativeAutoPlay-Swift-Cxx-Bridge.hpp +156 -79
  79. package/nitrogen/generated/ios/ReactNativeAutoPlay-Swift-Cxx-Umbrella.hpp +4 -0
  80. package/nitrogen/generated/ios/c++/HybridAutoPlaySpecSwift.hpp +37 -0
  81. package/nitrogen/generated/ios/c++/HybridCarPlayDashboardSpecSwift.hpp +4 -1
  82. package/nitrogen/generated/ios/c++/HybridClusterSpecSwift.hpp +3 -0
  83. package/nitrogen/generated/ios/c++/HybridGridTemplateSpecSwift.hpp +3 -0
  84. package/nitrogen/generated/ios/c++/HybridInformationTemplateSpecSwift.hpp +3 -0
  85. package/nitrogen/generated/ios/c++/HybridListTemplateSpecSwift.hpp +3 -0
  86. package/nitrogen/generated/ios/c++/HybridMapTemplateSpecSwift.hpp +3 -0
  87. package/nitrogen/generated/ios/c++/HybridMessageTemplateSpecSwift.hpp +3 -0
  88. package/nitrogen/generated/ios/c++/HybridSearchTemplateSpecSwift.hpp +3 -0
  89. package/nitrogen/generated/ios/swift/Func_void_std__shared_ptr_ArrayBuffer_.swift +46 -0
  90. package/nitrogen/generated/ios/swift/GlyphImage.swift +7 -2
  91. package/nitrogen/generated/ios/swift/HybridAutoPlaySpec.swift +4 -0
  92. package/nitrogen/generated/ios/swift/HybridAutoPlaySpec_cxx.swift +82 -0
  93. package/nitrogen/generated/ios/swift/ImageLane.swift +9 -4
  94. package/nitrogen/generated/ios/swift/MessageTemplateConfig.swift +16 -11
  95. package/nitrogen/generated/ios/swift/NitroAction.swift +16 -11
  96. package/nitrogen/generated/ios/swift/NitroAttributedStringImage.swift +9 -4
  97. package/nitrogen/generated/ios/swift/NitroCarPlayDashboardButton.swift +9 -4
  98. package/nitrogen/generated/ios/swift/NitroGridButton.swift +9 -4
  99. package/nitrogen/generated/ios/swift/NitroImage.swift +2 -1
  100. package/nitrogen/generated/ios/swift/NitroMapButton.swift +9 -4
  101. package/nitrogen/generated/ios/swift/NitroMessageManeuver.swift +16 -11
  102. package/nitrogen/generated/ios/swift/NitroNavigationAlert.swift +16 -11
  103. package/nitrogen/generated/ios/swift/NitroRoutingManeuver.swift +25 -15
  104. package/nitrogen/generated/ios/swift/NitroRow.swift +16 -11
  105. package/nitrogen/generated/ios/swift/PreferredImageLane.swift +9 -4
  106. package/nitrogen/generated/ios/swift/RemoteImage.swift +58 -0
  107. package/nitrogen/generated/ios/swift/{Variant_GlyphImage_AssetImage.swift → Variant_GlyphImage_AssetImage_RemoteImage.swift} +4 -3
  108. package/nitrogen/generated/shared/c++/GlyphImage.hpp +6 -1
  109. package/nitrogen/generated/shared/c++/HybridAutoPlaySpec.cpp +4 -0
  110. package/nitrogen/generated/shared/c++/HybridAutoPlaySpec.hpp +5 -0
  111. package/nitrogen/generated/shared/c++/ImageLane.hpp +8 -5
  112. package/nitrogen/generated/shared/c++/MessageTemplateConfig.hpp +8 -5
  113. package/nitrogen/generated/shared/c++/NitroAction.hpp +8 -5
  114. package/nitrogen/generated/shared/c++/NitroAttributedStringImage.hpp +8 -5
  115. package/nitrogen/generated/shared/c++/NitroCarPlayDashboardButton.hpp +8 -5
  116. package/nitrogen/generated/shared/c++/NitroGridButton.hpp +8 -5
  117. package/nitrogen/generated/shared/c++/NitroMapButton.hpp +8 -5
  118. package/nitrogen/generated/shared/c++/NitroMessageManeuver.hpp +8 -5
  119. package/nitrogen/generated/shared/c++/NitroNavigationAlert.hpp +8 -5
  120. package/nitrogen/generated/shared/c++/NitroRoutingManeuver.hpp +12 -9
  121. package/nitrogen/generated/shared/c++/NitroRow.hpp +8 -5
  122. package/nitrogen/generated/shared/c++/PreferredImageLane.hpp +8 -5
  123. package/nitrogen/generated/shared/c++/RemoteImage.hpp +94 -0
  124. package/package.json +2 -3
  125. package/src/index.ts +1 -0
  126. package/src/specs/AutoPlay.nitro.ts +39 -1
  127. package/src/templates/MapTemplate.ts +4 -1
  128. package/src/types/Image.ts +65 -16
  129. package/src/types/Maneuver.ts +3 -10
  130. package/src/utils/NitroImage.ts +81 -6
  131. package/android/src/main/res/font/materialsymbolsoutlined_regular.ttf +0 -0
  132. package/ios/Assets/MaterialSymbolsOutlined-Regular.ttf +0 -0
  133. package/lib/types/Glyphmap.d.ts +0 -4105
  134. package/lib/types/Glyphmap.js +0 -4105
  135. package/nitrogen/generated/android/c++/JVariant_GlyphImage_AssetImage.cpp +0 -26
  136. package/nitrogen/generated/android/c++/JVariant_GlyphImage_AssetImage.hpp +0 -75
  137. package/src/types/Glyphmap.ts +0 -4107
@@ -12,6 +12,8 @@
12
12
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class AlertActionStyle; }
13
13
  // Forward declaration of `AlertDismissalReason` to properly resolve imports.
14
14
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class AlertDismissalReason; }
15
+ // Forward declaration of `ArrayBufferHolder` to properly resolve imports.
16
+ namespace NitroModules { class ArrayBufferHolder; }
15
17
  // Forward declaration of `AssetImage` to properly resolve imports.
16
18
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct AssetImage; }
17
19
  // Forward declaration of `AutoText` to properly resolve imports.
@@ -102,6 +104,8 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class OnRampT
102
104
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct Point; }
103
105
  // Forward declaration of `PreferredImageLane` to properly resolve imports.
104
106
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct PreferredImageLane; }
107
+ // Forward declaration of `RemoteImage` to properly resolve imports.
108
+ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct RemoteImage; }
105
109
  // Forward declaration of `RouteChoice` to properly resolve imports.
106
110
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct RouteChoice; }
107
111
  // Forward declaration of `SafeAreaInsets` to properly resolve imports.
@@ -193,6 +197,7 @@ namespace ReactNativeAutoPlay { class HybridSearchTemplateSpec_cxx; }
193
197
  #include "OnRampType.hpp"
194
198
  #include "Point.hpp"
195
199
  #include "PreferredImageLane.hpp"
200
+ #include "RemoteImage.hpp"
196
201
  #include "RouteChoice.hpp"
197
202
  #include "SafeAreaInsets.hpp"
198
203
  #include "TrafficSide.hpp"
@@ -204,6 +209,8 @@ namespace ReactNativeAutoPlay { class HybridSearchTemplateSpec_cxx; }
204
209
  #include "VisibilityState.hpp"
205
210
  #include "VisibleTravelEstimate.hpp"
206
211
  #include "ZoomEvent.hpp"
212
+ #include <NitroModules/ArrayBuffer.hpp>
213
+ #include <NitroModules/ArrayBufferHolder.hpp>
207
214
  #include <NitroModules/Promise.hpp>
208
215
  #include <NitroModules/PromiseHolder.hpp>
209
216
  #include <NitroModules/Result.hpp>
@@ -317,16 +324,38 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay::bridge::swift {
317
324
  return Func_void_std__optional_Location__std__optional_std__string__Wrapper(std::move(value));
318
325
  }
319
326
 
320
- // pragma MARK: std::shared_ptr<Promise<void>>
327
+ // pragma MARK: std::shared_ptr<Promise<bool>>
321
328
  /**
322
- * Specialized version of `std::shared_ptr<Promise<void>>`.
329
+ * Specialized version of `std::shared_ptr<Promise<bool>>`.
323
330
  */
324
- using std__shared_ptr_Promise_void__ = std::shared_ptr<Promise<void>>;
325
- inline std::shared_ptr<Promise<void>> create_std__shared_ptr_Promise_void__() noexcept {
326
- return Promise<void>::create();
331
+ using std__shared_ptr_Promise_bool__ = std::shared_ptr<Promise<bool>>;
332
+ inline std::shared_ptr<Promise<bool>> create_std__shared_ptr_Promise_bool__() noexcept {
333
+ return Promise<bool>::create();
327
334
  }
328
- inline PromiseHolder<void> wrap_std__shared_ptr_Promise_void__(std::shared_ptr<Promise<void>> promise) noexcept {
329
- return PromiseHolder<void>(std::move(promise));
335
+ inline PromiseHolder<bool> wrap_std__shared_ptr_Promise_bool__(std::shared_ptr<Promise<bool>> promise) noexcept {
336
+ return PromiseHolder<bool>(std::move(promise));
337
+ }
338
+
339
+ // pragma MARK: std::function<void(bool /* result */)>
340
+ /**
341
+ * Specialized version of `std::function<void(bool)>`.
342
+ */
343
+ using Func_void_bool = std::function<void(bool /* result */)>;
344
+ /**
345
+ * Wrapper class for a `std::function<void(bool / * result * /)>`, this can be used from Swift.
346
+ */
347
+ class Func_void_bool_Wrapper final {
348
+ public:
349
+ explicit Func_void_bool_Wrapper(std::function<void(bool /* result */)>&& func): _function(std::make_unique<std::function<void(bool /* result */)>>(std::move(func))) {}
350
+ inline void call(bool result) const noexcept {
351
+ _function->operator()(result);
352
+ }
353
+ private:
354
+ std::unique_ptr<std::function<void(bool /* result */)>> _function;
355
+ } SWIFT_NONCOPYABLE;
356
+ Func_void_bool create_Func_void_bool(void* NON_NULL swiftClosureWrapper) noexcept;
357
+ inline Func_void_bool_Wrapper wrap_Func_void_bool(Func_void_bool value) noexcept {
358
+ return Func_void_bool_Wrapper(std::move(value));
330
359
  }
331
360
 
332
361
  // pragma MARK: std::function<void(const std::exception_ptr& /* error */)>
@@ -351,6 +380,67 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay::bridge::swift {
351
380
  return Func_void_std__exception_ptr_Wrapper(std::move(value));
352
381
  }
353
382
 
383
+ // pragma MARK: std::shared_ptr<Promise<std::shared_ptr<ArrayBuffer>>>
384
+ /**
385
+ * Specialized version of `std::shared_ptr<Promise<std::shared_ptr<ArrayBuffer>>>`.
386
+ */
387
+ using std__shared_ptr_Promise_std__shared_ptr_ArrayBuffer___ = std::shared_ptr<Promise<std::shared_ptr<ArrayBuffer>>>;
388
+ inline std::shared_ptr<Promise<std::shared_ptr<ArrayBuffer>>> create_std__shared_ptr_Promise_std__shared_ptr_ArrayBuffer___() noexcept {
389
+ return Promise<std::shared_ptr<ArrayBuffer>>::create();
390
+ }
391
+ inline PromiseHolder<std::shared_ptr<ArrayBuffer>> wrap_std__shared_ptr_Promise_std__shared_ptr_ArrayBuffer___(std::shared_ptr<Promise<std::shared_ptr<ArrayBuffer>>> promise) noexcept {
392
+ return PromiseHolder<std::shared_ptr<ArrayBuffer>>(std::move(promise));
393
+ }
394
+
395
+ // pragma MARK: std::function<void(const std::shared_ptr<ArrayBuffer>& /* result */)>
396
+ /**
397
+ * Specialized version of `std::function<void(const std::shared_ptr<ArrayBuffer>&)>`.
398
+ */
399
+ using Func_void_std__shared_ptr_ArrayBuffer_ = std::function<void(const std::shared_ptr<ArrayBuffer>& /* result */)>;
400
+ /**
401
+ * Wrapper class for a `std::function<void(const std::shared_ptr<ArrayBuffer>& / * result * /)>`, this can be used from Swift.
402
+ */
403
+ class Func_void_std__shared_ptr_ArrayBuffer__Wrapper final {
404
+ public:
405
+ explicit Func_void_std__shared_ptr_ArrayBuffer__Wrapper(std::function<void(const std::shared_ptr<ArrayBuffer>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::shared_ptr<ArrayBuffer>& /* result */)>>(std::move(func))) {}
406
+ inline void call(ArrayBufferHolder result) const noexcept {
407
+ _function->operator()(result.getArrayBuffer());
408
+ }
409
+ private:
410
+ std::unique_ptr<std::function<void(const std::shared_ptr<ArrayBuffer>& /* result */)>> _function;
411
+ } SWIFT_NONCOPYABLE;
412
+ Func_void_std__shared_ptr_ArrayBuffer_ create_Func_void_std__shared_ptr_ArrayBuffer_(void* NON_NULL swiftClosureWrapper) noexcept;
413
+ inline Func_void_std__shared_ptr_ArrayBuffer__Wrapper wrap_Func_void_std__shared_ptr_ArrayBuffer_(Func_void_std__shared_ptr_ArrayBuffer_ value) noexcept {
414
+ return Func_void_std__shared_ptr_ArrayBuffer__Wrapper(std::move(value));
415
+ }
416
+
417
+ // pragma MARK: std::optional<double>
418
+ /**
419
+ * Specialized version of `std::optional<double>`.
420
+ */
421
+ using std__optional_double_ = std::optional<double>;
422
+ inline std::optional<double> create_std__optional_double_(const double& value) noexcept {
423
+ return std::optional<double>(value);
424
+ }
425
+ inline bool has_value_std__optional_double_(const std::optional<double>& optional) noexcept {
426
+ return optional.has_value();
427
+ }
428
+ inline double get_std__optional_double_(const std::optional<double>& optional) noexcept {
429
+ return optional.value();
430
+ }
431
+
432
+ // pragma MARK: std::shared_ptr<Promise<void>>
433
+ /**
434
+ * Specialized version of `std::shared_ptr<Promise<void>>`.
435
+ */
436
+ using std__shared_ptr_Promise_void__ = std::shared_ptr<Promise<void>>;
437
+ inline std::shared_ptr<Promise<void>> create_std__shared_ptr_Promise_void__() noexcept {
438
+ return Promise<void>::create();
439
+ }
440
+ inline PromiseHolder<void> wrap_std__shared_ptr_Promise_void__(std::shared_ptr<Promise<void>> promise) noexcept {
441
+ return PromiseHolder<void>(std::move(promise));
442
+ }
443
+
354
444
  // pragma MARK: std::optional<bool>
355
445
  /**
356
446
  * Specialized version of `std::optional<bool>`.
@@ -388,21 +478,6 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay::bridge::swift {
388
478
  return Func_void_SafeAreaInsets_Wrapper(std::move(value));
389
479
  }
390
480
 
391
- // pragma MARK: std::optional<double>
392
- /**
393
- * Specialized version of `std::optional<double>`.
394
- */
395
- using std__optional_double_ = std::optional<double>;
396
- inline std::optional<double> create_std__optional_double_(const double& value) noexcept {
397
- return std::optional<double>(value);
398
- }
399
- inline bool has_value_std__optional_double_(const std::optional<double>& optional) noexcept {
400
- return optional.has_value();
401
- }
402
- inline double get_std__optional_double_(const std::optional<double>& optional) noexcept {
403
- return optional.value();
404
- }
405
-
406
481
  // pragma MARK: std::optional<NitroColor>
407
482
  /**
408
483
  * Specialized version of `std::optional<NitroColor>`.
@@ -418,16 +493,16 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay::bridge::swift {
418
493
  return optional.value();
419
494
  }
420
495
 
421
- // pragma MARK: std::variant<GlyphImage, AssetImage>
496
+ // pragma MARK: std::variant<GlyphImage, AssetImage, RemoteImage>
422
497
  /**
423
- * Wrapper struct for `std::variant<GlyphImage, AssetImage>`.
498
+ * Wrapper struct for `std::variant<GlyphImage, AssetImage, RemoteImage>`.
424
499
  * std::variant cannot be used in Swift because of a Swift bug.
425
500
  * Not even specializing it works. So we create a wrapper struct.
426
501
  */
427
- struct std__variant_GlyphImage__AssetImage_ final {
428
- std::variant<GlyphImage, AssetImage> variant;
429
- std__variant_GlyphImage__AssetImage_(std::variant<GlyphImage, AssetImage> variant): variant(variant) { }
430
- operator std::variant<GlyphImage, AssetImage>() const noexcept {
502
+ struct std__variant_GlyphImage__AssetImage__RemoteImage_ final {
503
+ std::variant<GlyphImage, AssetImage, RemoteImage> variant;
504
+ std__variant_GlyphImage__AssetImage__RemoteImage_(std::variant<GlyphImage, AssetImage, RemoteImage> variant): variant(variant) { }
505
+ operator std::variant<GlyphImage, AssetImage, RemoteImage>() const noexcept {
431
506
  return variant;
432
507
  }
433
508
  inline size_t index() const noexcept {
@@ -439,26 +514,32 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay::bridge::swift {
439
514
  inline AssetImage get_1() const noexcept {
440
515
  return std::get<1>(variant);
441
516
  }
517
+ inline RemoteImage get_2() const noexcept {
518
+ return std::get<2>(variant);
519
+ }
442
520
  };
443
- inline std__variant_GlyphImage__AssetImage_ create_std__variant_GlyphImage__AssetImage_(const GlyphImage& value) noexcept {
444
- return std__variant_GlyphImage__AssetImage_(value);
521
+ inline std__variant_GlyphImage__AssetImage__RemoteImage_ create_std__variant_GlyphImage__AssetImage__RemoteImage_(const GlyphImage& value) noexcept {
522
+ return std__variant_GlyphImage__AssetImage__RemoteImage_(value);
523
+ }
524
+ inline std__variant_GlyphImage__AssetImage__RemoteImage_ create_std__variant_GlyphImage__AssetImage__RemoteImage_(const AssetImage& value) noexcept {
525
+ return std__variant_GlyphImage__AssetImage__RemoteImage_(value);
445
526
  }
446
- inline std__variant_GlyphImage__AssetImage_ create_std__variant_GlyphImage__AssetImage_(const AssetImage& value) noexcept {
447
- return std__variant_GlyphImage__AssetImage_(value);
527
+ inline std__variant_GlyphImage__AssetImage__RemoteImage_ create_std__variant_GlyphImage__AssetImage__RemoteImage_(const RemoteImage& value) noexcept {
528
+ return std__variant_GlyphImage__AssetImage__RemoteImage_(value);
448
529
  }
449
530
 
450
- // pragma MARK: std::optional<std::variant<GlyphImage, AssetImage>>
531
+ // pragma MARK: std::optional<std::variant<GlyphImage, AssetImage, RemoteImage>>
451
532
  /**
452
- * Specialized version of `std::optional<std::variant<GlyphImage, AssetImage>>`.
533
+ * Specialized version of `std::optional<std::variant<GlyphImage, AssetImage, RemoteImage>>`.
453
534
  */
454
- using std__optional_std__variant_GlyphImage__AssetImage__ = std::optional<std::variant<GlyphImage, AssetImage>>;
455
- inline std::optional<std::variant<GlyphImage, AssetImage>> create_std__optional_std__variant_GlyphImage__AssetImage__(const std::variant<GlyphImage, AssetImage>& value) noexcept {
456
- return std::optional<std::variant<GlyphImage, AssetImage>>(value);
535
+ using std__optional_std__variant_GlyphImage__AssetImage__RemoteImage__ = std::optional<std::variant<GlyphImage, AssetImage, RemoteImage>>;
536
+ inline std::optional<std::variant<GlyphImage, AssetImage, RemoteImage>> create_std__optional_std__variant_GlyphImage__AssetImage__RemoteImage__(const std::variant<GlyphImage, AssetImage, RemoteImage>& value) noexcept {
537
+ return std::optional<std::variant<GlyphImage, AssetImage, RemoteImage>>(value);
457
538
  }
458
- inline bool has_value_std__optional_std__variant_GlyphImage__AssetImage__(const std::optional<std::variant<GlyphImage, AssetImage>>& optional) noexcept {
539
+ inline bool has_value_std__optional_std__variant_GlyphImage__AssetImage__RemoteImage__(const std::optional<std::variant<GlyphImage, AssetImage, RemoteImage>>& optional) noexcept {
459
540
  return optional.has_value();
460
541
  }
461
- inline std::variant<GlyphImage, AssetImage> get_std__optional_std__variant_GlyphImage__AssetImage__(const std::optional<std::variant<GlyphImage, AssetImage>>& optional) noexcept {
542
+ inline std::variant<GlyphImage, AssetImage, RemoteImage> get_std__optional_std__variant_GlyphImage__AssetImage__RemoteImage__(const std::optional<std::variant<GlyphImage, AssetImage, RemoteImage>>& optional) noexcept {
462
543
  return optional.value();
463
544
  }
464
545
 
@@ -539,15 +620,6 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay::bridge::swift {
539
620
  return Result<std::function<void()>>::withError(error);
540
621
  }
541
622
 
542
- // pragma MARK: Result<std::shared_ptr<Promise<void>>>
543
- using Result_std__shared_ptr_Promise_void___ = Result<std::shared_ptr<Promise<void>>>;
544
- inline Result_std__shared_ptr_Promise_void___ create_Result_std__shared_ptr_Promise_void___(const std::shared_ptr<Promise<void>>& value) noexcept {
545
- return Result<std::shared_ptr<Promise<void>>>::withValue(value);
546
- }
547
- inline Result_std__shared_ptr_Promise_void___ create_Result_std__shared_ptr_Promise_void___(const std::exception_ptr& error) noexcept {
548
- return Result<std::shared_ptr<Promise<void>>>::withError(error);
549
- }
550
-
551
623
  // pragma MARK: Result<bool>
552
624
  using Result_bool_ = Result<bool>;
553
625
  inline Result_bool_ create_Result_bool_(bool value) noexcept {
@@ -557,6 +629,42 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay::bridge::swift {
557
629
  return Result<bool>::withError(error);
558
630
  }
559
631
 
632
+ // pragma MARK: Result<std::shared_ptr<Promise<bool>>>
633
+ using Result_std__shared_ptr_Promise_bool___ = Result<std::shared_ptr<Promise<bool>>>;
634
+ inline Result_std__shared_ptr_Promise_bool___ create_Result_std__shared_ptr_Promise_bool___(const std::shared_ptr<Promise<bool>>& value) noexcept {
635
+ return Result<std::shared_ptr<Promise<bool>>>::withValue(value);
636
+ }
637
+ inline Result_std__shared_ptr_Promise_bool___ create_Result_std__shared_ptr_Promise_bool___(const std::exception_ptr& error) noexcept {
638
+ return Result<std::shared_ptr<Promise<bool>>>::withError(error);
639
+ }
640
+
641
+ // pragma MARK: Result<std::shared_ptr<Promise<std::shared_ptr<ArrayBuffer>>>>
642
+ using Result_std__shared_ptr_Promise_std__shared_ptr_ArrayBuffer____ = Result<std::shared_ptr<Promise<std::shared_ptr<ArrayBuffer>>>>;
643
+ inline Result_std__shared_ptr_Promise_std__shared_ptr_ArrayBuffer____ create_Result_std__shared_ptr_Promise_std__shared_ptr_ArrayBuffer____(const std::shared_ptr<Promise<std::shared_ptr<ArrayBuffer>>>& value) noexcept {
644
+ return Result<std::shared_ptr<Promise<std::shared_ptr<ArrayBuffer>>>>::withValue(value);
645
+ }
646
+ inline Result_std__shared_ptr_Promise_std__shared_ptr_ArrayBuffer____ create_Result_std__shared_ptr_Promise_std__shared_ptr_ArrayBuffer____(const std::exception_ptr& error) noexcept {
647
+ return Result<std::shared_ptr<Promise<std::shared_ptr<ArrayBuffer>>>>::withError(error);
648
+ }
649
+
650
+ // pragma MARK: Result<void>
651
+ using Result_void_ = Result<void>;
652
+ inline Result_void_ create_Result_void_() noexcept {
653
+ return Result<void>::withValue();
654
+ }
655
+ inline Result_void_ create_Result_void_(const std::exception_ptr& error) noexcept {
656
+ return Result<void>::withError(error);
657
+ }
658
+
659
+ // pragma MARK: Result<std::shared_ptr<Promise<void>>>
660
+ using Result_std__shared_ptr_Promise_void___ = Result<std::shared_ptr<Promise<void>>>;
661
+ inline Result_std__shared_ptr_Promise_void___ create_Result_std__shared_ptr_Promise_void___(const std::shared_ptr<Promise<void>>& value) noexcept {
662
+ return Result<std::shared_ptr<Promise<void>>>::withValue(value);
663
+ }
664
+ inline Result_std__shared_ptr_Promise_void___ create_Result_std__shared_ptr_Promise_void___(const std::exception_ptr& error) noexcept {
665
+ return Result<std::shared_ptr<Promise<void>>>::withError(error);
666
+ }
667
+
560
668
  // pragma MARK: std::vector<std::string>
561
669
  /**
562
670
  * Specialized version of `std::vector<std::string>`.
@@ -750,15 +858,6 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay::bridge::swift {
750
858
  using std__weak_ptr_HybridClusterSpec_ = std::weak_ptr<HybridClusterSpec>;
751
859
  inline std__weak_ptr_HybridClusterSpec_ weakify_std__shared_ptr_HybridClusterSpec_(const std::shared_ptr<HybridClusterSpec>& strong) noexcept { return strong; }
752
860
 
753
- // pragma MARK: Result<void>
754
- using Result_void_ = Result<void>;
755
- inline Result_void_ create_Result_void_() noexcept {
756
- return Result<void>::withValue();
757
- }
758
- inline Result_void_ create_Result_void_(const std::exception_ptr& error) noexcept {
759
- return Result<void>::withError(error);
760
- }
761
-
762
861
  // pragma MARK: std::function<void(std::optional<bool> /* animated */)>
763
862
  /**
764
863
  * Specialized version of `std::function<void(std::optional<bool>)>`.
@@ -863,28 +962,6 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay::bridge::swift {
863
962
  return optional.value();
864
963
  }
865
964
 
866
- // pragma MARK: std::function<void(bool /* isPanningInterfaceVisible */)>
867
- /**
868
- * Specialized version of `std::function<void(bool)>`.
869
- */
870
- using Func_void_bool = std::function<void(bool /* isPanningInterfaceVisible */)>;
871
- /**
872
- * Wrapper class for a `std::function<void(bool / * isPanningInterfaceVisible * /)>`, this can be used from Swift.
873
- */
874
- class Func_void_bool_Wrapper final {
875
- public:
876
- explicit Func_void_bool_Wrapper(std::function<void(bool /* isPanningInterfaceVisible */)>&& func): _function(std::make_unique<std::function<void(bool /* isPanningInterfaceVisible */)>>(std::move(func))) {}
877
- inline void call(bool isPanningInterfaceVisible) const noexcept {
878
- _function->operator()(isPanningInterfaceVisible);
879
- }
880
- private:
881
- std::unique_ptr<std::function<void(bool /* isPanningInterfaceVisible */)>> _function;
882
- } SWIFT_NONCOPYABLE;
883
- Func_void_bool create_Func_void_bool(void* NON_NULL swiftClosureWrapper) noexcept;
884
- inline Func_void_bool_Wrapper wrap_Func_void_bool(Func_void_bool value) noexcept {
885
- return Func_void_bool_Wrapper(std::move(value));
886
- }
887
-
888
965
  // pragma MARK: std::optional<std::function<void(bool /* isPanningInterfaceVisible */)>>
889
966
  /**
890
967
  * Specialized version of `std::optional<std::function<void(bool / * isPanningInterfaceVisible * /)>>`.
@@ -120,6 +120,8 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class OnRampT
120
120
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct Point; }
121
121
  // Forward declaration of `PreferredImageLane` to properly resolve imports.
122
122
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct PreferredImageLane; }
123
+ // Forward declaration of `RemoteImage` to properly resolve imports.
124
+ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct RemoteImage; }
123
125
  // Forward declaration of `RouteChoice` to properly resolve imports.
124
126
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct RouteChoice; }
125
127
  // Forward declaration of `SafeAreaInsets` to properly resolve imports.
@@ -206,6 +208,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class ZoomEve
206
208
  #include "OnRampType.hpp"
207
209
  #include "Point.hpp"
208
210
  #include "PreferredImageLane.hpp"
211
+ #include "RemoteImage.hpp"
209
212
  #include "RouteChoice.hpp"
210
213
  #include "SafeAreaInsets.hpp"
211
214
  #include "SearchTemplateConfig.hpp"
@@ -220,6 +223,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class ZoomEve
220
223
  #include "VisibilityState.hpp"
221
224
  #include "VisibleTravelEstimate.hpp"
222
225
  #include "ZoomEvent.hpp"
226
+ #include <NitroModules/ArrayBuffer.hpp>
223
227
  #include <NitroModules/Promise.hpp>
224
228
  #include <NitroModules/Result.hpp>
225
229
  #include <exception>
@@ -18,6 +18,8 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class EventNa
18
18
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class VisibilityState; }
19
19
  // Forward declaration of `Location` to properly resolve imports.
20
20
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct Location; }
21
+ // Forward declaration of `ArrayBufferHolder` to properly resolve imports.
22
+ namespace NitroModules { class ArrayBufferHolder; }
21
23
  // Forward declaration of `SafeAreaInsets` to properly resolve imports.
22
24
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct SafeAreaInsets; }
23
25
  // Forward declaration of `NitroAction` to properly resolve imports.
@@ -26,6 +28,8 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroAction
26
28
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct GlyphImage; }
27
29
  // Forward declaration of `AssetImage` to properly resolve imports.
28
30
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct AssetImage; }
31
+ // Forward declaration of `RemoteImage` to properly resolve imports.
32
+ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct RemoteImage; }
29
33
  // Forward declaration of `NitroColor` to properly resolve imports.
30
34
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroColor; }
31
35
  // Forward declaration of `NitroActionType` to properly resolve imports.
@@ -42,11 +46,14 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class NitroBu
42
46
  #include "Location.hpp"
43
47
  #include <optional>
44
48
  #include <NitroModules/Promise.hpp>
49
+ #include <NitroModules/ArrayBuffer.hpp>
50
+ #include <NitroModules/ArrayBufferHolder.hpp>
45
51
  #include "SafeAreaInsets.hpp"
46
52
  #include "NitroAction.hpp"
47
53
  #include <vector>
48
54
  #include "GlyphImage.hpp"
49
55
  #include "AssetImage.hpp"
56
+ #include "RemoteImage.hpp"
50
57
  #include <variant>
51
58
  #include "NitroColor.hpp"
52
59
  #include "NitroActionType.hpp"
@@ -127,6 +134,36 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay {
127
134
  auto __value = std::move(__result.value());
128
135
  return __value;
129
136
  }
137
+ inline bool hasVoiceInputPermission() override {
138
+ auto __result = _swiftPart.hasVoiceInputPermission();
139
+ if (__result.hasError()) [[unlikely]] {
140
+ std::rethrow_exception(__result.error());
141
+ }
142
+ auto __value = std::move(__result.value());
143
+ return __value;
144
+ }
145
+ inline std::shared_ptr<Promise<bool>> requestVoiceInputPermission() override {
146
+ auto __result = _swiftPart.requestVoiceInputPermission();
147
+ if (__result.hasError()) [[unlikely]] {
148
+ std::rethrow_exception(__result.error());
149
+ }
150
+ auto __value = std::move(__result.value());
151
+ return __value;
152
+ }
153
+ inline std::shared_ptr<Promise<std::shared_ptr<ArrayBuffer>>> startVoiceInput(std::optional<double> silenceThresholdMs, std::optional<double> maxDurationMs, const std::optional<std::string>& listeningText) override {
154
+ auto __result = _swiftPart.startVoiceInput(silenceThresholdMs, maxDurationMs, listeningText);
155
+ if (__result.hasError()) [[unlikely]] {
156
+ std::rethrow_exception(__result.error());
157
+ }
158
+ auto __value = std::move(__result.value());
159
+ return __value;
160
+ }
161
+ inline void stopVoiceInput() override {
162
+ auto __result = _swiftPart.stopVoiceInput();
163
+ if (__result.hasError()) [[unlikely]] {
164
+ std::rethrow_exception(__result.error());
165
+ }
166
+ }
130
167
  inline std::shared_ptr<Promise<void>> setRootTemplate(const std::string& templateId) override {
131
168
  auto __result = _swiftPart.setRootTemplate(templateId);
132
169
  if (__result.hasError()) [[unlikely]] {
@@ -20,6 +20,8 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroCarPla
20
20
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct GlyphImage; }
21
21
  // Forward declaration of `AssetImage` to properly resolve imports.
22
22
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct AssetImage; }
23
+ // Forward declaration of `RemoteImage` to properly resolve imports.
24
+ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct RemoteImage; }
23
25
  // Forward declaration of `NitroColor` to properly resolve imports.
24
26
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroColor; }
25
27
  // Forward declaration of `ColorScheme` to properly resolve imports.
@@ -32,10 +34,11 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class ColorSc
32
34
  #include <vector>
33
35
  #include "GlyphImage.hpp"
34
36
  #include "AssetImage.hpp"
37
+ #include "RemoteImage.hpp"
35
38
  #include <variant>
39
+ #include <string>
36
40
  #include "NitroColor.hpp"
37
41
  #include <optional>
38
- #include <string>
39
42
  #include "ColorScheme.hpp"
40
43
 
41
44
  #include "ReactNativeAutoPlay-Swift-Cxx-Umbrella.hpp"
@@ -22,6 +22,8 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroAttrib
22
22
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct GlyphImage; }
23
23
  // Forward declaration of `AssetImage` to properly resolve imports.
24
24
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct AssetImage; }
25
+ // Forward declaration of `RemoteImage` to properly resolve imports.
26
+ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct RemoteImage; }
25
27
  // Forward declaration of `NitroColor` to properly resolve imports.
26
28
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroColor; }
27
29
  // Forward declaration of `ColorScheme` to properly resolve imports.
@@ -39,6 +41,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class ZoomEve
39
41
  #include <optional>
40
42
  #include "GlyphImage.hpp"
41
43
  #include "AssetImage.hpp"
44
+ #include "RemoteImage.hpp"
42
45
  #include <variant>
43
46
  #include "NitroColor.hpp"
44
47
  #include "ColorScheme.hpp"
@@ -20,6 +20,8 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroAction
20
20
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct GlyphImage; }
21
21
  // Forward declaration of `AssetImage` to properly resolve imports.
22
22
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct AssetImage; }
23
+ // Forward declaration of `RemoteImage` to properly resolve imports.
24
+ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct RemoteImage; }
23
25
  // Forward declaration of `NitroColor` to properly resolve imports.
24
26
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroColor; }
25
27
  // Forward declaration of `NitroActionType` to properly resolve imports.
@@ -51,6 +53,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class NitroMa
51
53
  #include <vector>
52
54
  #include "GlyphImage.hpp"
53
55
  #include "AssetImage.hpp"
56
+ #include "RemoteImage.hpp"
54
57
  #include <variant>
55
58
  #include "NitroColor.hpp"
56
59
  #include "NitroActionType.hpp"
@@ -20,6 +20,8 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroAction
20
20
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct GlyphImage; }
21
21
  // Forward declaration of `AssetImage` to properly resolve imports.
22
22
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct AssetImage; }
23
+ // Forward declaration of `RemoteImage` to properly resolve imports.
24
+ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct RemoteImage; }
23
25
  // Forward declaration of `NitroColor` to properly resolve imports.
24
26
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroColor; }
25
27
  // Forward declaration of `NitroActionType` to properly resolve imports.
@@ -55,6 +57,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class NitroMa
55
57
  #include <vector>
56
58
  #include "GlyphImage.hpp"
57
59
  #include "AssetImage.hpp"
60
+ #include "RemoteImage.hpp"
58
61
  #include <variant>
59
62
  #include "NitroColor.hpp"
60
63
  #include "NitroActionType.hpp"
@@ -20,6 +20,8 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroAction
20
20
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct GlyphImage; }
21
21
  // Forward declaration of `AssetImage` to properly resolve imports.
22
22
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct AssetImage; }
23
+ // Forward declaration of `RemoteImage` to properly resolve imports.
24
+ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct RemoteImage; }
23
25
  // Forward declaration of `NitroColor` to properly resolve imports.
24
26
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroColor; }
25
27
  // Forward declaration of `NitroActionType` to properly resolve imports.
@@ -55,6 +57,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class NitroMa
55
57
  #include <vector>
56
58
  #include "GlyphImage.hpp"
57
59
  #include "AssetImage.hpp"
60
+ #include "RemoteImage.hpp"
58
61
  #include <variant>
59
62
  #include "NitroColor.hpp"
60
63
  #include "NitroActionType.hpp"
@@ -28,6 +28,8 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class NitroMa
28
28
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct GlyphImage; }
29
29
  // Forward declaration of `AssetImage` to properly resolve imports.
30
30
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct AssetImage; }
31
+ // Forward declaration of `RemoteImage` to properly resolve imports.
32
+ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct RemoteImage; }
31
33
  // Forward declaration of `NitroColor` to properly resolve imports.
32
34
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroColor; }
33
35
  // Forward declaration of `NitroAction` to properly resolve imports.
@@ -113,6 +115,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class Maneuve
113
115
  #include "NitroMapButtonType.hpp"
114
116
  #include "GlyphImage.hpp"
115
117
  #include "AssetImage.hpp"
118
+ #include "RemoteImage.hpp"
116
119
  #include <variant>
117
120
  #include "NitroColor.hpp"
118
121
  #include "NitroAction.hpp"
@@ -20,6 +20,8 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroAction
20
20
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct GlyphImage; }
21
21
  // Forward declaration of `AssetImage` to properly resolve imports.
22
22
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct AssetImage; }
23
+ // Forward declaration of `RemoteImage` to properly resolve imports.
24
+ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct RemoteImage; }
23
25
  // Forward declaration of `NitroColor` to properly resolve imports.
24
26
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroColor; }
25
27
  // Forward declaration of `NitroActionType` to properly resolve imports.
@@ -49,6 +51,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class NitroMa
49
51
  #include <vector>
50
52
  #include "GlyphImage.hpp"
51
53
  #include "AssetImage.hpp"
54
+ #include "RemoteImage.hpp"
52
55
  #include <variant>
53
56
  #include "NitroColor.hpp"
54
57
  #include "NitroActionType.hpp"
@@ -20,6 +20,8 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroAction
20
20
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct GlyphImage; }
21
21
  // Forward declaration of `AssetImage` to properly resolve imports.
22
22
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct AssetImage; }
23
+ // Forward declaration of `RemoteImage` to properly resolve imports.
24
+ namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct RemoteImage; }
23
25
  // Forward declaration of `NitroColor` to properly resolve imports.
24
26
  namespace margelo::nitro::swe::iternio::reactnativeautoplay { struct NitroColor; }
25
27
  // Forward declaration of `NitroActionType` to properly resolve imports.
@@ -49,6 +51,7 @@ namespace margelo::nitro::swe::iternio::reactnativeautoplay { enum class NitroSe
49
51
  #include <vector>
50
52
  #include "GlyphImage.hpp"
51
53
  #include "AssetImage.hpp"
54
+ #include "RemoteImage.hpp"
52
55
  #include <variant>
53
56
  #include "NitroColor.hpp"
54
57
  #include "NitroActionType.hpp"
@@ -0,0 +1,46 @@
1
+ ///
2
+ /// Func_void_std__shared_ptr_ArrayBuffer_.swift
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ import NitroModules
9
+
10
+ /**
11
+ * Wraps a Swift `(_ value: ArrayBuffer) -> Void` as a class.
12
+ * This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
13
+ */
14
+ public final class Func_void_std__shared_ptr_ArrayBuffer_ {
15
+ public typealias bridge = margelo.nitro.swe.iternio.reactnativeautoplay.bridge.swift
16
+
17
+ private let closure: (_ value: ArrayBuffer) -> Void
18
+
19
+ public init(_ closure: @escaping (_ value: ArrayBuffer) -> Void) {
20
+ self.closure = closure
21
+ }
22
+
23
+ @inline(__always)
24
+ public func call(value: ArrayBuffer) -> Void {
25
+ self.closure(value)
26
+ }
27
+
28
+ /**
29
+ * Casts this instance to a retained unsafe raw pointer.
30
+ * This acquires one additional strong reference on the object!
31
+ */
32
+ @inline(__always)
33
+ public func toUnsafe() -> UnsafeMutableRawPointer {
34
+ return Unmanaged.passRetained(self).toOpaque()
35
+ }
36
+
37
+ /**
38
+ * Casts an unsafe pointer to a `Func_void_std__shared_ptr_ArrayBuffer_`.
39
+ * The pointer has to be a retained opaque `Unmanaged<Func_void_std__shared_ptr_ArrayBuffer_>`.
40
+ * This removes one strong reference from the object!
41
+ */
42
+ @inline(__always)
43
+ public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_std__shared_ptr_ArrayBuffer_ {
44
+ return Unmanaged<Func_void_std__shared_ptr_ArrayBuffer_>.fromOpaque(pointer).takeRetainedValue()
45
+ }
46
+ }
@@ -18,8 +18,8 @@ public extension GlyphImage {
18
18
  /**
19
19
  * Create a new instance of `GlyphImage`.
20
20
  */
21
- init(glyph: Double, color: NitroColor, backgroundColor: NitroColor, fontScale: Double?) {
22
- self.init(glyph, color, backgroundColor, { () -> bridge.std__optional_double_ in
21
+ init(glyph: Double, fontName: String, color: NitroColor, backgroundColor: NitroColor, fontScale: Double?) {
22
+ self.init(glyph, std.string(fontName), color, backgroundColor, { () -> bridge.std__optional_double_ in
23
23
  if let __unwrappedValue = fontScale {
24
24
  return bridge.create_std__optional_double_(__unwrappedValue)
25
25
  } else {
@@ -33,6 +33,11 @@ public extension GlyphImage {
33
33
  return self.__glyph
34
34
  }
35
35
 
36
+ @inline(__always)
37
+ var fontName: String {
38
+ return String(self.__fontName)
39
+ }
40
+
36
41
  @inline(__always)
37
42
  var color: NitroColor {
38
43
  return self.__color