react-native-google-maps-plus 1.3.0-dev.1 → 1.3.0-dev.3

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 (74) hide show
  1. package/android/src/main/java/com/rngooglemapsplus/GoogleMapsViewImpl.kt +107 -5
  2. package/android/src/main/java/com/rngooglemapsplus/LocationHandler.kt +0 -1
  3. package/android/src/main/java/com/rngooglemapsplus/RNGoogleMapsPlusView.kt +48 -4
  4. package/android/src/main/java/com/rngooglemapsplus/extensions/IndoorBuildingExtension.kt +33 -0
  5. package/android/src/main/java/com/rngooglemapsplus/extensions/RNLatLngBoundsExtension.kt +17 -0
  6. package/android/src/main/java/com/rngooglemapsplus/extensions/RNSize.kt +7 -0
  7. package/android/src/main/java/com/rngooglemapsplus/extensions/RNSnapshotFormat.kt +16 -0
  8. package/android/src/main/java/com/rngooglemapsplus/extensions/RNSnapshotResultType.kt +9 -0
  9. package/ios/GoogleMapViewImpl.swift +277 -121
  10. package/ios/RNGoogleMapsPlusView.swift +78 -27
  11. package/ios/extensions/IndoorBuilding+Extension.swift +33 -0
  12. package/ios/extensions/RNLatLngBounds+Extension.swift +16 -0
  13. package/ios/extensions/RNSize+Extension.swift +7 -0
  14. package/ios/extensions/RNSnapshotFormat+Extension.swift +28 -0
  15. package/ios/extensions/RNSnapshotResultType+Extension.swift +12 -0
  16. package/lib/module/types.js.map +1 -1
  17. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts +8 -3
  18. package/lib/typescript/src/RNGoogleMapsPlusView.nitro.d.ts.map +1 -1
  19. package/lib/typescript/src/types.d.ts +25 -1
  20. package/lib/typescript/src/types.d.ts.map +1 -1
  21. package/nitrogen/generated/android/RNGoogleMapsPlusOnLoad.cpp +4 -0
  22. package/nitrogen/generated/android/c++/JFunc_void_RNIndoorBuilding.hpp +81 -0
  23. package/nitrogen/generated/android/c++/JFunc_void_RNIndoorLevel.hpp +78 -0
  24. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.cpp +99 -7
  25. package/nitrogen/generated/android/c++/JHybridRNGoogleMapsPlusViewSpec.hpp +9 -2
  26. package/nitrogen/generated/android/c++/JRNIndoorBuilding.hpp +86 -0
  27. package/nitrogen/generated/android/c++/JRNIndoorLevel.hpp +66 -0
  28. package/nitrogen/generated/android/c++/JRNLatLngBounds.hpp +58 -0
  29. package/nitrogen/generated/android/c++/JRNSize.hpp +57 -0
  30. package/nitrogen/generated/android/c++/JRNSnapshotFormat.hpp +62 -0
  31. package/nitrogen/generated/android/c++/JRNSnapshotOptions.hpp +71 -0
  32. package/nitrogen/generated/android/c++/JRNSnapshotResultType.hpp +59 -0
  33. package/nitrogen/generated/android/c++/views/JHybridRNGoogleMapsPlusViewStateUpdater.cpp +8 -0
  34. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorBuilding.kt +81 -0
  35. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/Func_void_RNIndoorLevel.kt +81 -0
  36. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/HybridRNGoogleMapsPlusViewSpec.kt +42 -2
  37. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIndoorBuilding.kt +38 -0
  38. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNIndoorLevel.kt +38 -0
  39. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNLatLngBounds.kt +32 -0
  40. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNSize.kt +32 -0
  41. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNSnapshotFormat.kt +22 -0
  42. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNSnapshotOptions.kt +38 -0
  43. package/nitrogen/generated/android/kotlin/com/margelo/nitro/rngooglemapsplus/RNSnapshotResultType.kt +21 -0
  44. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.cpp +16 -0
  45. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Bridge.hpp +148 -0
  46. package/nitrogen/generated/ios/RNGoogleMapsPlus-Swift-Cxx-Umbrella.hpp +21 -0
  47. package/nitrogen/generated/ios/c++/HybridRNGoogleMapsPlusViewSpecSwift.hpp +60 -5
  48. package/nitrogen/generated/ios/c++/views/HybridRNGoogleMapsPlusViewComponent.mm +10 -0
  49. package/nitrogen/generated/ios/swift/Func_void_RNIndoorBuilding.swift +47 -0
  50. package/nitrogen/generated/ios/swift/Func_void_RNIndoorLevel.swift +47 -0
  51. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec.swift +7 -2
  52. package/nitrogen/generated/ios/swift/HybridRNGoogleMapsPlusViewSpec_cxx.swift +122 -4
  53. package/nitrogen/generated/ios/swift/RNIndoorBuilding.swift +116 -0
  54. package/nitrogen/generated/ios/swift/RNIndoorLevel.swift +118 -0
  55. package/nitrogen/generated/ios/swift/RNLatLngBounds.swift +46 -0
  56. package/nitrogen/generated/ios/swift/RNSize.swift +46 -0
  57. package/nitrogen/generated/ios/swift/RNSnapshotFormat.swift +44 -0
  58. package/nitrogen/generated/ios/swift/RNSnapshotOptions.swift +87 -0
  59. package/nitrogen/generated/ios/swift/RNSnapshotResultType.swift +40 -0
  60. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.cpp +7 -0
  61. package/nitrogen/generated/shared/c++/HybridRNGoogleMapsPlusViewSpec.hpp +22 -3
  62. package/nitrogen/generated/shared/c++/RNIndoorBuilding.hpp +82 -0
  63. package/nitrogen/generated/shared/c++/RNIndoorLevel.hpp +80 -0
  64. package/nitrogen/generated/shared/c++/RNLatLngBounds.hpp +72 -0
  65. package/nitrogen/generated/shared/c++/RNSize.hpp +71 -0
  66. package/nitrogen/generated/shared/c++/RNSnapshotFormat.hpp +80 -0
  67. package/nitrogen/generated/shared/c++/RNSnapshotOptions.hpp +87 -0
  68. package/nitrogen/generated/shared/c++/RNSnapshotResultType.hpp +76 -0
  69. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.cpp +24 -0
  70. package/nitrogen/generated/shared/c++/views/HybridRNGoogleMapsPlusViewComponent.hpp +4 -0
  71. package/nitrogen/generated/shared/json/RNGoogleMapsPlusViewConfig.json +2 -0
  72. package/package.json +1 -1
  73. package/src/RNGoogleMapsPlusView.nitro.ts +19 -2
  74. package/src/types.ts +38 -2
@@ -156,6 +156,14 @@ void JHybridRNGoogleMapsPlusViewStateUpdater::updateViewProps(jni::alias_ref<jni
156
156
  view->setOnMarkerDragEnd(props.onMarkerDragEnd.value);
157
157
  // TODO: Set isDirty = false
158
158
  }
159
+ if (props.onIndoorBuildingFocused.isDirty) {
160
+ view->setOnIndoorBuildingFocused(props.onIndoorBuildingFocused.value);
161
+ // TODO: Set isDirty = false
162
+ }
163
+ if (props.onIndoorLevelActivated.isDirty) {
164
+ view->setOnIndoorLevelActivated(props.onIndoorLevelActivated.value);
165
+ // TODO: Set isDirty = false
166
+ }
159
167
  if (props.onCameraChangeStart.isDirty) {
160
168
  view->setOnCameraChangeStart(props.onCameraChangeStart.value);
161
169
  // TODO: Set isDirty = false
@@ -0,0 +1,81 @@
1
+ ///
2
+ /// Func_void_RNIndoorBuilding.kt
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
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.jni.HybridData
12
+ import com.facebook.proguard.annotations.DoNotStrip
13
+ import com.margelo.nitro.core.*
14
+ import dalvik.annotation.optimization.FastNative
15
+
16
+
17
+ /**
18
+ * Represents the JavaScript callback `(indoorBuilding: struct) => void`.
19
+ * This can be either implemented in C++ (in which case it might be a callback coming from JS),
20
+ * or in Kotlin/Java (in which case it is a native callback).
21
+ */
22
+ @DoNotStrip
23
+ @Keep
24
+ @Suppress("ClassName", "RedundantUnitReturnType")
25
+ fun interface Func_void_RNIndoorBuilding: (RNIndoorBuilding) -> Unit {
26
+ /**
27
+ * Call the given JS callback.
28
+ * @throws Throwable if the JS function itself throws an error, or if the JS function/runtime has already been deleted.
29
+ */
30
+ @DoNotStrip
31
+ @Keep
32
+ override fun invoke(indoorBuilding: RNIndoorBuilding): Unit
33
+ }
34
+
35
+ /**
36
+ * Represents the JavaScript callback `(indoorBuilding: struct) => void`.
37
+ * This is implemented in C++, via a `std::function<...>`.
38
+ * The callback might be coming from JS.
39
+ */
40
+ @DoNotStrip
41
+ @Keep
42
+ @Suppress(
43
+ "KotlinJniMissingFunction", "unused",
44
+ "RedundantSuppression", "RedundantUnitReturnType", "FunctionName",
45
+ "ConvertSecondaryConstructorToPrimary", "ClassName", "LocalVariableName",
46
+ )
47
+ class Func_void_RNIndoorBuilding_cxx: Func_void_RNIndoorBuilding {
48
+ @DoNotStrip
49
+ @Keep
50
+ private val mHybridData: HybridData
51
+
52
+ @DoNotStrip
53
+ @Keep
54
+ private constructor(hybridData: HybridData) {
55
+ mHybridData = hybridData
56
+ }
57
+
58
+ @DoNotStrip
59
+ @Keep
60
+ override fun invoke(indoorBuilding: RNIndoorBuilding): Unit
61
+ = invoke_cxx(indoorBuilding)
62
+
63
+ @FastNative
64
+ private external fun invoke_cxx(indoorBuilding: RNIndoorBuilding): Unit
65
+ }
66
+
67
+ /**
68
+ * Represents the JavaScript callback `(indoorBuilding: struct) => void`.
69
+ * This is implemented in Java/Kotlin, via a `(RNIndoorBuilding) -> Unit`.
70
+ * The callback is always coming from native.
71
+ */
72
+ @DoNotStrip
73
+ @Keep
74
+ @Suppress("ClassName", "RedundantUnitReturnType", "unused")
75
+ class Func_void_RNIndoorBuilding_java(private val function: (RNIndoorBuilding) -> Unit): Func_void_RNIndoorBuilding {
76
+ @DoNotStrip
77
+ @Keep
78
+ override fun invoke(indoorBuilding: RNIndoorBuilding): Unit {
79
+ return this.function(indoorBuilding)
80
+ }
81
+ }
@@ -0,0 +1,81 @@
1
+ ///
2
+ /// Func_void_RNIndoorLevel.kt
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
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.jni.HybridData
12
+ import com.facebook.proguard.annotations.DoNotStrip
13
+ import com.margelo.nitro.core.*
14
+ import dalvik.annotation.optimization.FastNative
15
+
16
+
17
+ /**
18
+ * Represents the JavaScript callback `(indoorLevel: struct) => void`.
19
+ * This can be either implemented in C++ (in which case it might be a callback coming from JS),
20
+ * or in Kotlin/Java (in which case it is a native callback).
21
+ */
22
+ @DoNotStrip
23
+ @Keep
24
+ @Suppress("ClassName", "RedundantUnitReturnType")
25
+ fun interface Func_void_RNIndoorLevel: (RNIndoorLevel) -> Unit {
26
+ /**
27
+ * Call the given JS callback.
28
+ * @throws Throwable if the JS function itself throws an error, or if the JS function/runtime has already been deleted.
29
+ */
30
+ @DoNotStrip
31
+ @Keep
32
+ override fun invoke(indoorLevel: RNIndoorLevel): Unit
33
+ }
34
+
35
+ /**
36
+ * Represents the JavaScript callback `(indoorLevel: struct) => void`.
37
+ * This is implemented in C++, via a `std::function<...>`.
38
+ * The callback might be coming from JS.
39
+ */
40
+ @DoNotStrip
41
+ @Keep
42
+ @Suppress(
43
+ "KotlinJniMissingFunction", "unused",
44
+ "RedundantSuppression", "RedundantUnitReturnType", "FunctionName",
45
+ "ConvertSecondaryConstructorToPrimary", "ClassName", "LocalVariableName",
46
+ )
47
+ class Func_void_RNIndoorLevel_cxx: Func_void_RNIndoorLevel {
48
+ @DoNotStrip
49
+ @Keep
50
+ private val mHybridData: HybridData
51
+
52
+ @DoNotStrip
53
+ @Keep
54
+ private constructor(hybridData: HybridData) {
55
+ mHybridData = hybridData
56
+ }
57
+
58
+ @DoNotStrip
59
+ @Keep
60
+ override fun invoke(indoorLevel: RNIndoorLevel): Unit
61
+ = invoke_cxx(indoorLevel)
62
+
63
+ @FastNative
64
+ private external fun invoke_cxx(indoorLevel: RNIndoorLevel): Unit
65
+ }
66
+
67
+ /**
68
+ * Represents the JavaScript callback `(indoorLevel: struct) => void`.
69
+ * This is implemented in Java/Kotlin, via a `(RNIndoorLevel) -> Unit`.
70
+ * The callback is always coming from native.
71
+ */
72
+ @DoNotStrip
73
+ @Keep
74
+ @Suppress("ClassName", "RedundantUnitReturnType", "unused")
75
+ class Func_void_RNIndoorLevel_java(private val function: (RNIndoorLevel) -> Unit): Func_void_RNIndoorLevel {
76
+ @DoNotStrip
77
+ @Keep
78
+ override fun invoke(indoorLevel: RNIndoorLevel): Unit {
79
+ return this.function(indoorLevel)
80
+ }
81
+ }
@@ -314,6 +314,34 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
314
314
  onMarkerDragEnd = value?.let { it }
315
315
  }
316
316
 
317
+ abstract var onIndoorBuildingFocused: ((indoorBuilding: RNIndoorBuilding) -> Unit)?
318
+
319
+ private var onIndoorBuildingFocused_cxx: Func_void_RNIndoorBuilding?
320
+ @Keep
321
+ @DoNotStrip
322
+ get() {
323
+ return onIndoorBuildingFocused?.let { Func_void_RNIndoorBuilding_java(it) }
324
+ }
325
+ @Keep
326
+ @DoNotStrip
327
+ set(value) {
328
+ onIndoorBuildingFocused = value?.let { it }
329
+ }
330
+
331
+ abstract var onIndoorLevelActivated: ((indoorLevel: RNIndoorLevel) -> Unit)?
332
+
333
+ private var onIndoorLevelActivated_cxx: Func_void_RNIndoorLevel?
334
+ @Keep
335
+ @DoNotStrip
336
+ get() {
337
+ return onIndoorLevelActivated?.let { Func_void_RNIndoorLevel_java(it) }
338
+ }
339
+ @Keep
340
+ @DoNotStrip
341
+ set(value) {
342
+ onIndoorLevelActivated = value?.let { it }
343
+ }
344
+
317
345
  abstract var onCameraChangeStart: ((region: RNRegion, camera: RNCamera, isGesture: Boolean) -> Unit)?
318
346
 
319
347
  private var onCameraChangeStart_cxx: Func_void_RNRegion_RNCamera_bool?
@@ -359,11 +387,23 @@ abstract class HybridRNGoogleMapsPlusViewSpec: HybridView() {
359
387
  // Methods
360
388
  @DoNotStrip
361
389
  @Keep
362
- abstract fun setCamera(camera: RNCamera, animated: Boolean?, durationMS: Double?): Unit
390
+ abstract fun setCamera(camera: RNCamera, animated: Boolean?, durationMs: Double?): Unit
391
+
392
+ @DoNotStrip
393
+ @Keep
394
+ abstract fun setCameraToCoordinates(coordinates: Array<RNLatLng>, padding: RNMapPadding?, animated: Boolean?, durationMs: Double?): Unit
395
+
396
+ @DoNotStrip
397
+ @Keep
398
+ abstract fun setCameraBounds(bounds: RNLatLngBounds?): Unit
399
+
400
+ @DoNotStrip
401
+ @Keep
402
+ abstract fun animateToBounds(bounds: RNLatLngBounds, padding: Double?, durationMs: Double?, lockBounds: Boolean?): Unit
363
403
 
364
404
  @DoNotStrip
365
405
  @Keep
366
- abstract fun setCameraToCoordinates(coordinates: Array<RNLatLng>, padding: RNMapPadding?, animated: Boolean?, durationMS: Double?): Unit
406
+ abstract fun snapshot(options: RNSnapshotOptions): Promise<String?>
367
407
 
368
408
  @DoNotStrip
369
409
  @Keep
@@ -0,0 +1,38 @@
1
+ ///
2
+ /// RNIndoorBuilding.kt
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
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
13
+
14
+
15
+ /**
16
+ * Represents the JavaScript object/struct "RNIndoorBuilding".
17
+ */
18
+ @DoNotStrip
19
+ @Keep
20
+ data class RNIndoorBuilding
21
+ @DoNotStrip
22
+ @Keep
23
+ constructor(
24
+ @DoNotStrip
25
+ @Keep
26
+ val activeLevelIndex: Double?,
27
+ @DoNotStrip
28
+ @Keep
29
+ val defaultLevelIndex: Double?,
30
+ @DoNotStrip
31
+ @Keep
32
+ val levels: Array<RNIndoorLevel>,
33
+ @DoNotStrip
34
+ @Keep
35
+ val underground: Boolean?
36
+ ) {
37
+ /* main constructor */
38
+ }
@@ -0,0 +1,38 @@
1
+ ///
2
+ /// RNIndoorLevel.kt
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
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
13
+
14
+
15
+ /**
16
+ * Represents the JavaScript object/struct "RNIndoorLevel".
17
+ */
18
+ @DoNotStrip
19
+ @Keep
20
+ data class RNIndoorLevel
21
+ @DoNotStrip
22
+ @Keep
23
+ constructor(
24
+ @DoNotStrip
25
+ @Keep
26
+ val index: Double,
27
+ @DoNotStrip
28
+ @Keep
29
+ val name: String?,
30
+ @DoNotStrip
31
+ @Keep
32
+ val shortName: String?,
33
+ @DoNotStrip
34
+ @Keep
35
+ val active: Boolean?
36
+ ) {
37
+ /* main constructor */
38
+ }
@@ -0,0 +1,32 @@
1
+ ///
2
+ /// RNLatLngBounds.kt
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
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
13
+
14
+
15
+ /**
16
+ * Represents the JavaScript object/struct "RNLatLngBounds".
17
+ */
18
+ @DoNotStrip
19
+ @Keep
20
+ data class RNLatLngBounds
21
+ @DoNotStrip
22
+ @Keep
23
+ constructor(
24
+ @DoNotStrip
25
+ @Keep
26
+ val northEast: RNLatLng,
27
+ @DoNotStrip
28
+ @Keep
29
+ val southWest: RNLatLng
30
+ ) {
31
+ /* main constructor */
32
+ }
@@ -0,0 +1,32 @@
1
+ ///
2
+ /// RNSize.kt
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
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
13
+
14
+
15
+ /**
16
+ * Represents the JavaScript object/struct "RNSize".
17
+ */
18
+ @DoNotStrip
19
+ @Keep
20
+ data class RNSize
21
+ @DoNotStrip
22
+ @Keep
23
+ constructor(
24
+ @DoNotStrip
25
+ @Keep
26
+ val width: Double,
27
+ @DoNotStrip
28
+ @Keep
29
+ val height: Double
30
+ ) {
31
+ /* main constructor */
32
+ }
@@ -0,0 +1,22 @@
1
+ ///
2
+ /// RNSnapshotFormat.kt
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
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+ /**
14
+ * Represents the JavaScript enum/union "RNSnapshotFormat".
15
+ */
16
+ @DoNotStrip
17
+ @Keep
18
+ enum class RNSnapshotFormat(@DoNotStrip @Keep val value: Int) {
19
+ PNG(0),
20
+ JPG(1),
21
+ JPEG(2);
22
+ }
@@ -0,0 +1,38 @@
1
+ ///
2
+ /// RNSnapshotOptions.kt
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
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.*
13
+
14
+
15
+ /**
16
+ * Represents the JavaScript object/struct "RNSnapshotOptions".
17
+ */
18
+ @DoNotStrip
19
+ @Keep
20
+ data class RNSnapshotOptions
21
+ @DoNotStrip
22
+ @Keep
23
+ constructor(
24
+ @DoNotStrip
25
+ @Keep
26
+ val size: RNSize?,
27
+ @DoNotStrip
28
+ @Keep
29
+ val format: RNSnapshotFormat,
30
+ @DoNotStrip
31
+ @Keep
32
+ val quality: Double,
33
+ @DoNotStrip
34
+ @Keep
35
+ val resultType: RNSnapshotResultType
36
+ ) {
37
+ /* main constructor */
38
+ }
@@ -0,0 +1,21 @@
1
+ ///
2
+ /// RNSnapshotResultType.kt
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
+ package com.rngooglemapsplus
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+ /**
14
+ * Represents the JavaScript enum/union "RNSnapshotResultType".
15
+ */
16
+ @DoNotStrip
17
+ @Keep
18
+ enum class RNSnapshotResultType(@DoNotStrip @Keep val value: Int) {
19
+ BASE64(0),
20
+ FILE(1);
21
+ }
@@ -102,6 +102,22 @@ namespace margelo::nitro::rngooglemapsplus::bridge::swift {
102
102
  };
103
103
  }
104
104
 
105
+ // pragma MARK: std::function<void(const RNIndoorBuilding& /* indoorBuilding */)>
106
+ Func_void_RNIndoorBuilding create_Func_void_RNIndoorBuilding(void* _Nonnull swiftClosureWrapper) noexcept {
107
+ auto swiftClosure = RNGoogleMapsPlus::Func_void_RNIndoorBuilding::fromUnsafe(swiftClosureWrapper);
108
+ return [swiftClosure = std::move(swiftClosure)](const RNIndoorBuilding& indoorBuilding) mutable -> void {
109
+ swiftClosure.call(indoorBuilding);
110
+ };
111
+ }
112
+
113
+ // pragma MARK: std::function<void(const RNIndoorLevel& /* indoorLevel */)>
114
+ Func_void_RNIndoorLevel create_Func_void_RNIndoorLevel(void* _Nonnull swiftClosureWrapper) noexcept {
115
+ auto swiftClosure = RNGoogleMapsPlus::Func_void_RNIndoorLevel::fromUnsafe(swiftClosureWrapper);
116
+ return [swiftClosure = std::move(swiftClosure)](const RNIndoorLevel& indoorLevel) mutable -> void {
117
+ swiftClosure.call(indoorLevel);
118
+ };
119
+ }
120
+
105
121
  // pragma MARK: std::function<void(const RNRegion& /* region */, const RNCamera& /* camera */, bool /* isGesture */)>
106
122
  Func_void_RNRegion_RNCamera_bool create_Func_void_RNRegion_RNCamera_bool(void* _Nonnull swiftClosureWrapper) noexcept {
107
123
  auto swiftClosure = RNGoogleMapsPlus::Func_void_RNRegion_RNCamera_bool::fromUnsafe(swiftClosureWrapper);