react-native-google-maps-plus 1.7.0-dev.9 → 1.7.0

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 (46) hide show
  1. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +120 -124
  2. package/android/src/main/java/com/rngooglemapsplus/MapMarkerBuilder.kt +33 -0
  3. package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +27 -11
  4. package/android/src/main/java/com/rngooglemapsplus/extensions/BitmapExtension.kt +35 -0
  5. package/android/src/main/java/com/rngooglemapsplus/extensions/LatLngBoundsExtension.kt +31 -0
  6. package/android/src/main/java/com/rngooglemapsplus/extensions/MapObjectTagExtensions.kt +84 -0
  7. package/ios/GoogleMapViewImpl.swift +81 -64
  8. package/ios/MapMarkerBuilder.swift +55 -2
  9. package/ios/RNGoogleMapsPlusView.swift +20 -10
  10. package/ios/extensions/MapObjectTag+Extension.swift +93 -0
  11. package/ios/extensions/UIImage+Extension.swift +45 -0
  12. package/lib/module/types.js.map +1 -1
  13. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +12 -10
  14. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
  15. package/lib/typescript/src/types.d.ts +1 -0
  16. package/lib/typescript/src/types.d.ts.map +1 -1
  17. package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +4 -4
  18. package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +75 -0
  19. package/nitrogen/generated/android/c++/JFunc_void_std__string_RNLatLng.hpp +77 -0
  20. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +100 -92
  21. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +22 -20
  22. package/nitrogen/generated/android/c++/JRNMarker.hpp +7 -3
  23. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_std__optional_std__string_.kt → Func_void_std__string.kt} +12 -12
  24. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/{Func_void_std__optional_std__string__RNLatLng.kt → Func_void_std__string_RNLatLng.kt} +12 -12
  25. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +38 -30
  26. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNMarker.kt +6 -3
  27. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +16 -8
  28. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +58 -36
  29. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +32 -20
  30. package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string_.swift +6 -6
  31. package/nitrogen/generated/ios/swift/Func_void_std__string.swift +47 -0
  32. package/nitrogen/generated/ios/swift/Func_void_std__string_RNLatLng.swift +47 -0
  33. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +12 -10
  34. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +142 -180
  35. package/nitrogen/generated/ios/swift/RNMarker.swift +24 -1
  36. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +2 -0
  37. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +22 -20
  38. package/nitrogen/generated/shared/c++/RNMarker.hpp +6 -2
  39. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +20 -20
  40. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +10 -10
  41. package/package.json +1 -1
  42. package/src/RNGoogleMapsPlusView.nitro.ts +14 -10
  43. package/src/types.ts +1 -0
  44. package/nitrogen/generated/android/c++/JFunc_void_std__optional_std__string_.hpp +0 -76
  45. package/nitrogen/generated/android/c++/JFunc_void_std__optional_std__string__RNLatLng.hpp +0 -78
  46. package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string__RNLatLng.swift +0 -54
@@ -264,13 +264,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
264
264
  onPoiPress = value?.let { it }
265
265
  }
266
266
 
267
- abstract var onMarkerPress: ((id: String?) -> Unit)?
267
+ abstract var onMarkerPress: ((id: String) -> Unit)?
268
268
 
269
- private var onMarkerPress_cxx: Func_void_std__optional_std__string_?
269
+ private var onMarkerPress_cxx: Func_void_std__string?
270
270
  @Keep
271
271
  @DoNotStrip
272
272
  get() {
273
- return onMarkerPress?.let { Func_void_std__optional_std__string__java(it) }
273
+ return onMarkerPress?.let { Func_void_std__string_java(it) }
274
274
  }
275
275
  @Keep
276
276
  @DoNotStrip
@@ -278,13 +278,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
278
278
  onMarkerPress = value?.let { it }
279
279
  }
280
280
 
281
- abstract var onPolylinePress: ((id: String?) -> Unit)?
281
+ abstract var onPolylinePress: ((id: String) -> Unit)?
282
282
 
283
- private var onPolylinePress_cxx: Func_void_std__optional_std__string_?
283
+ private var onPolylinePress_cxx: Func_void_std__string?
284
284
  @Keep
285
285
  @DoNotStrip
286
286
  get() {
287
- return onPolylinePress?.let { Func_void_std__optional_std__string__java(it) }
287
+ return onPolylinePress?.let { Func_void_std__string_java(it) }
288
288
  }
289
289
  @Keep
290
290
  @DoNotStrip
@@ -292,13 +292,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
292
292
  onPolylinePress = value?.let { it }
293
293
  }
294
294
 
295
- abstract var onPolygonPress: ((id: String?) -> Unit)?
295
+ abstract var onPolygonPress: ((id: String) -> Unit)?
296
296
 
297
- private var onPolygonPress_cxx: Func_void_std__optional_std__string_?
297
+ private var onPolygonPress_cxx: Func_void_std__string?
298
298
  @Keep
299
299
  @DoNotStrip
300
300
  get() {
301
- return onPolygonPress?.let { Func_void_std__optional_std__string__java(it) }
301
+ return onPolygonPress?.let { Func_void_std__string_java(it) }
302
302
  }
303
303
  @Keep
304
304
  @DoNotStrip
@@ -306,13 +306,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
306
306
  onPolygonPress = value?.let { it }
307
307
  }
308
308
 
309
- abstract var onCirclePress: ((id: String?) -> Unit)?
309
+ abstract var onCirclePress: ((id: String) -> Unit)?
310
310
 
311
- private var onCirclePress_cxx: Func_void_std__optional_std__string_?
311
+ private var onCirclePress_cxx: Func_void_std__string?
312
312
  @Keep
313
313
  @DoNotStrip
314
314
  get() {
315
- return onCirclePress?.let { Func_void_std__optional_std__string__java(it) }
315
+ return onCirclePress?.let { Func_void_std__string_java(it) }
316
316
  }
317
317
  @Keep
318
318
  @DoNotStrip
@@ -320,13 +320,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
320
320
  onCirclePress = value?.let { it }
321
321
  }
322
322
 
323
- abstract var onMarkerDragStart: ((id: String?, location: RNLatLng) -> Unit)?
323
+ abstract var onMarkerDragStart: ((id: String, location: RNLatLng) -> Unit)?
324
324
 
325
- private var onMarkerDragStart_cxx: Func_void_std__optional_std__string__RNLatLng?
325
+ private var onMarkerDragStart_cxx: Func_void_std__string_RNLatLng?
326
326
  @Keep
327
327
  @DoNotStrip
328
328
  get() {
329
- return onMarkerDragStart?.let { Func_void_std__optional_std__string__RNLatLng_java(it) }
329
+ return onMarkerDragStart?.let { Func_void_std__string_RNLatLng_java(it) }
330
330
  }
331
331
  @Keep
332
332
  @DoNotStrip
@@ -334,13 +334,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
334
334
  onMarkerDragStart = value?.let { it }
335
335
  }
336
336
 
337
- abstract var onMarkerDrag: ((id: String?, location: RNLatLng) -> Unit)?
337
+ abstract var onMarkerDrag: ((id: String, location: RNLatLng) -> Unit)?
338
338
 
339
- private var onMarkerDrag_cxx: Func_void_std__optional_std__string__RNLatLng?
339
+ private var onMarkerDrag_cxx: Func_void_std__string_RNLatLng?
340
340
  @Keep
341
341
  @DoNotStrip
342
342
  get() {
343
- return onMarkerDrag?.let { Func_void_std__optional_std__string__RNLatLng_java(it) }
343
+ return onMarkerDrag?.let { Func_void_std__string_RNLatLng_java(it) }
344
344
  }
345
345
  @Keep
346
346
  @DoNotStrip
@@ -348,13 +348,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
348
348
  onMarkerDrag = value?.let { it }
349
349
  }
350
350
 
351
- abstract var onMarkerDragEnd: ((id: String?, location: RNLatLng) -> Unit)?
351
+ abstract var onMarkerDragEnd: ((id: String, location: RNLatLng) -> Unit)?
352
352
 
353
- private var onMarkerDragEnd_cxx: Func_void_std__optional_std__string__RNLatLng?
353
+ private var onMarkerDragEnd_cxx: Func_void_std__string_RNLatLng?
354
354
  @Keep
355
355
  @DoNotStrip
356
356
  get() {
357
- return onMarkerDragEnd?.let { Func_void_std__optional_std__string__RNLatLng_java(it) }
357
+ return onMarkerDragEnd?.let { Func_void_std__string_RNLatLng_java(it) }
358
358
  }
359
359
  @Keep
360
360
  @DoNotStrip
@@ -390,13 +390,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
390
390
  onIndoorLevelActivated = value?.let { it }
391
391
  }
392
392
 
393
- abstract var onInfoWindowPress: ((id: String?) -> Unit)?
393
+ abstract var onInfoWindowPress: ((id: String) -> Unit)?
394
394
 
395
- private var onInfoWindowPress_cxx: Func_void_std__optional_std__string_?
395
+ private var onInfoWindowPress_cxx: Func_void_std__string?
396
396
  @Keep
397
397
  @DoNotStrip
398
398
  get() {
399
- return onInfoWindowPress?.let { Func_void_std__optional_std__string__java(it) }
399
+ return onInfoWindowPress?.let { Func_void_std__string_java(it) }
400
400
  }
401
401
  @Keep
402
402
  @DoNotStrip
@@ -404,13 +404,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
404
404
  onInfoWindowPress = value?.let { it }
405
405
  }
406
406
 
407
- abstract var onInfoWindowClose: ((id: String?) -> Unit)?
407
+ abstract var onInfoWindowClose: ((id: String) -> Unit)?
408
408
 
409
- private var onInfoWindowClose_cxx: Func_void_std__optional_std__string_?
409
+ private var onInfoWindowClose_cxx: Func_void_std__string?
410
410
  @Keep
411
411
  @DoNotStrip
412
412
  get() {
413
- return onInfoWindowClose?.let { Func_void_std__optional_std__string__java(it) }
413
+ return onInfoWindowClose?.let { Func_void_std__string_java(it) }
414
414
  }
415
415
  @Keep
416
416
  @DoNotStrip
@@ -418,13 +418,13 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
418
418
  onInfoWindowClose = value?.let { it }
419
419
  }
420
420
 
421
- abstract var onInfoWindowLongPress: ((id: String?) -> Unit)?
421
+ abstract var onInfoWindowLongPress: ((id: String) -> Unit)?
422
422
 
423
- private var onInfoWindowLongPress_cxx: Func_void_std__optional_std__string_?
423
+ private var onInfoWindowLongPress_cxx: Func_void_std__string?
424
424
  @Keep
425
425
  @DoNotStrip
426
426
  get() {
427
- return onInfoWindowLongPress?.let { Func_void_std__optional_std__string__java(it) }
427
+ return onInfoWindowLongPress?.let { Func_void_std__string_java(it) }
428
428
  }
429
429
  @Keep
430
430
  @DoNotStrip
@@ -503,6 +503,14 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
503
503
  }
504
504
 
505
505
  // Methods
506
+ @DoNotStrip
507
+ @Keep
508
+ abstract fun showMarkerInfoWindow(id: String): Unit
509
+
510
+ @DoNotStrip
511
+ @Keep
512
+ abstract fun hideMarkerInfoWindow(id: String): Unit
513
+
506
514
  @DoNotStrip
507
515
  @Keep
508
516
  abstract fun setCamera(camera: RNCamera, animated: Boolean?, durationMs: Double?): Unit
@@ -56,7 +56,10 @@ data class RNMarker(
56
56
  val infoWindowAnchor: RNPosition?,
57
57
  @DoNotStrip
58
58
  @Keep
59
- val iconSvg: RNMarkerSvg?
59
+ val iconSvg: RNMarkerSvg?,
60
+ @DoNotStrip
61
+ @Keep
62
+ val infoWindowIconSvg: RNMarkerSvg?
60
63
  ) {
61
64
  private companion object {
62
65
  /**
@@ -66,8 +69,8 @@ data class RNMarker(
66
69
  @Keep
67
70
  @Suppress("unused")
68
71
  @JvmStatic
69
- private fun fromCpp(id: String, zIndex: Double?, coordinate: RNLatLng, anchor: RNPosition?, showInfoWindow: Boolean?, title: String?, snippet: String?, opacity: Double?, flat: Boolean?, draggable: Boolean?, rotation: Double?, infoWindowAnchor: RNPosition?, iconSvg: RNMarkerSvg?): RNMarker {
70
- return RNMarker(id, zIndex, coordinate, anchor, showInfoWindow, title, snippet, opacity, flat, draggable, rotation, infoWindowAnchor, iconSvg)
72
+ private fun fromCpp(id: String, zIndex: Double?, coordinate: RNLatLng, anchor: RNPosition?, showInfoWindow: Boolean?, title: String?, snippet: String?, opacity: Double?, flat: Boolean?, draggable: Boolean?, rotation: Double?, infoWindowAnchor: RNPosition?, iconSvg: RNMarkerSvg?, infoWindowIconSvg: RNMarkerSvg?): RNMarker {
73
+ return RNMarker(id, zIndex, coordinate, anchor, showInfoWindow, title, snippet, opacity, flat, draggable, rotation, infoWindowAnchor, iconSvg, infoWindowIconSvg)
71
74
  }
72
75
  }
73
76
  }
@@ -102,18 +102,18 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
102
102
  };
103
103
  }
104
104
 
105
- // pragma MARK: std::function<void(const std::optional<std::string>& /* id */)>
106
- Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void* NON_NULL swiftClosureWrapper) noexcept {
107
- auto swiftClosure = RNGoogleMapsPlus::Func_void_std__optional_std__string_::fromUnsafe(swiftClosureWrapper);
108
- return [swiftClosure = std::move(swiftClosure)](const std::optional<std::string>& id) mutable -> void {
105
+ // pragma MARK: std::function<void(const std::string& /* id */)>
106
+ Func_void_std__string create_Func_void_std__string(void* NON_NULL swiftClosureWrapper) noexcept {
107
+ auto swiftClosure = RNGoogleMapsPlus::Func_void_std__string::fromUnsafe(swiftClosureWrapper);
108
+ return [swiftClosure = std::move(swiftClosure)](const std::string& id) mutable -> void {
109
109
  swiftClosure.call(id);
110
110
  };
111
111
  }
112
112
 
113
- // pragma MARK: std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>
114
- Func_void_std__optional_std__string__RNLatLng create_Func_void_std__optional_std__string__RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept {
115
- auto swiftClosure = RNGoogleMapsPlus::Func_void_std__optional_std__string__RNLatLng::fromUnsafe(swiftClosureWrapper);
116
- return [swiftClosure = std::move(swiftClosure)](const std::optional<std::string>& id, const RNLatLng& location) mutable -> void {
113
+ // pragma MARK: std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>
114
+ Func_void_std__string_RNLatLng create_Func_void_std__string_RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept {
115
+ auto swiftClosure = RNGoogleMapsPlus::Func_void_std__string_RNLatLng::fromUnsafe(swiftClosureWrapper);
116
+ return [swiftClosure = std::move(swiftClosure)](const std::string& id, const RNLatLng& location) mutable -> void {
117
117
  swiftClosure.call(id, location);
118
118
  };
119
119
  }
@@ -142,6 +142,14 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
142
142
  };
143
143
  }
144
144
 
145
+ // pragma MARK: std::function<void(const std::optional<std::string>& /* result */)>
146
+ Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void* NON_NULL swiftClosureWrapper) noexcept {
147
+ auto swiftClosure = RNGoogleMapsPlus::Func_void_std__optional_std__string_::fromUnsafe(swiftClosureWrapper);
148
+ return [swiftClosure = std::move(swiftClosure)](const std::optional<std::string>& result) mutable -> void {
149
+ swiftClosure.call(result);
150
+ };
151
+ }
152
+
145
153
  // pragma MARK: std::shared_ptr<HybridRNGoogleMapsPlusViewSpec>
146
154
  std::shared_ptr<HybridRNGoogleMapsPlusViewSpec> create_std__shared_ptr_HybridRNGoogleMapsPlusViewSpec_(void* NON_NULL swiftUnsafePointer) noexcept {
147
155
  RNGoogleMapsPlus::HybridRNGoogleMapsPlusViewSpec_cxx swiftPart = RNGoogleMapsPlus::HybridRNGoogleMapsPlusViewSpec_cxx::fromUnsafe(swiftUnsafePointer);
@@ -1141,77 +1141,77 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
1141
1141
  return *optional;
1142
1142
  }
1143
1143
 
1144
- // pragma MARK: std::function<void(const std::optional<std::string>& /* id */)>
1144
+ // pragma MARK: std::function<void(const std::string& /* id */)>
1145
1145
  /**
1146
- * Specialized version of `std::function<void(const std::optional<std::string>&)>`.
1146
+ * Specialized version of `std::function<void(const std::string&)>`.
1147
1147
  */
1148
- using Func_void_std__optional_std__string_ = std::function<void(const std::optional<std::string>& /* id */)>;
1148
+ using Func_void_std__string = std::function<void(const std::string& /* id */)>;
1149
1149
  /**
1150
- * Wrapper class for a `std::function<void(const std::optional<std::string>& / * id * /)>`, this can be used from Swift.
1150
+ * Wrapper class for a `std::function<void(const std::string& / * id * /)>`, this can be used from Swift.
1151
1151
  */
1152
- class Func_void_std__optional_std__string__Wrapper final {
1152
+ class Func_void_std__string_Wrapper final {
1153
1153
  public:
1154
- explicit Func_void_std__optional_std__string__Wrapper(std::function<void(const std::optional<std::string>& /* id */)>&& func): _function(std::make_unique<std::function<void(const std::optional<std::string>& /* id */)>>(std::move(func))) {}
1155
- inline void call(std::optional<std::string> id) const noexcept {
1154
+ explicit Func_void_std__string_Wrapper(std::function<void(const std::string& /* id */)>&& func): _function(std::make_unique<std::function<void(const std::string& /* id */)>>(std::move(func))) {}
1155
+ inline void call(std::string id) const noexcept {
1156
1156
  _function->operator()(id);
1157
1157
  }
1158
1158
  private:
1159
- std::unique_ptr<std::function<void(const std::optional<std::string>& /* id */)>> _function;
1159
+ std::unique_ptr<std::function<void(const std::string& /* id */)>> _function;
1160
1160
  } SWIFT_NONCOPYABLE;
1161
- Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void* NON_NULL swiftClosureWrapper) noexcept;
1162
- inline Func_void_std__optional_std__string__Wrapper wrap_Func_void_std__optional_std__string_(Func_void_std__optional_std__string_ value) noexcept {
1163
- return Func_void_std__optional_std__string__Wrapper(std::move(value));
1161
+ Func_void_std__string create_Func_void_std__string(void* NON_NULL swiftClosureWrapper) noexcept;
1162
+ inline Func_void_std__string_Wrapper wrap_Func_void_std__string(Func_void_std__string value) noexcept {
1163
+ return Func_void_std__string_Wrapper(std::move(value));
1164
1164
  }
1165
1165
 
1166
- // pragma MARK: std::optional<std::function<void(const std::optional<std::string>& /* id */)>>
1166
+ // pragma MARK: std::optional<std::function<void(const std::string& /* id */)>>
1167
1167
  /**
1168
- * Specialized version of `std::optional<std::function<void(const std::optional<std::string>& / * id * /)>>`.
1168
+ * Specialized version of `std::optional<std::function<void(const std::string& / * id * /)>>`.
1169
1169
  */
1170
- using std__optional_std__function_void_const_std__optional_std__string______id______ = std::optional<std::function<void(const std::optional<std::string>& /* id */)>>;
1171
- inline std::optional<std::function<void(const std::optional<std::string>& /* id */)>> create_std__optional_std__function_void_const_std__optional_std__string______id______(const std::function<void(const std::optional<std::string>& /* id */)>& value) noexcept {
1172
- return std::optional<std::function<void(const std::optional<std::string>& /* id */)>>(value);
1170
+ using std__optional_std__function_void_const_std__string_____id______ = std::optional<std::function<void(const std::string& /* id */)>>;
1171
+ inline std::optional<std::function<void(const std::string& /* id */)>> create_std__optional_std__function_void_const_std__string_____id______(const std::function<void(const std::string& /* id */)>& value) noexcept {
1172
+ return std::optional<std::function<void(const std::string& /* id */)>>(value);
1173
1173
  }
1174
- inline bool has_value_std__optional_std__function_void_const_std__optional_std__string______id______(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& optional) noexcept {
1174
+ inline bool has_value_std__optional_std__function_void_const_std__string_____id______(const std::optional<std::function<void(const std::string& /* id */)>>& optional) noexcept {
1175
1175
  return optional.has_value();
1176
1176
  }
1177
- inline std::function<void(const std::optional<std::string>& /* id */)> get_std__optional_std__function_void_const_std__optional_std__string______id______(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& optional) noexcept {
1177
+ inline std::function<void(const std::string& /* id */)> get_std__optional_std__function_void_const_std__string_____id______(const std::optional<std::function<void(const std::string& /* id */)>>& optional) noexcept {
1178
1178
  return *optional;
1179
1179
  }
1180
1180
 
1181
- // pragma MARK: std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>
1181
+ // pragma MARK: std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>
1182
1182
  /**
1183
- * Specialized version of `std::function<void(const std::optional<std::string>&, const RNLatLng&)>`.
1183
+ * Specialized version of `std::function<void(const std::string&, const RNLatLng&)>`.
1184
1184
  */
1185
- using Func_void_std__optional_std__string__RNLatLng = std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>;
1185
+ using Func_void_std__string_RNLatLng = std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>;
1186
1186
  /**
1187
- * Wrapper class for a `std::function<void(const std::optional<std::string>& / * id * /, const RNLatLng& / * location * /)>`, this can be used from Swift.
1187
+ * Wrapper class for a `std::function<void(const std::string& / * id * /, const RNLatLng& / * location * /)>`, this can be used from Swift.
1188
1188
  */
1189
- class Func_void_std__optional_std__string__RNLatLng_Wrapper final {
1189
+ class Func_void_std__string_RNLatLng_Wrapper final {
1190
1190
  public:
1191
- explicit Func_void_std__optional_std__string__RNLatLng_Wrapper(std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>&& func): _function(std::make_unique<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>(std::move(func))) {}
1192
- inline void call(std::optional<std::string> id, RNLatLng location) const noexcept {
1191
+ explicit Func_void_std__string_RNLatLng_Wrapper(std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>&& func): _function(std::make_unique<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>(std::move(func))) {}
1192
+ inline void call(std::string id, RNLatLng location) const noexcept {
1193
1193
  _function->operator()(id, location);
1194
1194
  }
1195
1195
  private:
1196
- std::unique_ptr<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>> _function;
1196
+ std::unique_ptr<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> _function;
1197
1197
  } SWIFT_NONCOPYABLE;
1198
- Func_void_std__optional_std__string__RNLatLng create_Func_void_std__optional_std__string__RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept;
1199
- inline Func_void_std__optional_std__string__RNLatLng_Wrapper wrap_Func_void_std__optional_std__string__RNLatLng(Func_void_std__optional_std__string__RNLatLng value) noexcept {
1200
- return Func_void_std__optional_std__string__RNLatLng_Wrapper(std::move(value));
1198
+ Func_void_std__string_RNLatLng create_Func_void_std__string_RNLatLng(void* NON_NULL swiftClosureWrapper) noexcept;
1199
+ inline Func_void_std__string_RNLatLng_Wrapper wrap_Func_void_std__string_RNLatLng(Func_void_std__string_RNLatLng value) noexcept {
1200
+ return Func_void_std__string_RNLatLng_Wrapper(std::move(value));
1201
1201
  }
1202
1202
 
1203
- // pragma MARK: std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>
1203
+ // pragma MARK: std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>
1204
1204
  /**
1205
- * Specialized version of `std::optional<std::function<void(const std::optional<std::string>& / * id * /, const RNLatLng& / * location * /)>>`.
1205
+ * Specialized version of `std::optional<std::function<void(const std::string& / * id * /, const RNLatLng& / * location * /)>>`.
1206
1206
  */
1207
- using std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______ = std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>;
1208
- inline std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>> create_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(const std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>& value) noexcept {
1209
- return std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>(value);
1207
+ using std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______ = std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>;
1208
+ inline std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> create_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(const std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>& value) noexcept {
1209
+ return std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>(value);
1210
1210
  }
1211
- inline bool has_value_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(const std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>& optional) noexcept {
1211
+ inline bool has_value_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& optional) noexcept {
1212
1212
  return optional.has_value();
1213
1213
  }
1214
- inline std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)> get_std__optional_std__function_void_const_std__optional_std__string______id_____const_RNLatLng_____location______(const std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>& optional) noexcept {
1214
+ inline std::function<void(const std::string& /* id */, const RNLatLng& /* location */)> get_std__optional_std__function_void_const_std__string_____id_____const_RNLatLng_____location______(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& optional) noexcept {
1215
1215
  return *optional;
1216
1216
  }
1217
1217
 
@@ -1379,6 +1379,28 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
1379
1379
  return PromiseHolder<std::optional<std::string>>(std::move(promise));
1380
1380
  }
1381
1381
 
1382
+ // pragma MARK: std::function<void(const std::optional<std::string>& /* result */)>
1383
+ /**
1384
+ * Specialized version of `std::function<void(const std::optional<std::string>&)>`.
1385
+ */
1386
+ using Func_void_std__optional_std__string_ = std::function<void(const std::optional<std::string>& /* result */)>;
1387
+ /**
1388
+ * Wrapper class for a `std::function<void(const std::optional<std::string>& / * result * /)>`, this can be used from Swift.
1389
+ */
1390
+ class Func_void_std__optional_std__string__Wrapper final {
1391
+ public:
1392
+ explicit Func_void_std__optional_std__string__Wrapper(std::function<void(const std::optional<std::string>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::optional<std::string>& /* result */)>>(std::move(func))) {}
1393
+ inline void call(std::optional<std::string> result) const noexcept {
1394
+ _function->operator()(result);
1395
+ }
1396
+ private:
1397
+ std::unique_ptr<std::function<void(const std::optional<std::string>& /* result */)>> _function;
1398
+ } SWIFT_NONCOPYABLE;
1399
+ Func_void_std__optional_std__string_ create_Func_void_std__optional_std__string_(void* NON_NULL swiftClosureWrapper) noexcept;
1400
+ inline Func_void_std__optional_std__string__Wrapper wrap_Func_void_std__optional_std__string_(Func_void_std__optional_std__string_ value) noexcept {
1401
+ return Func_void_std__optional_std__string__Wrapper(std::move(value));
1402
+ }
1403
+
1382
1404
  // pragma MARK: std::optional<RNSize>
1383
1405
  /**
1384
1406
  * Specialized version of `std::optional<RNSize>`.
@@ -374,53 +374,53 @@ namespace margelo::nitro::rngooglemapsplus {
374
374
  inline void setOnPoiPress(const std::optional<std::function<void(const std::string& /* placeId */, const std::string& /* name */, const RNLatLng& /* coordinate */)>>& onPoiPress) noexcept override {
375
375
  _swiftPart.setOnPoiPress(onPoiPress);
376
376
  }
377
- inline std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnMarkerPress() noexcept override {
377
+ inline std::optional<std::function<void(const std::string& /* id */)>> getOnMarkerPress() noexcept override {
378
378
  auto __result = _swiftPart.getOnMarkerPress();
379
379
  return __result;
380
380
  }
381
- inline void setOnMarkerPress(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& onMarkerPress) noexcept override {
381
+ inline void setOnMarkerPress(const std::optional<std::function<void(const std::string& /* id */)>>& onMarkerPress) noexcept override {
382
382
  _swiftPart.setOnMarkerPress(onMarkerPress);
383
383
  }
384
- inline std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnPolylinePress() noexcept override {
384
+ inline std::optional<std::function<void(const std::string& /* id */)>> getOnPolylinePress() noexcept override {
385
385
  auto __result = _swiftPart.getOnPolylinePress();
386
386
  return __result;
387
387
  }
388
- inline void setOnPolylinePress(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& onPolylinePress) noexcept override {
388
+ inline void setOnPolylinePress(const std::optional<std::function<void(const std::string& /* id */)>>& onPolylinePress) noexcept override {
389
389
  _swiftPart.setOnPolylinePress(onPolylinePress);
390
390
  }
391
- inline std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnPolygonPress() noexcept override {
391
+ inline std::optional<std::function<void(const std::string& /* id */)>> getOnPolygonPress() noexcept override {
392
392
  auto __result = _swiftPart.getOnPolygonPress();
393
393
  return __result;
394
394
  }
395
- inline void setOnPolygonPress(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& onPolygonPress) noexcept override {
395
+ inline void setOnPolygonPress(const std::optional<std::function<void(const std::string& /* id */)>>& onPolygonPress) noexcept override {
396
396
  _swiftPart.setOnPolygonPress(onPolygonPress);
397
397
  }
398
- inline std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnCirclePress() noexcept override {
398
+ inline std::optional<std::function<void(const std::string& /* id */)>> getOnCirclePress() noexcept override {
399
399
  auto __result = _swiftPart.getOnCirclePress();
400
400
  return __result;
401
401
  }
402
- inline void setOnCirclePress(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& onCirclePress) noexcept override {
402
+ inline void setOnCirclePress(const std::optional<std::function<void(const std::string& /* id */)>>& onCirclePress) noexcept override {
403
403
  _swiftPart.setOnCirclePress(onCirclePress);
404
404
  }
405
- inline std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>> getOnMarkerDragStart() noexcept override {
405
+ inline std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> getOnMarkerDragStart() noexcept override {
406
406
  auto __result = _swiftPart.getOnMarkerDragStart();
407
407
  return __result;
408
408
  }
409
- inline void setOnMarkerDragStart(const std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>& onMarkerDragStart) noexcept override {
409
+ inline void setOnMarkerDragStart(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDragStart) noexcept override {
410
410
  _swiftPart.setOnMarkerDragStart(onMarkerDragStart);
411
411
  }
412
- inline std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>> getOnMarkerDrag() noexcept override {
412
+ inline std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> getOnMarkerDrag() noexcept override {
413
413
  auto __result = _swiftPart.getOnMarkerDrag();
414
414
  return __result;
415
415
  }
416
- inline void setOnMarkerDrag(const std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>& onMarkerDrag) noexcept override {
416
+ inline void setOnMarkerDrag(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDrag) noexcept override {
417
417
  _swiftPart.setOnMarkerDrag(onMarkerDrag);
418
418
  }
419
- inline std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>> getOnMarkerDragEnd() noexcept override {
419
+ inline std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>> getOnMarkerDragEnd() noexcept override {
420
420
  auto __result = _swiftPart.getOnMarkerDragEnd();
421
421
  return __result;
422
422
  }
423
- inline void setOnMarkerDragEnd(const std::optional<std::function<void(const std::optional<std::string>& /* id */, const RNLatLng& /* location */)>>& onMarkerDragEnd) noexcept override {
423
+ inline void setOnMarkerDragEnd(const std::optional<std::function<void(const std::string& /* id */, const RNLatLng& /* location */)>>& onMarkerDragEnd) noexcept override {
424
424
  _swiftPart.setOnMarkerDragEnd(onMarkerDragEnd);
425
425
  }
426
426
  inline std::optional<std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>> getOnIndoorBuildingFocused() noexcept override {
@@ -437,25 +437,25 @@ namespace margelo::nitro::rngooglemapsplus {
437
437
  inline void setOnIndoorLevelActivated(const std::optional<std::function<void(const RNIndoorLevel& /* indoorLevel */)>>& onIndoorLevelActivated) noexcept override {
438
438
  _swiftPart.setOnIndoorLevelActivated(onIndoorLevelActivated);
439
439
  }
440
- inline std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnInfoWindowPress() noexcept override {
440
+ inline std::optional<std::function<void(const std::string& /* id */)>> getOnInfoWindowPress() noexcept override {
441
441
  auto __result = _swiftPart.getOnInfoWindowPress();
442
442
  return __result;
443
443
  }
444
- inline void setOnInfoWindowPress(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& onInfoWindowPress) noexcept override {
444
+ inline void setOnInfoWindowPress(const std::optional<std::function<void(const std::string& /* id */)>>& onInfoWindowPress) noexcept override {
445
445
  _swiftPart.setOnInfoWindowPress(onInfoWindowPress);
446
446
  }
447
- inline std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnInfoWindowClose() noexcept override {
447
+ inline std::optional<std::function<void(const std::string& /* id */)>> getOnInfoWindowClose() noexcept override {
448
448
  auto __result = _swiftPart.getOnInfoWindowClose();
449
449
  return __result;
450
450
  }
451
- inline void setOnInfoWindowClose(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& onInfoWindowClose) noexcept override {
451
+ inline void setOnInfoWindowClose(const std::optional<std::function<void(const std::string& /* id */)>>& onInfoWindowClose) noexcept override {
452
452
  _swiftPart.setOnInfoWindowClose(onInfoWindowClose);
453
453
  }
454
- inline std::optional<std::function<void(const std::optional<std::string>& /* id */)>> getOnInfoWindowLongPress() noexcept override {
454
+ inline std::optional<std::function<void(const std::string& /* id */)>> getOnInfoWindowLongPress() noexcept override {
455
455
  auto __result = _swiftPart.getOnInfoWindowLongPress();
456
456
  return __result;
457
457
  }
458
- inline void setOnInfoWindowLongPress(const std::optional<std::function<void(const std::optional<std::string>& /* id */)>>& onInfoWindowLongPress) noexcept override {
458
+ inline void setOnInfoWindowLongPress(const std::optional<std::function<void(const std::string& /* id */)>>& onInfoWindowLongPress) noexcept override {
459
459
  _swiftPart.setOnInfoWindowLongPress(onInfoWindowLongPress);
460
460
  }
461
461
  inline std::optional<std::function<void(const RNLocation& /* location */)>> getOnMyLocationPress() noexcept override {
@@ -496,6 +496,18 @@ namespace margelo::nitro::rngooglemapsplus {
496
496
 
497
497
  public:
498
498
  // Methods
499
+ inline void showMarkerInfoWindow(const std::string& id) override {
500
+ auto __result = _swiftPart.showMarkerInfoWindow(id);
501
+ if (__result.hasError()) [[unlikely]] {
502
+ std::rethrow_exception(__result.error());
503
+ }
504
+ }
505
+ inline void hideMarkerInfoWindow(const std::string& id) override {
506
+ auto __result = _swiftPart.hideMarkerInfoWindow(id);
507
+ if (__result.hasError()) [[unlikely]] {
508
+ std::rethrow_exception(__result.error());
509
+ }
510
+ }
499
511
  inline void setCamera(const RNCamera& camera, std::optional<bool> animated, std::optional<double> durationMs) override {
500
512
  auto __result = _swiftPart.setCamera(std::forward<decltype(camera)>(camera), animated, durationMs);
501
513
  if (__result.hasError()) [[unlikely]] {
@@ -9,23 +9,23 @@ import NitroModules
9
9
 
10
10
 
11
11
  /**
12
- * Wraps a Swift `(_ id: String?) -> Void` as a class.
12
+ * Wraps a Swift `(_ value: 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`.
14
14
  */
15
15
  public final class Func_void_std__optional_std__string_ {
16
16
  public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
17
17
 
18
- private let closure: (_ id: String?) -> Void
18
+ private let closure: (_ value: String?) -> Void
19
19
 
20
- public init(_ closure: @escaping (_ id: String?) -> Void) {
20
+ public init(_ closure: @escaping (_ value: String?) -> Void) {
21
21
  self.closure = closure
22
22
  }
23
23
 
24
24
  @inline(__always)
25
- public func call(id: bridge.std__optional_std__string_) -> Void {
25
+ public func call(value: bridge.std__optional_std__string_) -> Void {
26
26
  self.closure({ () -> String? in
27
- if bridge.has_value_std__optional_std__string_(id) {
28
- let __unwrapped = bridge.get_std__optional_std__string_(id)
27
+ if bridge.has_value_std__optional_std__string_(value) {
28
+ let __unwrapped = bridge.get_std__optional_std__string_(value)
29
29
  return String(__unwrapped)
30
30
  } else {
31
31
  return nil
@@ -0,0 +1,47 @@
1
+ ///
2
+ /// Func_void_std__string.swift
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ import NitroModules
9
+
10
+
11
+ /**
12
+ * Wraps a Swift `(_ id: String) -> Void` as a class.
13
+ * This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
14
+ */
15
+ public final class Func_void_std__string {
16
+ public typealias bridge = margelo.nitro.rngooglemapsplus.bridge.swift
17
+
18
+ private let closure: (_ id: String) -> Void
19
+
20
+ public init(_ closure: @escaping (_ id: String) -> Void) {
21
+ self.closure = closure
22
+ }
23
+
24
+ @inline(__always)
25
+ public func call(id: std.string) -> Void {
26
+ self.closure(String(id))
27
+ }
28
+
29
+ /**
30
+ * Casts this instance to a retained unsafe raw pointer.
31
+ * This acquires one additional strong reference on the object!
32
+ */
33
+ @inline(__always)
34
+ public func toUnsafe() -> UnsafeMutableRawPointer {
35
+ return Unmanaged.passRetained(self).toOpaque()
36
+ }
37
+
38
+ /**
39
+ * Casts an unsafe pointer to a `Func_void_std__string`.
40
+ * The pointer has to be a retained opaque `Unmanaged<Func_void_std__string>`.
41
+ * This removes one strong reference from the object!
42
+ */
43
+ @inline(__always)
44
+ public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_std__string {
45
+ return Unmanaged<Func_void_std__string>.fromOpaque(pointer).takeRetainedValue()
46
+ }
47
+ }