react-native-nitro-geolocation 1.2.6 → 1.3.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.
- package/README.md +52 -295
- package/android/build.gradle +1 -0
- package/android/src/main/AndroidManifest.xml +39 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/AndroidFusedLocationProvider.kt +310 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/AndroidFusedRequestFactory.kt +31 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/AndroidGeolocationConversions.kt +71 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/AndroidGeolocationErrors.kt +85 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/AndroidGeolocationOptions.kt +92 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/AndroidLocationSettings.kt +3 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/AndroidProviderRoute.kt +74 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/NitroBackgroundLocation.kt +132 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/NitroGeolocation.kt +219 -476
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/background/AndroidBackgroundHttpSync.kt +134 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/background/AndroidBackgroundPermissions.kt +196 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/background/AndroidBackgroundSerialization.kt +266 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/background/NitroActivityRecognitionReceiver.kt +13 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/background/NitroBackgroundEventHub.kt +65 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/background/NitroBackgroundHeadlessTaskService.kt +58 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/background/NitroBackgroundLocationController.kt +710 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/background/NitroBackgroundLocationService.kt +48 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/background/NitroBackgroundNotificationFactory.kt +37 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/background/NitroBackgroundStore.kt +655 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/background/NitroBootReceiver.kt +26 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/background/NitroGeofenceReceiver.kt +14 -0
- package/android/src/main/java/com/margelo/nitro/nitrogeolocation/background/NitroLocationUpdateReceiver.kt +37 -0
- package/android/src/test/java/com/margelo/nitro/nitrogeolocation/AndroidFusedLocationProviderTest.kt +64 -0
- package/android/src/test/java/com/margelo/nitro/nitrogeolocation/AndroidProviderRouteTest.kt +116 -0
- package/ios/IOSBackgroundHttpSync.swift +126 -0
- package/ios/IOSBackgroundLocationDelegate.swift +36 -0
- package/ios/IOSBackgroundMotion.swift +55 -0
- package/ios/IOSBackgroundSerialization.swift +539 -0
- package/ios/IOSGeolocationConversions.swift +131 -0
- package/ios/IOSGeolocationDelegate.swift +31 -0
- package/ios/IOSGeolocationErrors.swift +39 -0
- package/ios/IOSGeolocationOptions.swift +135 -0
- package/ios/NitroBackgroundLocation.swift +849 -0
- package/ios/NitroGeolocation.swift +14 -347
- package/nitrogen/generated/android/c++/JActivityRecognitionOptions.hpp +69 -0
- package/nitrogen/generated/android/c++/JAndroidBackgroundLocationOptions.hpp +74 -0
- package/nitrogen/generated/android/c++/JAndroidBackgroundLocationStatus.hpp +67 -0
- package/nitrogen/generated/android/c++/JAndroidBackgroundProvider.hpp +61 -0
- package/nitrogen/generated/android/c++/JAndroidForegroundServiceOptions.hpp +90 -0
- package/nitrogen/generated/android/c++/JBackgroundEventEnvelope.hpp +129 -0
- package/nitrogen/generated/android/c++/JBackgroundEventType.hpp +70 -0
- package/nitrogen/generated/android/c++/JBackgroundHttpMethod.hpp +61 -0
- package/nitrogen/generated/android/c++/JBackgroundHttpSyncOptions.hpp +131 -0
- package/nitrogen/generated/android/c++/JBackgroundHttpSyncResult.hpp +111 -0
- package/nitrogen/generated/android/c++/JBackgroundLocation.hpp +110 -0
- package/nitrogen/generated/android/c++/JBackgroundLocationOptions.hpp +162 -0
- package/nitrogen/generated/android/c++/JBackgroundLocationSource.hpp +73 -0
- package/nitrogen/generated/android/c++/JBackgroundLocationState.hpp +70 -0
- package/nitrogen/generated/android/c++/JBackgroundLocationStatus.hpp +126 -0
- package/nitrogen/generated/android/c++/JBackgroundPermissionResult.hpp +79 -0
- package/nitrogen/generated/android/c++/JBackgroundPermissionStatus.hpp +64 -0
- package/nitrogen/generated/android/c++/JBackgroundTrackingMode.hpp +61 -0
- package/nitrogen/generated/android/c++/JBatterySnapshot.hpp +61 -0
- package/nitrogen/generated/android/c++/JDetectedActivity.hpp +66 -0
- package/nitrogen/generated/android/c++/JDetectedActivityType.hpp +76 -0
- package/nitrogen/generated/android/c++/JFunc_void_BackgroundEventEnvelope.hpp +114 -0
- package/nitrogen/generated/android/c++/JFunc_void_BackgroundLocation.hpp +95 -0
- package/nitrogen/generated/android/c++/JGeofenceEvent.hpp +94 -0
- package/nitrogen/generated/android/c++/JGeofenceRegion.hpp +112 -0
- package/nitrogen/generated/android/c++/JGeofenceTransition.hpp +61 -0
- package/nitrogen/generated/android/c++/JGeofencingOptions.hpp +82 -0
- package/nitrogen/generated/android/c++/JGetStoredBackgroundEventsOptions.hpp +90 -0
- package/nitrogen/generated/android/c++/JGetStoredBackgroundLocationsOptions.hpp +69 -0
- package/nitrogen/generated/android/c++/JHybridNitroBackgroundLocationSpec.cpp +662 -0
- package/nitrogen/generated/android/c++/JHybridNitroBackgroundLocationSpec.hpp +89 -0
- package/nitrogen/generated/android/c++/JIOSBackgroundActivityType.hpp +67 -0
- package/nitrogen/generated/android/c++/JIOSBackgroundLocationOptions.hpp +79 -0
- package/nitrogen/generated/android/c++/JIOSBackgroundLocationStatus.hpp +61 -0
- package/nitrogen/generated/android/c++/JLocationProviderStatus.hpp +5 -1
- package/nitrogen/generated/android/c++/JStoredBackgroundEventEnvelope.hpp +115 -0
- package/nitrogen/generated/android/c++/JStoredBackgroundLocation.hpp +122 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_Boolean_String_Double.cpp +34 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_Boolean_String_Double.hpp +100 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/ActivityRecognitionOptions.kt +66 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/AndroidBackgroundLocationOptions.kt +66 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/AndroidBackgroundLocationStatus.kt +61 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/AndroidBackgroundProvider.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/AndroidForegroundServiceOptions.kt +91 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/BackgroundEventEnvelope.kt +96 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/BackgroundEventType.kt +27 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/BackgroundHttpMethod.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/BackgroundHttpSyncOptions.kt +101 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/BackgroundHttpSyncResult.kt +71 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/BackgroundLocation.kt +96 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/BackgroundLocationOptions.kt +136 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/BackgroundLocationSource.kt +28 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/BackgroundLocationState.kt +27 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/BackgroundLocationStatus.kt +116 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/BackgroundPermissionResult.kt +71 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/BackgroundPermissionStatus.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/BackgroundTrackingMode.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/BatterySnapshot.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/DetectedActivity.kt +61 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/DetectedActivityType.kt +29 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/Func_void_BackgroundEventEnvelope.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/Func_void_BackgroundLocation.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/GeofenceEvent.kt +66 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/GeofenceRegion.kt +96 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/GeofenceTransition.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/GeofencingOptions.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/GetStoredBackgroundEventsOptions.kt +66 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/GetStoredBackgroundLocationsOptions.kt +66 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/HybridNitroBackgroundLocationSpec.kt +174 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/IOSBackgroundActivityType.kt +26 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/IOSBackgroundLocationOptions.kt +76 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/IOSBackgroundLocationStatus.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/LocationProviderStatus.kt +7 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/StoredBackgroundEventEnvelope.kt +76 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/StoredBackgroundLocation.kt +111 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/Variant_NullType_Boolean_String_Double.kt +88 -0
- package/nitrogen/generated/android/nitrogeolocation+autolinking.cmake +3 -0
- package/nitrogen/generated/android/nitrogeolocationOnLoad.cpp +20 -0
- package/nitrogen/generated/ios/NitroGeolocation-Swift-Cxx-Bridge.cpp +104 -15
- package/nitrogen/generated/ios/NitroGeolocation-Swift-Cxx-Bridge.hpp +1107 -50
- package/nitrogen/generated/ios/NitroGeolocation-Swift-Cxx-Umbrella.hpp +102 -0
- package/nitrogen/generated/ios/NitroGeolocationAutolinking.mm +8 -0
- package/nitrogen/generated/ios/NitroGeolocationAutolinking.swift +15 -3
- package/nitrogen/generated/ios/c++/HybridNitroBackgroundLocationSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridNitroBackgroundLocationSpecSwift.hpp +416 -0
- package/nitrogen/generated/ios/swift/ActivityRecognitionOptions.swift +96 -0
- package/nitrogen/generated/ios/swift/AndroidBackgroundLocationOptions.swift +76 -0
- package/nitrogen/generated/ios/swift/AndroidBackgroundLocationStatus.swift +58 -0
- package/nitrogen/generated/ios/swift/AndroidBackgroundProvider.swift +44 -0
- package/nitrogen/generated/ios/swift/AndroidForegroundServiceOptions.swift +160 -0
- package/nitrogen/generated/ios/swift/BackgroundEventEnvelope.swift +110 -0
- package/nitrogen/generated/ios/swift/BackgroundEventType.swift +56 -0
- package/nitrogen/generated/ios/swift/BackgroundHttpMethod.swift +44 -0
- package/nitrogen/generated/ios/swift/BackgroundHttpSyncOptions.swift +259 -0
- package/nitrogen/generated/ios/swift/BackgroundHttpSyncResult.swift +87 -0
- package/nitrogen/generated/ios/swift/BackgroundLocation.swift +118 -0
- package/nitrogen/generated/ios/swift/BackgroundLocationOptions.swift +292 -0
- package/nitrogen/generated/ios/swift/BackgroundLocationSource.swift +60 -0
- package/nitrogen/generated/ios/swift/BackgroundLocationState.swift +56 -0
- package/nitrogen/generated/ios/swift/BackgroundLocationStatus.swift +124 -0
- package/nitrogen/generated/ios/swift/BackgroundPermissionResult.swift +81 -0
- package/nitrogen/generated/ios/swift/BackgroundPermissionStatus.swift +48 -0
- package/nitrogen/generated/ios/swift/BackgroundTrackingMode.swift +44 -0
- package/nitrogen/generated/ios/swift/BatterySnapshot.swift +60 -0
- package/nitrogen/generated/ios/swift/DetectedActivity.swift +39 -0
- package/nitrogen/generated/ios/swift/DetectedActivityType.swift +64 -0
- package/nitrogen/generated/ios/swift/Func_void_BackgroundEventEnvelope.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_BackgroundHttpSyncResult.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_BackgroundLocation.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_BackgroundLocationStatus.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_BackgroundPermissionResult.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__optional_BackgroundLocationOptions_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_GeofenceRegion_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_StoredBackgroundEventEnvelope_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_StoredBackgroundLocation_.swift +46 -0
- package/nitrogen/generated/ios/swift/GeofenceEvent.swift +50 -0
- package/nitrogen/generated/ios/swift/GeofenceRegion.swift +195 -0
- package/nitrogen/generated/ios/swift/GeofenceTransition.swift +44 -0
- package/nitrogen/generated/ios/swift/GeofencingOptions.swift +66 -0
- package/nitrogen/generated/ios/swift/GetStoredBackgroundEventsOptions.swift +102 -0
- package/nitrogen/generated/ios/swift/GetStoredBackgroundLocationsOptions.swift +96 -0
- package/nitrogen/generated/ios/swift/HybridNitroBackgroundLocationSpec.swift +81 -0
- package/nitrogen/generated/ios/swift/HybridNitroBackgroundLocationSpec_cxx.swift +654 -0
- package/nitrogen/generated/ios/swift/IOSBackgroundActivityType.swift +52 -0
- package/nitrogen/generated/ios/swift/IOSBackgroundLocationOptions.swift +125 -0
- package/nitrogen/generated/ios/swift/IOSBackgroundLocationStatus.swift +34 -0
- package/nitrogen/generated/ios/swift/LocationProviderStatus.swift +19 -1
- package/nitrogen/generated/ios/swift/StoredBackgroundEventEnvelope.swift +54 -0
- package/nitrogen/generated/ios/swift/StoredBackgroundLocation.swift +120 -0
- package/nitrogen/generated/ios/swift/Variant_NullType_Bool_String_Double.swift +34 -0
- package/nitrogen/generated/shared/c++/ActivityRecognitionOptions.hpp +95 -0
- package/nitrogen/generated/shared/c++/AndroidBackgroundLocationOptions.hpp +100 -0
- package/nitrogen/generated/shared/c++/AndroidBackgroundLocationStatus.hpp +93 -0
- package/nitrogen/generated/shared/c++/AndroidBackgroundProvider.hpp +80 -0
- package/nitrogen/generated/shared/c++/AndroidForegroundServiceOptions.hpp +116 -0
- package/nitrogen/generated/shared/c++/BackgroundEventEnvelope.hpp +140 -0
- package/nitrogen/generated/shared/c++/BackgroundEventType.hpp +92 -0
- package/nitrogen/generated/shared/c++/BackgroundHttpMethod.hpp +80 -0
- package/nitrogen/generated/shared/c++/BackgroundHttpSyncOptions.hpp +129 -0
- package/nitrogen/generated/shared/c++/BackgroundHttpSyncResult.hpp +101 -0
- package/nitrogen/generated/shared/c++/BackgroundLocation.hpp +134 -0
- package/nitrogen/generated/shared/c++/BackgroundLocationOptions.hpp +174 -0
- package/nitrogen/generated/shared/c++/BackgroundLocationSource.hpp +96 -0
- package/nitrogen/generated/shared/c++/BackgroundLocationState.hpp +92 -0
- package/nitrogen/generated/shared/c++/BackgroundLocationStatus.hpp +158 -0
- package/nitrogen/generated/shared/c++/BackgroundPermissionResult.hpp +107 -0
- package/nitrogen/generated/shared/c++/BackgroundPermissionStatus.hpp +84 -0
- package/nitrogen/generated/shared/c++/BackgroundTrackingMode.hpp +80 -0
- package/nitrogen/generated/shared/c++/BatterySnapshot.hpp +87 -0
- package/nitrogen/generated/shared/c++/DetectedActivity.hpp +92 -0
- package/nitrogen/generated/shared/c++/DetectedActivityType.hpp +100 -0
- package/nitrogen/generated/shared/c++/GeofenceEvent.hpp +103 -0
- package/nitrogen/generated/shared/c++/GeofenceRegion.hpp +123 -0
- package/nitrogen/generated/shared/c++/GeofenceTransition.hpp +80 -0
- package/nitrogen/generated/shared/c++/GeofencingOptions.hpp +90 -0
- package/nitrogen/generated/shared/c++/GetStoredBackgroundEventsOptions.hpp +98 -0
- package/nitrogen/generated/shared/c++/GetStoredBackgroundLocationsOptions.hpp +95 -0
- package/nitrogen/generated/shared/c++/HybridNitroBackgroundLocationSpec.cpp +47 -0
- package/nitrogen/generated/shared/c++/HybridNitroBackgroundLocationSpec.hpp +133 -0
- package/nitrogen/generated/shared/c++/IOSBackgroundActivityType.hpp +88 -0
- package/nitrogen/generated/shared/c++/IOSBackgroundLocationOptions.hpp +105 -0
- package/nitrogen/generated/shared/c++/IOSBackgroundLocationStatus.hpp +87 -0
- package/nitrogen/generated/shared/c++/LocationProviderStatus.hpp +5 -1
- package/nitrogen/generated/shared/c++/StoredBackgroundEventEnvelope.hpp +108 -0
- package/nitrogen/generated/shared/c++/StoredBackgroundLocation.hpp +146 -0
- package/package.json +17 -6
- package/src/NitroGeolocation.nitro.ts +4 -4
- package/src/api/getCurrentPosition.ts +1 -1
- package/src/api/requestLocationSettings.ts +3 -2
- package/src/background/NitroBackgroundLocation.nitro.ts +83 -0
- package/src/background/index.ts +200 -0
- package/src/background/index.web.ts +120 -0
- package/src/background/task.ts +13 -0
- package/src/background/types.ts +328 -0
- package/src/compat/index.web.ts +141 -0
- package/src/index.tsx +3 -0
- package/src/index.web.tsx +41 -0
- package/src/publicTypes.ts +6 -5
- package/src/types.ts +3 -0
- package/src/web/browser.ts +171 -0
- package/src/web/index.ts +167 -0
- package/src/web/useWatchPosition.ts +76 -0
- package/src/web/watch.ts +81 -0
- package/src/devtools/index.test.ts +0 -54
- package/src/utils/errors.test.ts +0 -65
- package/src/utils/provider.test.ts +0 -303
|
@@ -10,26 +10,82 @@
|
|
|
10
10
|
// Forward declarations of C++ defined types
|
|
11
11
|
// Forward declaration of `AccuracyAuthorization` to properly resolve imports.
|
|
12
12
|
namespace margelo::nitro::nitrogeolocation { enum class AccuracyAuthorization; }
|
|
13
|
+
// Forward declaration of `ActivityRecognitionOptions` to properly resolve imports.
|
|
14
|
+
namespace margelo::nitro::nitrogeolocation { struct ActivityRecognitionOptions; }
|
|
13
15
|
// Forward declaration of `AndroidAccuracyPreset` to properly resolve imports.
|
|
14
16
|
namespace margelo::nitro::nitrogeolocation { enum class AndroidAccuracyPreset; }
|
|
17
|
+
// Forward declaration of `AndroidBackgroundLocationOptions` to properly resolve imports.
|
|
18
|
+
namespace margelo::nitro::nitrogeolocation { struct AndroidBackgroundLocationOptions; }
|
|
19
|
+
// Forward declaration of `AndroidBackgroundLocationStatus` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::nitrogeolocation { struct AndroidBackgroundLocationStatus; }
|
|
21
|
+
// Forward declaration of `AndroidBackgroundProvider` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::nitrogeolocation { enum class AndroidBackgroundProvider; }
|
|
23
|
+
// Forward declaration of `AndroidForegroundServiceOptions` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::nitrogeolocation { struct AndroidForegroundServiceOptions; }
|
|
15
25
|
// Forward declaration of `AndroidGranularity` to properly resolve imports.
|
|
16
26
|
namespace margelo::nitro::nitrogeolocation { enum class AndroidGranularity; }
|
|
17
27
|
// Forward declaration of `AuthorizationLevelInternal` to properly resolve imports.
|
|
18
28
|
namespace margelo::nitro::nitrogeolocation { enum class AuthorizationLevelInternal; }
|
|
19
29
|
// Forward declaration of `AuthorizationLevel` to properly resolve imports.
|
|
20
30
|
namespace margelo::nitro::nitrogeolocation { enum class AuthorizationLevel; }
|
|
31
|
+
// Forward declaration of `BackgroundEventEnvelope` to properly resolve imports.
|
|
32
|
+
namespace margelo::nitro::nitrogeolocation { struct BackgroundEventEnvelope; }
|
|
33
|
+
// Forward declaration of `BackgroundEventType` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::nitrogeolocation { enum class BackgroundEventType; }
|
|
35
|
+
// Forward declaration of `BackgroundHttpMethod` to properly resolve imports.
|
|
36
|
+
namespace margelo::nitro::nitrogeolocation { enum class BackgroundHttpMethod; }
|
|
37
|
+
// Forward declaration of `BackgroundHttpSyncOptions` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::nitrogeolocation { struct BackgroundHttpSyncOptions; }
|
|
39
|
+
// Forward declaration of `BackgroundHttpSyncResult` to properly resolve imports.
|
|
40
|
+
namespace margelo::nitro::nitrogeolocation { struct BackgroundHttpSyncResult; }
|
|
41
|
+
// Forward declaration of `BackgroundLocationOptions` to properly resolve imports.
|
|
42
|
+
namespace margelo::nitro::nitrogeolocation { struct BackgroundLocationOptions; }
|
|
43
|
+
// Forward declaration of `BackgroundLocationSource` to properly resolve imports.
|
|
44
|
+
namespace margelo::nitro::nitrogeolocation { enum class BackgroundLocationSource; }
|
|
45
|
+
// Forward declaration of `BackgroundLocationState` to properly resolve imports.
|
|
46
|
+
namespace margelo::nitro::nitrogeolocation { enum class BackgroundLocationState; }
|
|
47
|
+
// Forward declaration of `BackgroundLocationStatus` to properly resolve imports.
|
|
48
|
+
namespace margelo::nitro::nitrogeolocation { struct BackgroundLocationStatus; }
|
|
49
|
+
// Forward declaration of `BackgroundLocation` to properly resolve imports.
|
|
50
|
+
namespace margelo::nitro::nitrogeolocation { struct BackgroundLocation; }
|
|
51
|
+
// Forward declaration of `BackgroundPermissionResult` to properly resolve imports.
|
|
52
|
+
namespace margelo::nitro::nitrogeolocation { struct BackgroundPermissionResult; }
|
|
53
|
+
// Forward declaration of `BackgroundPermissionStatus` to properly resolve imports.
|
|
54
|
+
namespace margelo::nitro::nitrogeolocation { enum class BackgroundPermissionStatus; }
|
|
55
|
+
// Forward declaration of `BackgroundTrackingMode` to properly resolve imports.
|
|
56
|
+
namespace margelo::nitro::nitrogeolocation { enum class BackgroundTrackingMode; }
|
|
57
|
+
// Forward declaration of `BatterySnapshot` to properly resolve imports.
|
|
58
|
+
namespace margelo::nitro::nitrogeolocation { struct BatterySnapshot; }
|
|
21
59
|
// Forward declaration of `CompatGeolocationError` to properly resolve imports.
|
|
22
60
|
namespace margelo::nitro::nitrogeolocation { struct CompatGeolocationError; }
|
|
23
61
|
// Forward declaration of `CompatGeolocationResponse` to properly resolve imports.
|
|
24
62
|
namespace margelo::nitro::nitrogeolocation { struct CompatGeolocationResponse; }
|
|
63
|
+
// Forward declaration of `DetectedActivityType` to properly resolve imports.
|
|
64
|
+
namespace margelo::nitro::nitrogeolocation { enum class DetectedActivityType; }
|
|
65
|
+
// Forward declaration of `DetectedActivity` to properly resolve imports.
|
|
66
|
+
namespace margelo::nitro::nitrogeolocation { struct DetectedActivity; }
|
|
25
67
|
// Forward declaration of `GeocodedLocation` to properly resolve imports.
|
|
26
68
|
namespace margelo::nitro::nitrogeolocation { struct GeocodedLocation; }
|
|
69
|
+
// Forward declaration of `GeofenceEvent` to properly resolve imports.
|
|
70
|
+
namespace margelo::nitro::nitrogeolocation { struct GeofenceEvent; }
|
|
71
|
+
// Forward declaration of `GeofenceRegion` to properly resolve imports.
|
|
72
|
+
namespace margelo::nitro::nitrogeolocation { struct GeofenceRegion; }
|
|
73
|
+
// Forward declaration of `GeofenceTransition` to properly resolve imports.
|
|
74
|
+
namespace margelo::nitro::nitrogeolocation { enum class GeofenceTransition; }
|
|
75
|
+
// Forward declaration of `GeofencingOptions` to properly resolve imports.
|
|
76
|
+
namespace margelo::nitro::nitrogeolocation { struct GeofencingOptions; }
|
|
27
77
|
// Forward declaration of `GeolocationCoordinates` to properly resolve imports.
|
|
28
78
|
namespace margelo::nitro::nitrogeolocation { struct GeolocationCoordinates; }
|
|
29
79
|
// Forward declaration of `GeolocationResponse` to properly resolve imports.
|
|
30
80
|
namespace margelo::nitro::nitrogeolocation { struct GeolocationResponse; }
|
|
81
|
+
// Forward declaration of `GetStoredBackgroundEventsOptions` to properly resolve imports.
|
|
82
|
+
namespace margelo::nitro::nitrogeolocation { struct GetStoredBackgroundEventsOptions; }
|
|
83
|
+
// Forward declaration of `GetStoredBackgroundLocationsOptions` to properly resolve imports.
|
|
84
|
+
namespace margelo::nitro::nitrogeolocation { struct GetStoredBackgroundLocationsOptions; }
|
|
31
85
|
// Forward declaration of `Heading` to properly resolve imports.
|
|
32
86
|
namespace margelo::nitro::nitrogeolocation { struct Heading; }
|
|
87
|
+
// Forward declaration of `HybridNitroBackgroundLocationSpec` to properly resolve imports.
|
|
88
|
+
namespace margelo::nitro::nitrogeolocation { class HybridNitroBackgroundLocationSpec; }
|
|
33
89
|
// Forward declaration of `HybridNitroGeolocationCompatSpec` to properly resolve imports.
|
|
34
90
|
namespace margelo::nitro::nitrogeolocation { class HybridNitroGeolocationCompatSpec; }
|
|
35
91
|
// Forward declaration of `HybridNitroGeolocationSpec` to properly resolve imports.
|
|
@@ -38,6 +94,12 @@ namespace margelo::nitro::nitrogeolocation { class HybridNitroGeolocationSpec; }
|
|
|
38
94
|
namespace margelo::nitro::nitrogeolocation { enum class IOSAccuracyPreset; }
|
|
39
95
|
// Forward declaration of `IOSActivityType` to properly resolve imports.
|
|
40
96
|
namespace margelo::nitro::nitrogeolocation { enum class IOSActivityType; }
|
|
97
|
+
// Forward declaration of `IOSBackgroundActivityType` to properly resolve imports.
|
|
98
|
+
namespace margelo::nitro::nitrogeolocation { enum class IOSBackgroundActivityType; }
|
|
99
|
+
// Forward declaration of `IOSBackgroundLocationOptions` to properly resolve imports.
|
|
100
|
+
namespace margelo::nitro::nitrogeolocation { struct IOSBackgroundLocationOptions; }
|
|
101
|
+
// Forward declaration of `IOSBackgroundLocationStatus` to properly resolve imports.
|
|
102
|
+
namespace margelo::nitro::nitrogeolocation { struct IOSBackgroundLocationStatus; }
|
|
41
103
|
// Forward declaration of `LocationAccuracyOptions` to properly resolve imports.
|
|
42
104
|
namespace margelo::nitro::nitrogeolocation { struct LocationAccuracyOptions; }
|
|
43
105
|
// Forward declaration of `LocationAvailability` to properly resolve imports.
|
|
@@ -56,8 +118,14 @@ namespace margelo::nitro::nitrogeolocation { enum class LocationProvider; }
|
|
|
56
118
|
namespace margelo::nitro::nitrogeolocation { enum class PermissionStatus; }
|
|
57
119
|
// Forward declaration of `ReverseGeocodedAddress` to properly resolve imports.
|
|
58
120
|
namespace margelo::nitro::nitrogeolocation { struct ReverseGeocodedAddress; }
|
|
121
|
+
// Forward declaration of `StoredBackgroundEventEnvelope` to properly resolve imports.
|
|
122
|
+
namespace margelo::nitro::nitrogeolocation { struct StoredBackgroundEventEnvelope; }
|
|
123
|
+
// Forward declaration of `StoredBackgroundLocation` to properly resolve imports.
|
|
124
|
+
namespace margelo::nitro::nitrogeolocation { struct StoredBackgroundLocation; }
|
|
59
125
|
|
|
60
126
|
// Forward declarations of Swift defined types
|
|
127
|
+
// Forward declaration of `HybridNitroBackgroundLocationSpec_cxx` to properly resolve imports.
|
|
128
|
+
namespace NitroGeolocation { class HybridNitroBackgroundLocationSpec_cxx; }
|
|
61
129
|
// Forward declaration of `HybridNitroGeolocationCompatSpec_cxx` to properly resolve imports.
|
|
62
130
|
namespace NitroGeolocation { class HybridNitroGeolocationCompatSpec_cxx; }
|
|
63
131
|
// Forward declaration of `HybridNitroGeolocationSpec_cxx` to properly resolve imports.
|
|
@@ -65,20 +133,51 @@ namespace NitroGeolocation { class HybridNitroGeolocationSpec_cxx; }
|
|
|
65
133
|
|
|
66
134
|
// Include C++ defined types
|
|
67
135
|
#include "AccuracyAuthorization.hpp"
|
|
136
|
+
#include "ActivityRecognitionOptions.hpp"
|
|
68
137
|
#include "AndroidAccuracyPreset.hpp"
|
|
138
|
+
#include "AndroidBackgroundLocationOptions.hpp"
|
|
139
|
+
#include "AndroidBackgroundLocationStatus.hpp"
|
|
140
|
+
#include "AndroidBackgroundProvider.hpp"
|
|
141
|
+
#include "AndroidForegroundServiceOptions.hpp"
|
|
69
142
|
#include "AndroidGranularity.hpp"
|
|
70
143
|
#include "AuthorizationLevel.hpp"
|
|
71
144
|
#include "AuthorizationLevelInternal.hpp"
|
|
145
|
+
#include "BackgroundEventEnvelope.hpp"
|
|
146
|
+
#include "BackgroundEventType.hpp"
|
|
147
|
+
#include "BackgroundHttpMethod.hpp"
|
|
148
|
+
#include "BackgroundHttpSyncOptions.hpp"
|
|
149
|
+
#include "BackgroundHttpSyncResult.hpp"
|
|
150
|
+
#include "BackgroundLocation.hpp"
|
|
151
|
+
#include "BackgroundLocationOptions.hpp"
|
|
152
|
+
#include "BackgroundLocationSource.hpp"
|
|
153
|
+
#include "BackgroundLocationState.hpp"
|
|
154
|
+
#include "BackgroundLocationStatus.hpp"
|
|
155
|
+
#include "BackgroundPermissionResult.hpp"
|
|
156
|
+
#include "BackgroundPermissionStatus.hpp"
|
|
157
|
+
#include "BackgroundTrackingMode.hpp"
|
|
158
|
+
#include "BatterySnapshot.hpp"
|
|
72
159
|
#include "CompatGeolocationError.hpp"
|
|
73
160
|
#include "CompatGeolocationResponse.hpp"
|
|
161
|
+
#include "DetectedActivity.hpp"
|
|
162
|
+
#include "DetectedActivityType.hpp"
|
|
74
163
|
#include "GeocodedLocation.hpp"
|
|
164
|
+
#include "GeofenceEvent.hpp"
|
|
165
|
+
#include "GeofenceRegion.hpp"
|
|
166
|
+
#include "GeofenceTransition.hpp"
|
|
167
|
+
#include "GeofencingOptions.hpp"
|
|
75
168
|
#include "GeolocationCoordinates.hpp"
|
|
76
169
|
#include "GeolocationResponse.hpp"
|
|
170
|
+
#include "GetStoredBackgroundEventsOptions.hpp"
|
|
171
|
+
#include "GetStoredBackgroundLocationsOptions.hpp"
|
|
77
172
|
#include "Heading.hpp"
|
|
173
|
+
#include "HybridNitroBackgroundLocationSpec.hpp"
|
|
78
174
|
#include "HybridNitroGeolocationCompatSpec.hpp"
|
|
79
175
|
#include "HybridNitroGeolocationSpec.hpp"
|
|
80
176
|
#include "IOSAccuracyPreset.hpp"
|
|
81
177
|
#include "IOSActivityType.hpp"
|
|
178
|
+
#include "IOSBackgroundActivityType.hpp"
|
|
179
|
+
#include "IOSBackgroundLocationOptions.hpp"
|
|
180
|
+
#include "IOSBackgroundLocationStatus.hpp"
|
|
82
181
|
#include "LocationAccuracyOptions.hpp"
|
|
83
182
|
#include "LocationAvailability.hpp"
|
|
84
183
|
#include "LocationError.hpp"
|
|
@@ -88,6 +187,8 @@ namespace NitroGeolocation { class HybridNitroGeolocationSpec_cxx; }
|
|
|
88
187
|
#include "LocationProviderUsed.hpp"
|
|
89
188
|
#include "PermissionStatus.hpp"
|
|
90
189
|
#include "ReverseGeocodedAddress.hpp"
|
|
190
|
+
#include "StoredBackgroundEventEnvelope.hpp"
|
|
191
|
+
#include "StoredBackgroundLocation.hpp"
|
|
91
192
|
#include <NitroModules/Null.hpp>
|
|
92
193
|
#include <NitroModules/Promise.hpp>
|
|
93
194
|
#include <NitroModules/PromiseHolder.hpp>
|
|
@@ -97,6 +198,7 @@ namespace NitroGeolocation { class HybridNitroGeolocationSpec_cxx; }
|
|
|
97
198
|
#include <memory>
|
|
98
199
|
#include <optional>
|
|
99
200
|
#include <string>
|
|
201
|
+
#include <unordered_map>
|
|
100
202
|
#include <variant>
|
|
101
203
|
#include <vector>
|
|
102
204
|
|
|
@@ -120,7 +222,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
120
222
|
inline bool get_std__optional_bool_(const std::optional<bool>& optional) noexcept {
|
|
121
223
|
return optional.value();
|
|
122
224
|
}
|
|
123
|
-
|
|
225
|
+
|
|
124
226
|
// pragma MARK: std::optional<AuthorizationLevel>
|
|
125
227
|
/**
|
|
126
228
|
* Specialized version of `std::optional<AuthorizationLevel>`.
|
|
@@ -135,7 +237,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
135
237
|
inline AuthorizationLevel get_std__optional_AuthorizationLevel_(const std::optional<AuthorizationLevel>& optional) noexcept {
|
|
136
238
|
return optional.value();
|
|
137
239
|
}
|
|
138
|
-
|
|
240
|
+
|
|
139
241
|
// pragma MARK: std::optional<LocationProvider>
|
|
140
242
|
/**
|
|
141
243
|
* Specialized version of `std::optional<LocationProvider>`.
|
|
@@ -150,7 +252,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
150
252
|
inline LocationProvider get_std__optional_LocationProvider_(const std::optional<LocationProvider>& optional) noexcept {
|
|
151
253
|
return optional.value();
|
|
152
254
|
}
|
|
153
|
-
|
|
255
|
+
|
|
154
256
|
// pragma MARK: std::shared_ptr<Promise<PermissionStatus>>
|
|
155
257
|
/**
|
|
156
258
|
* Specialized version of `std::shared_ptr<Promise<PermissionStatus>>`.
|
|
@@ -162,7 +264,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
162
264
|
inline PromiseHolder<PermissionStatus> wrap_std__shared_ptr_Promise_PermissionStatus__(std::shared_ptr<Promise<PermissionStatus>> promise) noexcept {
|
|
163
265
|
return PromiseHolder<PermissionStatus>(std::move(promise));
|
|
164
266
|
}
|
|
165
|
-
|
|
267
|
+
|
|
166
268
|
// pragma MARK: std::function<void(PermissionStatus /* result */)>
|
|
167
269
|
/**
|
|
168
270
|
* Specialized version of `std::function<void(PermissionStatus)>`.
|
|
@@ -184,7 +286,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
184
286
|
inline Func_void_PermissionStatus_Wrapper wrap_Func_void_PermissionStatus(Func_void_PermissionStatus value) noexcept {
|
|
185
287
|
return Func_void_PermissionStatus_Wrapper(std::move(value));
|
|
186
288
|
}
|
|
187
|
-
|
|
289
|
+
|
|
188
290
|
// pragma MARK: std::function<void(const std::exception_ptr& /* error */)>
|
|
189
291
|
/**
|
|
190
292
|
* Specialized version of `std::function<void(const std::exception_ptr&)>`.
|
|
@@ -206,7 +308,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
206
308
|
inline Func_void_std__exception_ptr_Wrapper wrap_Func_void_std__exception_ptr(Func_void_std__exception_ptr value) noexcept {
|
|
207
309
|
return Func_void_std__exception_ptr_Wrapper(std::move(value));
|
|
208
310
|
}
|
|
209
|
-
|
|
311
|
+
|
|
210
312
|
// pragma MARK: std::function<void(const LocationError& /* error */)>
|
|
211
313
|
/**
|
|
212
314
|
* Specialized version of `std::function<void(const LocationError&)>`.
|
|
@@ -228,7 +330,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
228
330
|
inline Func_void_LocationError_Wrapper wrap_Func_void_LocationError(Func_void_LocationError value) noexcept {
|
|
229
331
|
return Func_void_LocationError_Wrapper(std::move(value));
|
|
230
332
|
}
|
|
231
|
-
|
|
333
|
+
|
|
232
334
|
// pragma MARK: std::optional<std::function<void(const LocationError& /* error */)>>
|
|
233
335
|
/**
|
|
234
336
|
* Specialized version of `std::optional<std::function<void(const LocationError& / * error * /)>>`.
|
|
@@ -243,7 +345,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
243
345
|
inline std::function<void(const LocationError& /* error */)> get_std__optional_std__function_void_const_LocationError_____error______(const std::optional<std::function<void(const LocationError& /* error */)>>& optional) noexcept {
|
|
244
346
|
return optional.value();
|
|
245
347
|
}
|
|
246
|
-
|
|
348
|
+
|
|
247
349
|
// pragma MARK: std::shared_ptr<Promise<bool>>
|
|
248
350
|
/**
|
|
249
351
|
* Specialized version of `std::shared_ptr<Promise<bool>>`.
|
|
@@ -255,7 +357,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
255
357
|
inline PromiseHolder<bool> wrap_std__shared_ptr_Promise_bool__(std::shared_ptr<Promise<bool>> promise) noexcept {
|
|
256
358
|
return PromiseHolder<bool>(std::move(promise));
|
|
257
359
|
}
|
|
258
|
-
|
|
360
|
+
|
|
259
361
|
// pragma MARK: std::function<void(bool /* result */)>
|
|
260
362
|
/**
|
|
261
363
|
* Specialized version of `std::function<void(bool)>`.
|
|
@@ -277,7 +379,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
277
379
|
inline Func_void_bool_Wrapper wrap_Func_void_bool(Func_void_bool value) noexcept {
|
|
278
380
|
return Func_void_bool_Wrapper(std::move(value));
|
|
279
381
|
}
|
|
280
|
-
|
|
382
|
+
|
|
281
383
|
// pragma MARK: std::shared_ptr<Promise<LocationProviderStatus>>
|
|
282
384
|
/**
|
|
283
385
|
* Specialized version of `std::shared_ptr<Promise<LocationProviderStatus>>`.
|
|
@@ -289,7 +391,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
289
391
|
inline PromiseHolder<LocationProviderStatus> wrap_std__shared_ptr_Promise_LocationProviderStatus__(std::shared_ptr<Promise<LocationProviderStatus>> promise) noexcept {
|
|
290
392
|
return PromiseHolder<LocationProviderStatus>(std::move(promise));
|
|
291
393
|
}
|
|
292
|
-
|
|
394
|
+
|
|
293
395
|
// pragma MARK: std::function<void(const LocationProviderStatus& /* result */)>
|
|
294
396
|
/**
|
|
295
397
|
* Specialized version of `std::function<void(const LocationProviderStatus&)>`.
|
|
@@ -311,7 +413,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
311
413
|
inline Func_void_LocationProviderStatus_Wrapper wrap_Func_void_LocationProviderStatus(Func_void_LocationProviderStatus value) noexcept {
|
|
312
414
|
return Func_void_LocationProviderStatus_Wrapper(std::move(value));
|
|
313
415
|
}
|
|
314
|
-
|
|
416
|
+
|
|
315
417
|
// pragma MARK: std::optional<std::string>
|
|
316
418
|
/**
|
|
317
419
|
* Specialized version of `std::optional<std::string>`.
|
|
@@ -326,7 +428,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
326
428
|
inline std::string get_std__optional_std__string_(const std::optional<std::string>& optional) noexcept {
|
|
327
429
|
return optional.value();
|
|
328
430
|
}
|
|
329
|
-
|
|
431
|
+
|
|
330
432
|
// pragma MARK: std::shared_ptr<Promise<LocationAvailability>>
|
|
331
433
|
/**
|
|
332
434
|
* Specialized version of `std::shared_ptr<Promise<LocationAvailability>>`.
|
|
@@ -338,7 +440,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
338
440
|
inline PromiseHolder<LocationAvailability> wrap_std__shared_ptr_Promise_LocationAvailability__(std::shared_ptr<Promise<LocationAvailability>> promise) noexcept {
|
|
339
441
|
return PromiseHolder<LocationAvailability>(std::move(promise));
|
|
340
442
|
}
|
|
341
|
-
|
|
443
|
+
|
|
342
444
|
// pragma MARK: std::function<void(const LocationAvailability& /* result */)>
|
|
343
445
|
/**
|
|
344
446
|
* Specialized version of `std::function<void(const LocationAvailability&)>`.
|
|
@@ -360,7 +462,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
360
462
|
inline Func_void_LocationAvailability_Wrapper wrap_Func_void_LocationAvailability(Func_void_LocationAvailability value) noexcept {
|
|
361
463
|
return Func_void_LocationAvailability_Wrapper(std::move(value));
|
|
362
464
|
}
|
|
363
|
-
|
|
465
|
+
|
|
364
466
|
// pragma MARK: std::optional<AndroidAccuracyPreset>
|
|
365
467
|
/**
|
|
366
468
|
* Specialized version of `std::optional<AndroidAccuracyPreset>`.
|
|
@@ -375,7 +477,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
375
477
|
inline AndroidAccuracyPreset get_std__optional_AndroidAccuracyPreset_(const std::optional<AndroidAccuracyPreset>& optional) noexcept {
|
|
376
478
|
return optional.value();
|
|
377
479
|
}
|
|
378
|
-
|
|
480
|
+
|
|
379
481
|
// pragma MARK: std::optional<IOSAccuracyPreset>
|
|
380
482
|
/**
|
|
381
483
|
* Specialized version of `std::optional<IOSAccuracyPreset>`.
|
|
@@ -390,7 +492,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
390
492
|
inline IOSAccuracyPreset get_std__optional_IOSAccuracyPreset_(const std::optional<IOSAccuracyPreset>& optional) noexcept {
|
|
391
493
|
return optional.value();
|
|
392
494
|
}
|
|
393
|
-
|
|
495
|
+
|
|
394
496
|
// pragma MARK: std::optional<LocationAccuracyOptions>
|
|
395
497
|
/**
|
|
396
498
|
* Specialized version of `std::optional<LocationAccuracyOptions>`.
|
|
@@ -405,7 +507,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
405
507
|
inline LocationAccuracyOptions get_std__optional_LocationAccuracyOptions_(const std::optional<LocationAccuracyOptions>& optional) noexcept {
|
|
406
508
|
return optional.value();
|
|
407
509
|
}
|
|
408
|
-
|
|
510
|
+
|
|
409
511
|
// pragma MARK: std::optional<double>
|
|
410
512
|
/**
|
|
411
513
|
* Specialized version of `std::optional<double>`.
|
|
@@ -420,7 +522,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
420
522
|
inline double get_std__optional_double_(const std::optional<double>& optional) noexcept {
|
|
421
523
|
return optional.value();
|
|
422
524
|
}
|
|
423
|
-
|
|
525
|
+
|
|
424
526
|
// pragma MARK: std::shared_ptr<Promise<AccuracyAuthorization>>
|
|
425
527
|
/**
|
|
426
528
|
* Specialized version of `std::shared_ptr<Promise<AccuracyAuthorization>>`.
|
|
@@ -432,7 +534,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
432
534
|
inline PromiseHolder<AccuracyAuthorization> wrap_std__shared_ptr_Promise_AccuracyAuthorization__(std::shared_ptr<Promise<AccuracyAuthorization>> promise) noexcept {
|
|
433
535
|
return PromiseHolder<AccuracyAuthorization>(std::move(promise));
|
|
434
536
|
}
|
|
435
|
-
|
|
537
|
+
|
|
436
538
|
// pragma MARK: std::function<void(AccuracyAuthorization /* result */)>
|
|
437
539
|
/**
|
|
438
540
|
* Specialized version of `std::function<void(AccuracyAuthorization)>`.
|
|
@@ -454,7 +556,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
454
556
|
inline Func_void_AccuracyAuthorization_Wrapper wrap_Func_void_AccuracyAuthorization(Func_void_AccuracyAuthorization value) noexcept {
|
|
455
557
|
return Func_void_AccuracyAuthorization_Wrapper(std::move(value));
|
|
456
558
|
}
|
|
457
|
-
|
|
559
|
+
|
|
458
560
|
// pragma MARK: std::variant<nitro::NullType, double>
|
|
459
561
|
/**
|
|
460
562
|
* Wrapper struct for `std::variant<nitro::NullType, double>`.
|
|
@@ -483,7 +585,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
483
585
|
inline std__variant_nitro__NullType__double_ create_std__variant_nitro__NullType__double_(double value) noexcept {
|
|
484
586
|
return std__variant_nitro__NullType__double_(value);
|
|
485
587
|
}
|
|
486
|
-
|
|
588
|
+
|
|
487
589
|
// pragma MARK: std::optional<std::variant<nitro::NullType, double>>
|
|
488
590
|
/**
|
|
489
591
|
* Specialized version of `std::optional<std::variant<nitro::NullType, double>>`.
|
|
@@ -498,7 +600,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
498
600
|
inline std::variant<nitro::NullType, double> get_std__optional_std__variant_nitro__NullType__double__(const std::optional<std::variant<nitro::NullType, double>>& optional) noexcept {
|
|
499
601
|
return optional.value();
|
|
500
602
|
}
|
|
501
|
-
|
|
603
|
+
|
|
502
604
|
// pragma MARK: std::optional<LocationProviderUsed>
|
|
503
605
|
/**
|
|
504
606
|
* Specialized version of `std::optional<LocationProviderUsed>`.
|
|
@@ -513,7 +615,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
513
615
|
inline LocationProviderUsed get_std__optional_LocationProviderUsed_(const std::optional<LocationProviderUsed>& optional) noexcept {
|
|
514
616
|
return optional.value();
|
|
515
617
|
}
|
|
516
|
-
|
|
618
|
+
|
|
517
619
|
// pragma MARK: std::function<void(const GeolocationResponse& /* position */)>
|
|
518
620
|
/**
|
|
519
621
|
* Specialized version of `std::function<void(const GeolocationResponse&)>`.
|
|
@@ -535,7 +637,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
535
637
|
inline Func_void_GeolocationResponse_Wrapper wrap_Func_void_GeolocationResponse(Func_void_GeolocationResponse value) noexcept {
|
|
536
638
|
return Func_void_GeolocationResponse_Wrapper(std::move(value));
|
|
537
639
|
}
|
|
538
|
-
|
|
640
|
+
|
|
539
641
|
// pragma MARK: std::optional<AndroidGranularity>
|
|
540
642
|
/**
|
|
541
643
|
* Specialized version of `std::optional<AndroidGranularity>`.
|
|
@@ -550,7 +652,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
550
652
|
inline AndroidGranularity get_std__optional_AndroidGranularity_(const std::optional<AndroidGranularity>& optional) noexcept {
|
|
551
653
|
return optional.value();
|
|
552
654
|
}
|
|
553
|
-
|
|
655
|
+
|
|
554
656
|
// pragma MARK: std::optional<IOSActivityType>
|
|
555
657
|
/**
|
|
556
658
|
* Specialized version of `std::optional<IOSActivityType>`.
|
|
@@ -565,7 +667,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
565
667
|
inline IOSActivityType get_std__optional_IOSActivityType_(const std::optional<IOSActivityType>& optional) noexcept {
|
|
566
668
|
return optional.value();
|
|
567
669
|
}
|
|
568
|
-
|
|
670
|
+
|
|
569
671
|
// pragma MARK: std::vector<GeocodedLocation>
|
|
570
672
|
/**
|
|
571
673
|
* Specialized version of `std::vector<GeocodedLocation>`.
|
|
@@ -576,7 +678,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
576
678
|
vector.reserve(size);
|
|
577
679
|
return vector;
|
|
578
680
|
}
|
|
579
|
-
|
|
681
|
+
|
|
580
682
|
// pragma MARK: std::function<void(const std::vector<GeocodedLocation>& /* locations */)>
|
|
581
683
|
/**
|
|
582
684
|
* Specialized version of `std::function<void(const std::vector<GeocodedLocation>&)>`.
|
|
@@ -598,7 +700,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
598
700
|
inline Func_void_std__vector_GeocodedLocation__Wrapper wrap_Func_void_std__vector_GeocodedLocation_(Func_void_std__vector_GeocodedLocation_ value) noexcept {
|
|
599
701
|
return Func_void_std__vector_GeocodedLocation__Wrapper(std::move(value));
|
|
600
702
|
}
|
|
601
|
-
|
|
703
|
+
|
|
602
704
|
// pragma MARK: std::vector<ReverseGeocodedAddress>
|
|
603
705
|
/**
|
|
604
706
|
* Specialized version of `std::vector<ReverseGeocodedAddress>`.
|
|
@@ -609,7 +711,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
609
711
|
vector.reserve(size);
|
|
610
712
|
return vector;
|
|
611
713
|
}
|
|
612
|
-
|
|
714
|
+
|
|
613
715
|
// pragma MARK: std::function<void(const std::vector<ReverseGeocodedAddress>& /* addresses */)>
|
|
614
716
|
/**
|
|
615
717
|
* Specialized version of `std::function<void(const std::vector<ReverseGeocodedAddress>&)>`.
|
|
@@ -631,7 +733,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
631
733
|
inline Func_void_std__vector_ReverseGeocodedAddress__Wrapper wrap_Func_void_std__vector_ReverseGeocodedAddress_(Func_void_std__vector_ReverseGeocodedAddress_ value) noexcept {
|
|
632
734
|
return Func_void_std__vector_ReverseGeocodedAddress__Wrapper(std::move(value));
|
|
633
735
|
}
|
|
634
|
-
|
|
736
|
+
|
|
635
737
|
// pragma MARK: std::function<void(const Heading& /* heading */)>
|
|
636
738
|
/**
|
|
637
739
|
* Specialized version of `std::function<void(const Heading&)>`.
|
|
@@ -653,7 +755,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
653
755
|
inline Func_void_Heading_Wrapper wrap_Func_void_Heading(Func_void_Heading value) noexcept {
|
|
654
756
|
return Func_void_Heading_Wrapper(std::move(value));
|
|
655
757
|
}
|
|
656
|
-
|
|
758
|
+
|
|
657
759
|
// pragma MARK: std::shared_ptr<HybridNitroGeolocationSpec>
|
|
658
760
|
/**
|
|
659
761
|
* Specialized version of `std::shared_ptr<HybridNitroGeolocationSpec>`.
|
|
@@ -661,11 +763,11 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
661
763
|
using std__shared_ptr_HybridNitroGeolocationSpec_ = std::shared_ptr<HybridNitroGeolocationSpec>;
|
|
662
764
|
std::shared_ptr<HybridNitroGeolocationSpec> create_std__shared_ptr_HybridNitroGeolocationSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
663
765
|
void* NON_NULL get_std__shared_ptr_HybridNitroGeolocationSpec_(std__shared_ptr_HybridNitroGeolocationSpec_ cppType);
|
|
664
|
-
|
|
766
|
+
|
|
665
767
|
// pragma MARK: std::weak_ptr<HybridNitroGeolocationSpec>
|
|
666
768
|
using std__weak_ptr_HybridNitroGeolocationSpec_ = std::weak_ptr<HybridNitroGeolocationSpec>;
|
|
667
769
|
inline std__weak_ptr_HybridNitroGeolocationSpec_ weakify_std__shared_ptr_HybridNitroGeolocationSpec_(const std::shared_ptr<HybridNitroGeolocationSpec>& strong) noexcept { return strong; }
|
|
668
|
-
|
|
770
|
+
|
|
669
771
|
// pragma MARK: Result<void>
|
|
670
772
|
using Result_void_ = Result<void>;
|
|
671
773
|
inline Result_void_ create_Result_void_() noexcept {
|
|
@@ -674,7 +776,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
674
776
|
inline Result_void_ create_Result_void_(const std::exception_ptr& error) noexcept {
|
|
675
777
|
return Result<void>::withError(error);
|
|
676
778
|
}
|
|
677
|
-
|
|
779
|
+
|
|
678
780
|
// pragma MARK: Result<std::shared_ptr<Promise<PermissionStatus>>>
|
|
679
781
|
using Result_std__shared_ptr_Promise_PermissionStatus___ = Result<std::shared_ptr<Promise<PermissionStatus>>>;
|
|
680
782
|
inline Result_std__shared_ptr_Promise_PermissionStatus___ create_Result_std__shared_ptr_Promise_PermissionStatus___(const std::shared_ptr<Promise<PermissionStatus>>& value) noexcept {
|
|
@@ -683,7 +785,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
683
785
|
inline Result_std__shared_ptr_Promise_PermissionStatus___ create_Result_std__shared_ptr_Promise_PermissionStatus___(const std::exception_ptr& error) noexcept {
|
|
684
786
|
return Result<std::shared_ptr<Promise<PermissionStatus>>>::withError(error);
|
|
685
787
|
}
|
|
686
|
-
|
|
788
|
+
|
|
687
789
|
// pragma MARK: Result<std::shared_ptr<Promise<bool>>>
|
|
688
790
|
using Result_std__shared_ptr_Promise_bool___ = Result<std::shared_ptr<Promise<bool>>>;
|
|
689
791
|
inline Result_std__shared_ptr_Promise_bool___ create_Result_std__shared_ptr_Promise_bool___(const std::shared_ptr<Promise<bool>>& value) noexcept {
|
|
@@ -692,7 +794,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
692
794
|
inline Result_std__shared_ptr_Promise_bool___ create_Result_std__shared_ptr_Promise_bool___(const std::exception_ptr& error) noexcept {
|
|
693
795
|
return Result<std::shared_ptr<Promise<bool>>>::withError(error);
|
|
694
796
|
}
|
|
695
|
-
|
|
797
|
+
|
|
696
798
|
// pragma MARK: Result<std::shared_ptr<Promise<LocationProviderStatus>>>
|
|
697
799
|
using Result_std__shared_ptr_Promise_LocationProviderStatus___ = Result<std::shared_ptr<Promise<LocationProviderStatus>>>;
|
|
698
800
|
inline Result_std__shared_ptr_Promise_LocationProviderStatus___ create_Result_std__shared_ptr_Promise_LocationProviderStatus___(const std::shared_ptr<Promise<LocationProviderStatus>>& value) noexcept {
|
|
@@ -701,7 +803,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
701
803
|
inline Result_std__shared_ptr_Promise_LocationProviderStatus___ create_Result_std__shared_ptr_Promise_LocationProviderStatus___(const std::exception_ptr& error) noexcept {
|
|
702
804
|
return Result<std::shared_ptr<Promise<LocationProviderStatus>>>::withError(error);
|
|
703
805
|
}
|
|
704
|
-
|
|
806
|
+
|
|
705
807
|
// pragma MARK: Result<std::shared_ptr<Promise<LocationAvailability>>>
|
|
706
808
|
using Result_std__shared_ptr_Promise_LocationAvailability___ = Result<std::shared_ptr<Promise<LocationAvailability>>>;
|
|
707
809
|
inline Result_std__shared_ptr_Promise_LocationAvailability___ create_Result_std__shared_ptr_Promise_LocationAvailability___(const std::shared_ptr<Promise<LocationAvailability>>& value) noexcept {
|
|
@@ -710,7 +812,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
710
812
|
inline Result_std__shared_ptr_Promise_LocationAvailability___ create_Result_std__shared_ptr_Promise_LocationAvailability___(const std::exception_ptr& error) noexcept {
|
|
711
813
|
return Result<std::shared_ptr<Promise<LocationAvailability>>>::withError(error);
|
|
712
814
|
}
|
|
713
|
-
|
|
815
|
+
|
|
714
816
|
// pragma MARK: Result<std::shared_ptr<Promise<AccuracyAuthorization>>>
|
|
715
817
|
using Result_std__shared_ptr_Promise_AccuracyAuthorization___ = Result<std::shared_ptr<Promise<AccuracyAuthorization>>>;
|
|
716
818
|
inline Result_std__shared_ptr_Promise_AccuracyAuthorization___ create_Result_std__shared_ptr_Promise_AccuracyAuthorization___(const std::shared_ptr<Promise<AccuracyAuthorization>>& value) noexcept {
|
|
@@ -719,7 +821,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
719
821
|
inline Result_std__shared_ptr_Promise_AccuracyAuthorization___ create_Result_std__shared_ptr_Promise_AccuracyAuthorization___(const std::exception_ptr& error) noexcept {
|
|
720
822
|
return Result<std::shared_ptr<Promise<AccuracyAuthorization>>>::withError(error);
|
|
721
823
|
}
|
|
722
|
-
|
|
824
|
+
|
|
723
825
|
// pragma MARK: Result<std::string>
|
|
724
826
|
using Result_std__string_ = Result<std::string>;
|
|
725
827
|
inline Result_std__string_ create_Result_std__string_(const std::string& value) noexcept {
|
|
@@ -728,7 +830,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
728
830
|
inline Result_std__string_ create_Result_std__string_(const std::exception_ptr& error) noexcept {
|
|
729
831
|
return Result<std::string>::withError(error);
|
|
730
832
|
}
|
|
731
|
-
|
|
833
|
+
|
|
732
834
|
// pragma MARK: std::optional<AuthorizationLevelInternal>
|
|
733
835
|
/**
|
|
734
836
|
* Specialized version of `std::optional<AuthorizationLevelInternal>`.
|
|
@@ -743,7 +845,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
743
845
|
inline AuthorizationLevelInternal get_std__optional_AuthorizationLevelInternal_(const std::optional<AuthorizationLevelInternal>& optional) noexcept {
|
|
744
846
|
return optional.value();
|
|
745
847
|
}
|
|
746
|
-
|
|
848
|
+
|
|
747
849
|
// pragma MARK: std::optional<LocationProviderInternal>
|
|
748
850
|
/**
|
|
749
851
|
* Specialized version of `std::optional<LocationProviderInternal>`.
|
|
@@ -758,7 +860,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
758
860
|
inline LocationProviderInternal get_std__optional_LocationProviderInternal_(const std::optional<LocationProviderInternal>& optional) noexcept {
|
|
759
861
|
return optional.value();
|
|
760
862
|
}
|
|
761
|
-
|
|
863
|
+
|
|
762
864
|
// pragma MARK: std::function<void()>
|
|
763
865
|
/**
|
|
764
866
|
* Specialized version of `std::function<void()>`.
|
|
@@ -780,7 +882,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
780
882
|
inline Func_void_Wrapper wrap_Func_void(Func_void value) noexcept {
|
|
781
883
|
return Func_void_Wrapper(std::move(value));
|
|
782
884
|
}
|
|
783
|
-
|
|
885
|
+
|
|
784
886
|
// pragma MARK: std::optional<std::function<void()>>
|
|
785
887
|
/**
|
|
786
888
|
* Specialized version of `std::optional<std::function<void()>>`.
|
|
@@ -795,7 +897,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
795
897
|
inline std::function<void()> get_std__optional_std__function_void____(const std::optional<std::function<void()>>& optional) noexcept {
|
|
796
898
|
return optional.value();
|
|
797
899
|
}
|
|
798
|
-
|
|
900
|
+
|
|
799
901
|
// pragma MARK: std::function<void(const CompatGeolocationError& /* error */)>
|
|
800
902
|
/**
|
|
801
903
|
* Specialized version of `std::function<void(const CompatGeolocationError&)>`.
|
|
@@ -817,7 +919,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
817
919
|
inline Func_void_CompatGeolocationError_Wrapper wrap_Func_void_CompatGeolocationError(Func_void_CompatGeolocationError value) noexcept {
|
|
818
920
|
return Func_void_CompatGeolocationError_Wrapper(std::move(value));
|
|
819
921
|
}
|
|
820
|
-
|
|
922
|
+
|
|
821
923
|
// pragma MARK: std::optional<std::function<void(const CompatGeolocationError& /* error */)>>
|
|
822
924
|
/**
|
|
823
925
|
* Specialized version of `std::optional<std::function<void(const CompatGeolocationError& / * error * /)>>`.
|
|
@@ -832,7 +934,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
832
934
|
inline std::function<void(const CompatGeolocationError& /* error */)> get_std__optional_std__function_void_const_CompatGeolocationError_____error______(const std::optional<std::function<void(const CompatGeolocationError& /* error */)>>& optional) noexcept {
|
|
833
935
|
return optional.value();
|
|
834
936
|
}
|
|
835
|
-
|
|
937
|
+
|
|
836
938
|
// pragma MARK: std::function<void(const CompatGeolocationResponse& /* position */)>
|
|
837
939
|
/**
|
|
838
940
|
* Specialized version of `std::function<void(const CompatGeolocationResponse&)>`.
|
|
@@ -854,7 +956,7 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
854
956
|
inline Func_void_CompatGeolocationResponse_Wrapper wrap_Func_void_CompatGeolocationResponse(Func_void_CompatGeolocationResponse value) noexcept {
|
|
855
957
|
return Func_void_CompatGeolocationResponse_Wrapper(std::move(value));
|
|
856
958
|
}
|
|
857
|
-
|
|
959
|
+
|
|
858
960
|
// pragma MARK: std::shared_ptr<HybridNitroGeolocationCompatSpec>
|
|
859
961
|
/**
|
|
860
962
|
* Specialized version of `std::shared_ptr<HybridNitroGeolocationCompatSpec>`.
|
|
@@ -862,11 +964,11 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
862
964
|
using std__shared_ptr_HybridNitroGeolocationCompatSpec_ = std::shared_ptr<HybridNitroGeolocationCompatSpec>;
|
|
863
965
|
std::shared_ptr<HybridNitroGeolocationCompatSpec> create_std__shared_ptr_HybridNitroGeolocationCompatSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
864
966
|
void* NON_NULL get_std__shared_ptr_HybridNitroGeolocationCompatSpec_(std__shared_ptr_HybridNitroGeolocationCompatSpec_ cppType);
|
|
865
|
-
|
|
967
|
+
|
|
866
968
|
// pragma MARK: std::weak_ptr<HybridNitroGeolocationCompatSpec>
|
|
867
969
|
using std__weak_ptr_HybridNitroGeolocationCompatSpec_ = std::weak_ptr<HybridNitroGeolocationCompatSpec>;
|
|
868
970
|
inline std__weak_ptr_HybridNitroGeolocationCompatSpec_ weakify_std__shared_ptr_HybridNitroGeolocationCompatSpec_(const std::shared_ptr<HybridNitroGeolocationCompatSpec>& strong) noexcept { return strong; }
|
|
869
|
-
|
|
971
|
+
|
|
870
972
|
// pragma MARK: Result<double>
|
|
871
973
|
using Result_double_ = Result<double>;
|
|
872
974
|
inline Result_double_ create_Result_double_(double value) noexcept {
|
|
@@ -876,4 +978,959 @@ namespace margelo::nitro::nitrogeolocation::bridge::swift {
|
|
|
876
978
|
return Result<double>::withError(error);
|
|
877
979
|
}
|
|
878
980
|
|
|
981
|
+
// pragma MARK: std::optional<AccuracyAuthorization>
|
|
982
|
+
/**
|
|
983
|
+
* Specialized version of `std::optional<AccuracyAuthorization>`.
|
|
984
|
+
*/
|
|
985
|
+
using std__optional_AccuracyAuthorization_ = std::optional<AccuracyAuthorization>;
|
|
986
|
+
inline std::optional<AccuracyAuthorization> create_std__optional_AccuracyAuthorization_(const AccuracyAuthorization& value) noexcept {
|
|
987
|
+
return std::optional<AccuracyAuthorization>(value);
|
|
988
|
+
}
|
|
989
|
+
inline bool has_value_std__optional_AccuracyAuthorization_(const std::optional<AccuracyAuthorization>& optional) noexcept {
|
|
990
|
+
return optional.has_value();
|
|
991
|
+
}
|
|
992
|
+
inline AccuracyAuthorization get_std__optional_AccuracyAuthorization_(const std::optional<AccuracyAuthorization>& optional) noexcept {
|
|
993
|
+
return optional.value();
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
// pragma MARK: std::shared_ptr<Promise<BackgroundPermissionResult>>
|
|
997
|
+
/**
|
|
998
|
+
* Specialized version of `std::shared_ptr<Promise<BackgroundPermissionResult>>`.
|
|
999
|
+
*/
|
|
1000
|
+
using std__shared_ptr_Promise_BackgroundPermissionResult__ = std::shared_ptr<Promise<BackgroundPermissionResult>>;
|
|
1001
|
+
inline std::shared_ptr<Promise<BackgroundPermissionResult>> create_std__shared_ptr_Promise_BackgroundPermissionResult__() noexcept {
|
|
1002
|
+
return Promise<BackgroundPermissionResult>::create();
|
|
1003
|
+
}
|
|
1004
|
+
inline PromiseHolder<BackgroundPermissionResult> wrap_std__shared_ptr_Promise_BackgroundPermissionResult__(std::shared_ptr<Promise<BackgroundPermissionResult>> promise) noexcept {
|
|
1005
|
+
return PromiseHolder<BackgroundPermissionResult>(std::move(promise));
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
// pragma MARK: std::function<void(const BackgroundPermissionResult& /* result */)>
|
|
1009
|
+
/**
|
|
1010
|
+
* Specialized version of `std::function<void(const BackgroundPermissionResult&)>`.
|
|
1011
|
+
*/
|
|
1012
|
+
using Func_void_BackgroundPermissionResult = std::function<void(const BackgroundPermissionResult& /* result */)>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Wrapper class for a `std::function<void(const BackgroundPermissionResult& / * result * /)>`, this can be used from Swift.
|
|
1015
|
+
*/
|
|
1016
|
+
class Func_void_BackgroundPermissionResult_Wrapper final {
|
|
1017
|
+
public:
|
|
1018
|
+
explicit Func_void_BackgroundPermissionResult_Wrapper(std::function<void(const BackgroundPermissionResult& /* result */)>&& func): _function(std::make_unique<std::function<void(const BackgroundPermissionResult& /* result */)>>(std::move(func))) {}
|
|
1019
|
+
inline void call(BackgroundPermissionResult result) const noexcept {
|
|
1020
|
+
_function->operator()(result);
|
|
1021
|
+
}
|
|
1022
|
+
private:
|
|
1023
|
+
std::unique_ptr<std::function<void(const BackgroundPermissionResult& /* result */)>> _function;
|
|
1024
|
+
} SWIFT_NONCOPYABLE;
|
|
1025
|
+
Func_void_BackgroundPermissionResult create_Func_void_BackgroundPermissionResult(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1026
|
+
inline Func_void_BackgroundPermissionResult_Wrapper wrap_Func_void_BackgroundPermissionResult(Func_void_BackgroundPermissionResult value) noexcept {
|
|
1027
|
+
return Func_void_BackgroundPermissionResult_Wrapper(std::move(value));
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
// pragma MARK: std::shared_ptr<Promise<void>>
|
|
1031
|
+
/**
|
|
1032
|
+
* Specialized version of `std::shared_ptr<Promise<void>>`.
|
|
1033
|
+
*/
|
|
1034
|
+
using std__shared_ptr_Promise_void__ = std::shared_ptr<Promise<void>>;
|
|
1035
|
+
inline std::shared_ptr<Promise<void>> create_std__shared_ptr_Promise_void__() noexcept {
|
|
1036
|
+
return Promise<void>::create();
|
|
1037
|
+
}
|
|
1038
|
+
inline PromiseHolder<void> wrap_std__shared_ptr_Promise_void__(std::shared_ptr<Promise<void>> promise) noexcept {
|
|
1039
|
+
return PromiseHolder<void>(std::move(promise));
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
// pragma MARK: std::optional<BackgroundTrackingMode>
|
|
1043
|
+
/**
|
|
1044
|
+
* Specialized version of `std::optional<BackgroundTrackingMode>`.
|
|
1045
|
+
*/
|
|
1046
|
+
using std__optional_BackgroundTrackingMode_ = std::optional<BackgroundTrackingMode>;
|
|
1047
|
+
inline std::optional<BackgroundTrackingMode> create_std__optional_BackgroundTrackingMode_(const BackgroundTrackingMode& value) noexcept {
|
|
1048
|
+
return std::optional<BackgroundTrackingMode>(value);
|
|
1049
|
+
}
|
|
1050
|
+
inline bool has_value_std__optional_BackgroundTrackingMode_(const std::optional<BackgroundTrackingMode>& optional) noexcept {
|
|
1051
|
+
return optional.has_value();
|
|
1052
|
+
}
|
|
1053
|
+
inline BackgroundTrackingMode get_std__optional_BackgroundTrackingMode_(const std::optional<BackgroundTrackingMode>& optional) noexcept {
|
|
1054
|
+
return optional.value();
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
// pragma MARK: std::optional<AndroidBackgroundProvider>
|
|
1058
|
+
/**
|
|
1059
|
+
* Specialized version of `std::optional<AndroidBackgroundProvider>`.
|
|
1060
|
+
*/
|
|
1061
|
+
using std__optional_AndroidBackgroundProvider_ = std::optional<AndroidBackgroundProvider>;
|
|
1062
|
+
inline std::optional<AndroidBackgroundProvider> create_std__optional_AndroidBackgroundProvider_(const AndroidBackgroundProvider& value) noexcept {
|
|
1063
|
+
return std::optional<AndroidBackgroundProvider>(value);
|
|
1064
|
+
}
|
|
1065
|
+
inline bool has_value_std__optional_AndroidBackgroundProvider_(const std::optional<AndroidBackgroundProvider>& optional) noexcept {
|
|
1066
|
+
return optional.has_value();
|
|
1067
|
+
}
|
|
1068
|
+
inline AndroidBackgroundProvider get_std__optional_AndroidBackgroundProvider_(const std::optional<AndroidBackgroundProvider>& optional) noexcept {
|
|
1069
|
+
return optional.value();
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
// pragma MARK: std::optional<AndroidBackgroundLocationOptions>
|
|
1073
|
+
/**
|
|
1074
|
+
* Specialized version of `std::optional<AndroidBackgroundLocationOptions>`.
|
|
1075
|
+
*/
|
|
1076
|
+
using std__optional_AndroidBackgroundLocationOptions_ = std::optional<AndroidBackgroundLocationOptions>;
|
|
1077
|
+
inline std::optional<AndroidBackgroundLocationOptions> create_std__optional_AndroidBackgroundLocationOptions_(const AndroidBackgroundLocationOptions& value) noexcept {
|
|
1078
|
+
return std::optional<AndroidBackgroundLocationOptions>(value);
|
|
1079
|
+
}
|
|
1080
|
+
inline bool has_value_std__optional_AndroidBackgroundLocationOptions_(const std::optional<AndroidBackgroundLocationOptions>& optional) noexcept {
|
|
1081
|
+
return optional.has_value();
|
|
1082
|
+
}
|
|
1083
|
+
inline AndroidBackgroundLocationOptions get_std__optional_AndroidBackgroundLocationOptions_(const std::optional<AndroidBackgroundLocationOptions>& optional) noexcept {
|
|
1084
|
+
return optional.value();
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
// pragma MARK: std::optional<IOSBackgroundActivityType>
|
|
1088
|
+
/**
|
|
1089
|
+
* Specialized version of `std::optional<IOSBackgroundActivityType>`.
|
|
1090
|
+
*/
|
|
1091
|
+
using std__optional_IOSBackgroundActivityType_ = std::optional<IOSBackgroundActivityType>;
|
|
1092
|
+
inline std::optional<IOSBackgroundActivityType> create_std__optional_IOSBackgroundActivityType_(const IOSBackgroundActivityType& value) noexcept {
|
|
1093
|
+
return std::optional<IOSBackgroundActivityType>(value);
|
|
1094
|
+
}
|
|
1095
|
+
inline bool has_value_std__optional_IOSBackgroundActivityType_(const std::optional<IOSBackgroundActivityType>& optional) noexcept {
|
|
1096
|
+
return optional.has_value();
|
|
1097
|
+
}
|
|
1098
|
+
inline IOSBackgroundActivityType get_std__optional_IOSBackgroundActivityType_(const std::optional<IOSBackgroundActivityType>& optional) noexcept {
|
|
1099
|
+
return optional.value();
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
// pragma MARK: std::optional<IOSBackgroundLocationOptions>
|
|
1103
|
+
/**
|
|
1104
|
+
* Specialized version of `std::optional<IOSBackgroundLocationOptions>`.
|
|
1105
|
+
*/
|
|
1106
|
+
using std__optional_IOSBackgroundLocationOptions_ = std::optional<IOSBackgroundLocationOptions>;
|
|
1107
|
+
inline std::optional<IOSBackgroundLocationOptions> create_std__optional_IOSBackgroundLocationOptions_(const IOSBackgroundLocationOptions& value) noexcept {
|
|
1108
|
+
return std::optional<IOSBackgroundLocationOptions>(value);
|
|
1109
|
+
}
|
|
1110
|
+
inline bool has_value_std__optional_IOSBackgroundLocationOptions_(const std::optional<IOSBackgroundLocationOptions>& optional) noexcept {
|
|
1111
|
+
return optional.has_value();
|
|
1112
|
+
}
|
|
1113
|
+
inline IOSBackgroundLocationOptions get_std__optional_IOSBackgroundLocationOptions_(const std::optional<IOSBackgroundLocationOptions>& optional) noexcept {
|
|
1114
|
+
return optional.value();
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
// pragma MARK: std::vector<GeofenceTransition>
|
|
1118
|
+
/**
|
|
1119
|
+
* Specialized version of `std::vector<GeofenceTransition>`.
|
|
1120
|
+
*/
|
|
1121
|
+
using std__vector_GeofenceTransition_ = std::vector<GeofenceTransition>;
|
|
1122
|
+
inline std::vector<GeofenceTransition> create_std__vector_GeofenceTransition_(size_t size) noexcept {
|
|
1123
|
+
std::vector<GeofenceTransition> vector;
|
|
1124
|
+
vector.reserve(size);
|
|
1125
|
+
return vector;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
// pragma MARK: std::optional<std::vector<GeofenceTransition>>
|
|
1129
|
+
/**
|
|
1130
|
+
* Specialized version of `std::optional<std::vector<GeofenceTransition>>`.
|
|
1131
|
+
*/
|
|
1132
|
+
using std__optional_std__vector_GeofenceTransition__ = std::optional<std::vector<GeofenceTransition>>;
|
|
1133
|
+
inline std::optional<std::vector<GeofenceTransition>> create_std__optional_std__vector_GeofenceTransition__(const std::vector<GeofenceTransition>& value) noexcept {
|
|
1134
|
+
return std::optional<std::vector<GeofenceTransition>>(value);
|
|
1135
|
+
}
|
|
1136
|
+
inline bool has_value_std__optional_std__vector_GeofenceTransition__(const std::optional<std::vector<GeofenceTransition>>& optional) noexcept {
|
|
1137
|
+
return optional.has_value();
|
|
1138
|
+
}
|
|
1139
|
+
inline std::vector<GeofenceTransition> get_std__optional_std__vector_GeofenceTransition__(const std::optional<std::vector<GeofenceTransition>>& optional) noexcept {
|
|
1140
|
+
return optional.value();
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
// pragma MARK: std::optional<GeofencingOptions>
|
|
1144
|
+
/**
|
|
1145
|
+
* Specialized version of `std::optional<GeofencingOptions>`.
|
|
1146
|
+
*/
|
|
1147
|
+
using std__optional_GeofencingOptions_ = std::optional<GeofencingOptions>;
|
|
1148
|
+
inline std::optional<GeofencingOptions> create_std__optional_GeofencingOptions_(const GeofencingOptions& value) noexcept {
|
|
1149
|
+
return std::optional<GeofencingOptions>(value);
|
|
1150
|
+
}
|
|
1151
|
+
inline bool has_value_std__optional_GeofencingOptions_(const std::optional<GeofencingOptions>& optional) noexcept {
|
|
1152
|
+
return optional.has_value();
|
|
1153
|
+
}
|
|
1154
|
+
inline GeofencingOptions get_std__optional_GeofencingOptions_(const std::optional<GeofencingOptions>& optional) noexcept {
|
|
1155
|
+
return optional.value();
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
// pragma MARK: std::optional<ActivityRecognitionOptions>
|
|
1159
|
+
/**
|
|
1160
|
+
* Specialized version of `std::optional<ActivityRecognitionOptions>`.
|
|
1161
|
+
*/
|
|
1162
|
+
using std__optional_ActivityRecognitionOptions_ = std::optional<ActivityRecognitionOptions>;
|
|
1163
|
+
inline std::optional<ActivityRecognitionOptions> create_std__optional_ActivityRecognitionOptions_(const ActivityRecognitionOptions& value) noexcept {
|
|
1164
|
+
return std::optional<ActivityRecognitionOptions>(value);
|
|
1165
|
+
}
|
|
1166
|
+
inline bool has_value_std__optional_ActivityRecognitionOptions_(const std::optional<ActivityRecognitionOptions>& optional) noexcept {
|
|
1167
|
+
return optional.has_value();
|
|
1168
|
+
}
|
|
1169
|
+
inline ActivityRecognitionOptions get_std__optional_ActivityRecognitionOptions_(const std::optional<ActivityRecognitionOptions>& optional) noexcept {
|
|
1170
|
+
return optional.value();
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
// pragma MARK: std::optional<BackgroundHttpMethod>
|
|
1174
|
+
/**
|
|
1175
|
+
* Specialized version of `std::optional<BackgroundHttpMethod>`.
|
|
1176
|
+
*/
|
|
1177
|
+
using std__optional_BackgroundHttpMethod_ = std::optional<BackgroundHttpMethod>;
|
|
1178
|
+
inline std::optional<BackgroundHttpMethod> create_std__optional_BackgroundHttpMethod_(const BackgroundHttpMethod& value) noexcept {
|
|
1179
|
+
return std::optional<BackgroundHttpMethod>(value);
|
|
1180
|
+
}
|
|
1181
|
+
inline bool has_value_std__optional_BackgroundHttpMethod_(const std::optional<BackgroundHttpMethod>& optional) noexcept {
|
|
1182
|
+
return optional.has_value();
|
|
1183
|
+
}
|
|
1184
|
+
inline BackgroundHttpMethod get_std__optional_BackgroundHttpMethod_(const std::optional<BackgroundHttpMethod>& optional) noexcept {
|
|
1185
|
+
return optional.value();
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
// pragma MARK: std::unordered_map<std::string, std::string>
|
|
1189
|
+
/**
|
|
1190
|
+
* Specialized version of `std::unordered_map<std::string, std::string>`.
|
|
1191
|
+
*/
|
|
1192
|
+
using std__unordered_map_std__string__std__string_ = std::unordered_map<std::string, std::string>;
|
|
1193
|
+
inline std::unordered_map<std::string, std::string> create_std__unordered_map_std__string__std__string_(size_t size) noexcept {
|
|
1194
|
+
std::unordered_map<std::string, std::string> map;
|
|
1195
|
+
map.reserve(size);
|
|
1196
|
+
return map;
|
|
1197
|
+
}
|
|
1198
|
+
inline std::vector<std::string> get_std__unordered_map_std__string__std__string__keys(const std__unordered_map_std__string__std__string_& map) noexcept {
|
|
1199
|
+
std::vector<std::string> keys;
|
|
1200
|
+
keys.reserve(map.size());
|
|
1201
|
+
for (const auto& entry : map) {
|
|
1202
|
+
keys.push_back(entry.first);
|
|
1203
|
+
}
|
|
1204
|
+
return keys;
|
|
1205
|
+
}
|
|
1206
|
+
inline std::string get_std__unordered_map_std__string__std__string__value(const std__unordered_map_std__string__std__string_& map, const std::string& key) noexcept {
|
|
1207
|
+
return map.find(key)->second;
|
|
1208
|
+
}
|
|
1209
|
+
inline void emplace_std__unordered_map_std__string__std__string_(std__unordered_map_std__string__std__string_& map, const std::string& key, const std::string& value) noexcept {
|
|
1210
|
+
map.emplace(key, value);
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
// pragma MARK: std::optional<std::unordered_map<std::string, std::string>>
|
|
1214
|
+
/**
|
|
1215
|
+
* Specialized version of `std::optional<std::unordered_map<std::string, std::string>>`.
|
|
1216
|
+
*/
|
|
1217
|
+
using std__optional_std__unordered_map_std__string__std__string__ = std::optional<std::unordered_map<std::string, std::string>>;
|
|
1218
|
+
inline std::optional<std::unordered_map<std::string, std::string>> create_std__optional_std__unordered_map_std__string__std__string__(const std::unordered_map<std::string, std::string>& value) noexcept {
|
|
1219
|
+
return std::optional<std::unordered_map<std::string, std::string>>(value);
|
|
1220
|
+
}
|
|
1221
|
+
inline bool has_value_std__optional_std__unordered_map_std__string__std__string__(const std::optional<std::unordered_map<std::string, std::string>>& optional) noexcept {
|
|
1222
|
+
return optional.has_value();
|
|
1223
|
+
}
|
|
1224
|
+
inline std::unordered_map<std::string, std::string> get_std__optional_std__unordered_map_std__string__std__string__(const std::optional<std::unordered_map<std::string, std::string>>& optional) noexcept {
|
|
1225
|
+
return optional.value();
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
// pragma MARK: std::variant<nitro::NullType, bool, std::string, double>
|
|
1229
|
+
/**
|
|
1230
|
+
* Wrapper struct for `std::variant<nitro::NullType, bool, std::string, double>`.
|
|
1231
|
+
* std::variant cannot be used in Swift because of a Swift bug.
|
|
1232
|
+
* Not even specializing it works. So we create a wrapper struct.
|
|
1233
|
+
*/
|
|
1234
|
+
struct std__variant_nitro__NullType__bool__std__string__double_ final {
|
|
1235
|
+
std::variant<nitro::NullType, bool, std::string, double> variant;
|
|
1236
|
+
std__variant_nitro__NullType__bool__std__string__double_(std::variant<nitro::NullType, bool, std::string, double> variant): variant(variant) { }
|
|
1237
|
+
operator std::variant<nitro::NullType, bool, std::string, double>() const noexcept {
|
|
1238
|
+
return variant;
|
|
1239
|
+
}
|
|
1240
|
+
inline size_t index() const noexcept {
|
|
1241
|
+
return variant.index();
|
|
1242
|
+
}
|
|
1243
|
+
inline nitro::NullType get_0() const noexcept {
|
|
1244
|
+
return std::get<0>(variant);
|
|
1245
|
+
}
|
|
1246
|
+
inline bool get_1() const noexcept {
|
|
1247
|
+
return std::get<1>(variant);
|
|
1248
|
+
}
|
|
1249
|
+
inline std::string get_2() const noexcept {
|
|
1250
|
+
return std::get<2>(variant);
|
|
1251
|
+
}
|
|
1252
|
+
inline double get_3() const noexcept {
|
|
1253
|
+
return std::get<3>(variant);
|
|
1254
|
+
}
|
|
1255
|
+
};
|
|
1256
|
+
inline std__variant_nitro__NullType__bool__std__string__double_ create_std__variant_nitro__NullType__bool__std__string__double_(nitro::NullType value) noexcept {
|
|
1257
|
+
return std__variant_nitro__NullType__bool__std__string__double_(value);
|
|
1258
|
+
}
|
|
1259
|
+
inline std__variant_nitro__NullType__bool__std__string__double_ create_std__variant_nitro__NullType__bool__std__string__double_(bool value) noexcept {
|
|
1260
|
+
return std__variant_nitro__NullType__bool__std__string__double_(value);
|
|
1261
|
+
}
|
|
1262
|
+
inline std__variant_nitro__NullType__bool__std__string__double_ create_std__variant_nitro__NullType__bool__std__string__double_(const std::string& value) noexcept {
|
|
1263
|
+
return std__variant_nitro__NullType__bool__std__string__double_(value);
|
|
1264
|
+
}
|
|
1265
|
+
inline std__variant_nitro__NullType__bool__std__string__double_ create_std__variant_nitro__NullType__bool__std__string__double_(double value) noexcept {
|
|
1266
|
+
return std__variant_nitro__NullType__bool__std__string__double_(value);
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
// pragma MARK: std::unordered_map<std::string, std::variant<nitro::NullType, bool, std::string, double>>
|
|
1270
|
+
/**
|
|
1271
|
+
* Specialized version of `std::unordered_map<std::string, std::variant<nitro::NullType, bool, std::string, double>>`.
|
|
1272
|
+
*/
|
|
1273
|
+
using std__unordered_map_std__string__std__variant_nitro__NullType__bool__std__string__double__ = std::unordered_map<std::string, std::variant<nitro::NullType, bool, std::string, double>>;
|
|
1274
|
+
inline std::unordered_map<std::string, std::variant<nitro::NullType, bool, std::string, double>> create_std__unordered_map_std__string__std__variant_nitro__NullType__bool__std__string__double__(size_t size) noexcept {
|
|
1275
|
+
std::unordered_map<std::string, std::variant<nitro::NullType, bool, std::string, double>> map;
|
|
1276
|
+
map.reserve(size);
|
|
1277
|
+
return map;
|
|
1278
|
+
}
|
|
1279
|
+
inline std::vector<std::string> get_std__unordered_map_std__string__std__variant_nitro__NullType__bool__std__string__double___keys(const std__unordered_map_std__string__std__variant_nitro__NullType__bool__std__string__double__& map) noexcept {
|
|
1280
|
+
std::vector<std::string> keys;
|
|
1281
|
+
keys.reserve(map.size());
|
|
1282
|
+
for (const auto& entry : map) {
|
|
1283
|
+
keys.push_back(entry.first);
|
|
1284
|
+
}
|
|
1285
|
+
return keys;
|
|
1286
|
+
}
|
|
1287
|
+
inline std::variant<nitro::NullType, bool, std::string, double> get_std__unordered_map_std__string__std__variant_nitro__NullType__bool__std__string__double___value(const std__unordered_map_std__string__std__variant_nitro__NullType__bool__std__string__double__& map, const std::string& key) noexcept {
|
|
1288
|
+
return map.find(key)->second;
|
|
1289
|
+
}
|
|
1290
|
+
inline void emplace_std__unordered_map_std__string__std__variant_nitro__NullType__bool__std__string__double__(std__unordered_map_std__string__std__variant_nitro__NullType__bool__std__string__double__& map, const std::string& key, const std::variant<nitro::NullType, bool, std::string, double>& value) noexcept {
|
|
1291
|
+
map.emplace(key, value);
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
// pragma MARK: std::optional<std::unordered_map<std::string, std::variant<nitro::NullType, bool, std::string, double>>>
|
|
1295
|
+
/**
|
|
1296
|
+
* Specialized version of `std::optional<std::unordered_map<std::string, std::variant<nitro::NullType, bool, std::string, double>>>`.
|
|
1297
|
+
*/
|
|
1298
|
+
using std__optional_std__unordered_map_std__string__std__variant_nitro__NullType__bool__std__string__double___ = std::optional<std::unordered_map<std::string, std::variant<nitro::NullType, bool, std::string, double>>>;
|
|
1299
|
+
inline std::optional<std::unordered_map<std::string, std::variant<nitro::NullType, bool, std::string, double>>> create_std__optional_std__unordered_map_std__string__std__variant_nitro__NullType__bool__std__string__double___(const std::unordered_map<std::string, std::variant<nitro::NullType, bool, std::string, double>>& value) noexcept {
|
|
1300
|
+
return std::optional<std::unordered_map<std::string, std::variant<nitro::NullType, bool, std::string, double>>>(value);
|
|
1301
|
+
}
|
|
1302
|
+
inline bool has_value_std__optional_std__unordered_map_std__string__std__variant_nitro__NullType__bool__std__string__double___(const std::optional<std::unordered_map<std::string, std::variant<nitro::NullType, bool, std::string, double>>>& optional) noexcept {
|
|
1303
|
+
return optional.has_value();
|
|
1304
|
+
}
|
|
1305
|
+
inline std::unordered_map<std::string, std::variant<nitro::NullType, bool, std::string, double>> get_std__optional_std__unordered_map_std__string__std__variant_nitro__NullType__bool__std__string__double___(const std::optional<std::unordered_map<std::string, std::variant<nitro::NullType, bool, std::string, double>>>& optional) noexcept {
|
|
1306
|
+
return optional.value();
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
// pragma MARK: std::optional<BackgroundHttpSyncOptions>
|
|
1310
|
+
/**
|
|
1311
|
+
* Specialized version of `std::optional<BackgroundHttpSyncOptions>`.
|
|
1312
|
+
*/
|
|
1313
|
+
using std__optional_BackgroundHttpSyncOptions_ = std::optional<BackgroundHttpSyncOptions>;
|
|
1314
|
+
inline std::optional<BackgroundHttpSyncOptions> create_std__optional_BackgroundHttpSyncOptions_(const BackgroundHttpSyncOptions& value) noexcept {
|
|
1315
|
+
return std::optional<BackgroundHttpSyncOptions>(value);
|
|
1316
|
+
}
|
|
1317
|
+
inline bool has_value_std__optional_BackgroundHttpSyncOptions_(const std::optional<BackgroundHttpSyncOptions>& optional) noexcept {
|
|
1318
|
+
return optional.has_value();
|
|
1319
|
+
}
|
|
1320
|
+
inline BackgroundHttpSyncOptions get_std__optional_BackgroundHttpSyncOptions_(const std::optional<BackgroundHttpSyncOptions>& optional) noexcept {
|
|
1321
|
+
return optional.value();
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
// pragma MARK: std::optional<BackgroundLocationOptions>
|
|
1325
|
+
/**
|
|
1326
|
+
* Specialized version of `std::optional<BackgroundLocationOptions>`.
|
|
1327
|
+
*/
|
|
1328
|
+
using std__optional_BackgroundLocationOptions_ = std::optional<BackgroundLocationOptions>;
|
|
1329
|
+
inline std::optional<BackgroundLocationOptions> create_std__optional_BackgroundLocationOptions_(const BackgroundLocationOptions& value) noexcept {
|
|
1330
|
+
return std::optional<BackgroundLocationOptions>(value);
|
|
1331
|
+
}
|
|
1332
|
+
inline bool has_value_std__optional_BackgroundLocationOptions_(const std::optional<BackgroundLocationOptions>& optional) noexcept {
|
|
1333
|
+
return optional.has_value();
|
|
1334
|
+
}
|
|
1335
|
+
inline BackgroundLocationOptions get_std__optional_BackgroundLocationOptions_(const std::optional<BackgroundLocationOptions>& optional) noexcept {
|
|
1336
|
+
return optional.value();
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
// pragma MARK: std::shared_ptr<Promise<std::optional<BackgroundLocationOptions>>>
|
|
1340
|
+
/**
|
|
1341
|
+
* Specialized version of `std::shared_ptr<Promise<std::optional<BackgroundLocationOptions>>>`.
|
|
1342
|
+
*/
|
|
1343
|
+
using std__shared_ptr_Promise_std__optional_BackgroundLocationOptions___ = std::shared_ptr<Promise<std::optional<BackgroundLocationOptions>>>;
|
|
1344
|
+
inline std::shared_ptr<Promise<std::optional<BackgroundLocationOptions>>> create_std__shared_ptr_Promise_std__optional_BackgroundLocationOptions___() noexcept {
|
|
1345
|
+
return Promise<std::optional<BackgroundLocationOptions>>::create();
|
|
1346
|
+
}
|
|
1347
|
+
inline PromiseHolder<std::optional<BackgroundLocationOptions>> wrap_std__shared_ptr_Promise_std__optional_BackgroundLocationOptions___(std::shared_ptr<Promise<std::optional<BackgroundLocationOptions>>> promise) noexcept {
|
|
1348
|
+
return PromiseHolder<std::optional<BackgroundLocationOptions>>(std::move(promise));
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
// pragma MARK: std::function<void(const std::optional<BackgroundLocationOptions>& /* result */)>
|
|
1352
|
+
/**
|
|
1353
|
+
* Specialized version of `std::function<void(const std::optional<BackgroundLocationOptions>&)>`.
|
|
1354
|
+
*/
|
|
1355
|
+
using Func_void_std__optional_BackgroundLocationOptions_ = std::function<void(const std::optional<BackgroundLocationOptions>& /* result */)>;
|
|
1356
|
+
/**
|
|
1357
|
+
* Wrapper class for a `std::function<void(const std::optional<BackgroundLocationOptions>& / * result * /)>`, this can be used from Swift.
|
|
1358
|
+
*/
|
|
1359
|
+
class Func_void_std__optional_BackgroundLocationOptions__Wrapper final {
|
|
1360
|
+
public:
|
|
1361
|
+
explicit Func_void_std__optional_BackgroundLocationOptions__Wrapper(std::function<void(const std::optional<BackgroundLocationOptions>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::optional<BackgroundLocationOptions>& /* result */)>>(std::move(func))) {}
|
|
1362
|
+
inline void call(std::optional<BackgroundLocationOptions> result) const noexcept {
|
|
1363
|
+
_function->operator()(result);
|
|
1364
|
+
}
|
|
1365
|
+
private:
|
|
1366
|
+
std::unique_ptr<std::function<void(const std::optional<BackgroundLocationOptions>& /* result */)>> _function;
|
|
1367
|
+
} SWIFT_NONCOPYABLE;
|
|
1368
|
+
Func_void_std__optional_BackgroundLocationOptions_ create_Func_void_std__optional_BackgroundLocationOptions_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1369
|
+
inline Func_void_std__optional_BackgroundLocationOptions__Wrapper wrap_Func_void_std__optional_BackgroundLocationOptions_(Func_void_std__optional_BackgroundLocationOptions_ value) noexcept {
|
|
1370
|
+
return Func_void_std__optional_BackgroundLocationOptions__Wrapper(std::move(value));
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
// pragma MARK: std::optional<LocationProviderStatus>
|
|
1374
|
+
/**
|
|
1375
|
+
* Specialized version of `std::optional<LocationProviderStatus>`.
|
|
1376
|
+
*/
|
|
1377
|
+
using std__optional_LocationProviderStatus_ = std::optional<LocationProviderStatus>;
|
|
1378
|
+
inline std::optional<LocationProviderStatus> create_std__optional_LocationProviderStatus_(const LocationProviderStatus& value) noexcept {
|
|
1379
|
+
return std::optional<LocationProviderStatus>(value);
|
|
1380
|
+
}
|
|
1381
|
+
inline bool has_value_std__optional_LocationProviderStatus_(const std::optional<LocationProviderStatus>& optional) noexcept {
|
|
1382
|
+
return optional.has_value();
|
|
1383
|
+
}
|
|
1384
|
+
inline LocationProviderStatus get_std__optional_LocationProviderStatus_(const std::optional<LocationProviderStatus>& optional) noexcept {
|
|
1385
|
+
return optional.value();
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
// pragma MARK: std::optional<PermissionStatus>
|
|
1389
|
+
/**
|
|
1390
|
+
* Specialized version of `std::optional<PermissionStatus>`.
|
|
1391
|
+
*/
|
|
1392
|
+
using std__optional_PermissionStatus_ = std::optional<PermissionStatus>;
|
|
1393
|
+
inline std::optional<PermissionStatus> create_std__optional_PermissionStatus_(const PermissionStatus& value) noexcept {
|
|
1394
|
+
return std::optional<PermissionStatus>(value);
|
|
1395
|
+
}
|
|
1396
|
+
inline bool has_value_std__optional_PermissionStatus_(const std::optional<PermissionStatus>& optional) noexcept {
|
|
1397
|
+
return optional.has_value();
|
|
1398
|
+
}
|
|
1399
|
+
inline PermissionStatus get_std__optional_PermissionStatus_(const std::optional<PermissionStatus>& optional) noexcept {
|
|
1400
|
+
return optional.value();
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
// pragma MARK: std::optional<AndroidBackgroundLocationStatus>
|
|
1404
|
+
/**
|
|
1405
|
+
* Specialized version of `std::optional<AndroidBackgroundLocationStatus>`.
|
|
1406
|
+
*/
|
|
1407
|
+
using std__optional_AndroidBackgroundLocationStatus_ = std::optional<AndroidBackgroundLocationStatus>;
|
|
1408
|
+
inline std::optional<AndroidBackgroundLocationStatus> create_std__optional_AndroidBackgroundLocationStatus_(const AndroidBackgroundLocationStatus& value) noexcept {
|
|
1409
|
+
return std::optional<AndroidBackgroundLocationStatus>(value);
|
|
1410
|
+
}
|
|
1411
|
+
inline bool has_value_std__optional_AndroidBackgroundLocationStatus_(const std::optional<AndroidBackgroundLocationStatus>& optional) noexcept {
|
|
1412
|
+
return optional.has_value();
|
|
1413
|
+
}
|
|
1414
|
+
inline AndroidBackgroundLocationStatus get_std__optional_AndroidBackgroundLocationStatus_(const std::optional<AndroidBackgroundLocationStatus>& optional) noexcept {
|
|
1415
|
+
return optional.value();
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
// pragma MARK: std::optional<IOSBackgroundLocationStatus>
|
|
1419
|
+
/**
|
|
1420
|
+
* Specialized version of `std::optional<IOSBackgroundLocationStatus>`.
|
|
1421
|
+
*/
|
|
1422
|
+
using std__optional_IOSBackgroundLocationStatus_ = std::optional<IOSBackgroundLocationStatus>;
|
|
1423
|
+
inline std::optional<IOSBackgroundLocationStatus> create_std__optional_IOSBackgroundLocationStatus_(const IOSBackgroundLocationStatus& value) noexcept {
|
|
1424
|
+
return std::optional<IOSBackgroundLocationStatus>(value);
|
|
1425
|
+
}
|
|
1426
|
+
inline bool has_value_std__optional_IOSBackgroundLocationStatus_(const std::optional<IOSBackgroundLocationStatus>& optional) noexcept {
|
|
1427
|
+
return optional.has_value();
|
|
1428
|
+
}
|
|
1429
|
+
inline IOSBackgroundLocationStatus get_std__optional_IOSBackgroundLocationStatus_(const std::optional<IOSBackgroundLocationStatus>& optional) noexcept {
|
|
1430
|
+
return optional.value();
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
// pragma MARK: std::optional<LocationError>
|
|
1434
|
+
/**
|
|
1435
|
+
* Specialized version of `std::optional<LocationError>`.
|
|
1436
|
+
*/
|
|
1437
|
+
using std__optional_LocationError_ = std::optional<LocationError>;
|
|
1438
|
+
inline std::optional<LocationError> create_std__optional_LocationError_(const LocationError& value) noexcept {
|
|
1439
|
+
return std::optional<LocationError>(value);
|
|
1440
|
+
}
|
|
1441
|
+
inline bool has_value_std__optional_LocationError_(const std::optional<LocationError>& optional) noexcept {
|
|
1442
|
+
return optional.has_value();
|
|
1443
|
+
}
|
|
1444
|
+
inline LocationError get_std__optional_LocationError_(const std::optional<LocationError>& optional) noexcept {
|
|
1445
|
+
return optional.value();
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
// pragma MARK: std::shared_ptr<Promise<BackgroundLocationStatus>>
|
|
1449
|
+
/**
|
|
1450
|
+
* Specialized version of `std::shared_ptr<Promise<BackgroundLocationStatus>>`.
|
|
1451
|
+
*/
|
|
1452
|
+
using std__shared_ptr_Promise_BackgroundLocationStatus__ = std::shared_ptr<Promise<BackgroundLocationStatus>>;
|
|
1453
|
+
inline std::shared_ptr<Promise<BackgroundLocationStatus>> create_std__shared_ptr_Promise_BackgroundLocationStatus__() noexcept {
|
|
1454
|
+
return Promise<BackgroundLocationStatus>::create();
|
|
1455
|
+
}
|
|
1456
|
+
inline PromiseHolder<BackgroundLocationStatus> wrap_std__shared_ptr_Promise_BackgroundLocationStatus__(std::shared_ptr<Promise<BackgroundLocationStatus>> promise) noexcept {
|
|
1457
|
+
return PromiseHolder<BackgroundLocationStatus>(std::move(promise));
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
// pragma MARK: std::function<void(const BackgroundLocationStatus& /* result */)>
|
|
1461
|
+
/**
|
|
1462
|
+
* Specialized version of `std::function<void(const BackgroundLocationStatus&)>`.
|
|
1463
|
+
*/
|
|
1464
|
+
using Func_void_BackgroundLocationStatus = std::function<void(const BackgroundLocationStatus& /* result */)>;
|
|
1465
|
+
/**
|
|
1466
|
+
* Wrapper class for a `std::function<void(const BackgroundLocationStatus& / * result * /)>`, this can be used from Swift.
|
|
1467
|
+
*/
|
|
1468
|
+
class Func_void_BackgroundLocationStatus_Wrapper final {
|
|
1469
|
+
public:
|
|
1470
|
+
explicit Func_void_BackgroundLocationStatus_Wrapper(std::function<void(const BackgroundLocationStatus& /* result */)>&& func): _function(std::make_unique<std::function<void(const BackgroundLocationStatus& /* result */)>>(std::move(func))) {}
|
|
1471
|
+
inline void call(BackgroundLocationStatus result) const noexcept {
|
|
1472
|
+
_function->operator()(result);
|
|
1473
|
+
}
|
|
1474
|
+
private:
|
|
1475
|
+
std::unique_ptr<std::function<void(const BackgroundLocationStatus& /* result */)>> _function;
|
|
1476
|
+
} SWIFT_NONCOPYABLE;
|
|
1477
|
+
Func_void_BackgroundLocationStatus create_Func_void_BackgroundLocationStatus(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1478
|
+
inline Func_void_BackgroundLocationStatus_Wrapper wrap_Func_void_BackgroundLocationStatus(Func_void_BackgroundLocationStatus value) noexcept {
|
|
1479
|
+
return Func_void_BackgroundLocationStatus_Wrapper(std::move(value));
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
// pragma MARK: std::optional<DetectedActivity>
|
|
1483
|
+
/**
|
|
1484
|
+
* Specialized version of `std::optional<DetectedActivity>`.
|
|
1485
|
+
*/
|
|
1486
|
+
using std__optional_DetectedActivity_ = std::optional<DetectedActivity>;
|
|
1487
|
+
inline std::optional<DetectedActivity> create_std__optional_DetectedActivity_(const DetectedActivity& value) noexcept {
|
|
1488
|
+
return std::optional<DetectedActivity>(value);
|
|
1489
|
+
}
|
|
1490
|
+
inline bool has_value_std__optional_DetectedActivity_(const std::optional<DetectedActivity>& optional) noexcept {
|
|
1491
|
+
return optional.has_value();
|
|
1492
|
+
}
|
|
1493
|
+
inline DetectedActivity get_std__optional_DetectedActivity_(const std::optional<DetectedActivity>& optional) noexcept {
|
|
1494
|
+
return optional.value();
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
// pragma MARK: std::optional<BatterySnapshot>
|
|
1498
|
+
/**
|
|
1499
|
+
* Specialized version of `std::optional<BatterySnapshot>`.
|
|
1500
|
+
*/
|
|
1501
|
+
using std__optional_BatterySnapshot_ = std::optional<BatterySnapshot>;
|
|
1502
|
+
inline std::optional<BatterySnapshot> create_std__optional_BatterySnapshot_(const BatterySnapshot& value) noexcept {
|
|
1503
|
+
return std::optional<BatterySnapshot>(value);
|
|
1504
|
+
}
|
|
1505
|
+
inline bool has_value_std__optional_BatterySnapshot_(const std::optional<BatterySnapshot>& optional) noexcept {
|
|
1506
|
+
return optional.has_value();
|
|
1507
|
+
}
|
|
1508
|
+
inline BatterySnapshot get_std__optional_BatterySnapshot_(const std::optional<BatterySnapshot>& optional) noexcept {
|
|
1509
|
+
return optional.value();
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
// pragma MARK: std::optional<BackgroundLocation>
|
|
1513
|
+
/**
|
|
1514
|
+
* Specialized version of `std::optional<BackgroundLocation>`.
|
|
1515
|
+
*/
|
|
1516
|
+
using std__optional_BackgroundLocation_ = std::optional<BackgroundLocation>;
|
|
1517
|
+
inline std::optional<BackgroundLocation> create_std__optional_BackgroundLocation_(const BackgroundLocation& value) noexcept {
|
|
1518
|
+
return std::optional<BackgroundLocation>(value);
|
|
1519
|
+
}
|
|
1520
|
+
inline bool has_value_std__optional_BackgroundLocation_(const std::optional<BackgroundLocation>& optional) noexcept {
|
|
1521
|
+
return optional.has_value();
|
|
1522
|
+
}
|
|
1523
|
+
inline BackgroundLocation get_std__optional_BackgroundLocation_(const std::optional<BackgroundLocation>& optional) noexcept {
|
|
1524
|
+
return optional.value();
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
// pragma MARK: std::optional<GeofenceEvent>
|
|
1528
|
+
/**
|
|
1529
|
+
* Specialized version of `std::optional<GeofenceEvent>`.
|
|
1530
|
+
*/
|
|
1531
|
+
using std__optional_GeofenceEvent_ = std::optional<GeofenceEvent>;
|
|
1532
|
+
inline std::optional<GeofenceEvent> create_std__optional_GeofenceEvent_(const GeofenceEvent& value) noexcept {
|
|
1533
|
+
return std::optional<GeofenceEvent>(value);
|
|
1534
|
+
}
|
|
1535
|
+
inline bool has_value_std__optional_GeofenceEvent_(const std::optional<GeofenceEvent>& optional) noexcept {
|
|
1536
|
+
return optional.has_value();
|
|
1537
|
+
}
|
|
1538
|
+
inline GeofenceEvent get_std__optional_GeofenceEvent_(const std::optional<GeofenceEvent>& optional) noexcept {
|
|
1539
|
+
return optional.value();
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
// pragma MARK: std::vector<std::string>
|
|
1543
|
+
/**
|
|
1544
|
+
* Specialized version of `std::vector<std::string>`.
|
|
1545
|
+
*/
|
|
1546
|
+
using std__vector_std__string_ = std::vector<std::string>;
|
|
1547
|
+
inline std::vector<std::string> create_std__vector_std__string_(size_t size) noexcept {
|
|
1548
|
+
std::vector<std::string> vector;
|
|
1549
|
+
vector.reserve(size);
|
|
1550
|
+
return vector;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
// pragma MARK: std::optional<BackgroundHttpSyncResult>
|
|
1554
|
+
/**
|
|
1555
|
+
* Specialized version of `std::optional<BackgroundHttpSyncResult>`.
|
|
1556
|
+
*/
|
|
1557
|
+
using std__optional_BackgroundHttpSyncResult_ = std::optional<BackgroundHttpSyncResult>;
|
|
1558
|
+
inline std::optional<BackgroundHttpSyncResult> create_std__optional_BackgroundHttpSyncResult_(const BackgroundHttpSyncResult& value) noexcept {
|
|
1559
|
+
return std::optional<BackgroundHttpSyncResult>(value);
|
|
1560
|
+
}
|
|
1561
|
+
inline bool has_value_std__optional_BackgroundHttpSyncResult_(const std::optional<BackgroundHttpSyncResult>& optional) noexcept {
|
|
1562
|
+
return optional.has_value();
|
|
1563
|
+
}
|
|
1564
|
+
inline BackgroundHttpSyncResult get_std__optional_BackgroundHttpSyncResult_(const std::optional<BackgroundHttpSyncResult>& optional) noexcept {
|
|
1565
|
+
return optional.value();
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
// pragma MARK: std::function<void(const BackgroundEventEnvelope& /* event */)>
|
|
1569
|
+
/**
|
|
1570
|
+
* Specialized version of `std::function<void(const BackgroundEventEnvelope&)>`.
|
|
1571
|
+
*/
|
|
1572
|
+
using Func_void_BackgroundEventEnvelope = std::function<void(const BackgroundEventEnvelope& /* event */)>;
|
|
1573
|
+
/**
|
|
1574
|
+
* Wrapper class for a `std::function<void(const BackgroundEventEnvelope& / * event * /)>`, this can be used from Swift.
|
|
1575
|
+
*/
|
|
1576
|
+
class Func_void_BackgroundEventEnvelope_Wrapper final {
|
|
1577
|
+
public:
|
|
1578
|
+
explicit Func_void_BackgroundEventEnvelope_Wrapper(std::function<void(const BackgroundEventEnvelope& /* event */)>&& func): _function(std::make_unique<std::function<void(const BackgroundEventEnvelope& /* event */)>>(std::move(func))) {}
|
|
1579
|
+
inline void call(BackgroundEventEnvelope event) const noexcept {
|
|
1580
|
+
_function->operator()(event);
|
|
1581
|
+
}
|
|
1582
|
+
private:
|
|
1583
|
+
std::unique_ptr<std::function<void(const BackgroundEventEnvelope& /* event */)>> _function;
|
|
1584
|
+
} SWIFT_NONCOPYABLE;
|
|
1585
|
+
Func_void_BackgroundEventEnvelope create_Func_void_BackgroundEventEnvelope(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1586
|
+
inline Func_void_BackgroundEventEnvelope_Wrapper wrap_Func_void_BackgroundEventEnvelope(Func_void_BackgroundEventEnvelope value) noexcept {
|
|
1587
|
+
return Func_void_BackgroundEventEnvelope_Wrapper(std::move(value));
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
// pragma MARK: std::function<void(const BackgroundLocation& /* location */)>
|
|
1591
|
+
/**
|
|
1592
|
+
* Specialized version of `std::function<void(const BackgroundLocation&)>`.
|
|
1593
|
+
*/
|
|
1594
|
+
using Func_void_BackgroundLocation = std::function<void(const BackgroundLocation& /* location */)>;
|
|
1595
|
+
/**
|
|
1596
|
+
* Wrapper class for a `std::function<void(const BackgroundLocation& / * location * /)>`, this can be used from Swift.
|
|
1597
|
+
*/
|
|
1598
|
+
class Func_void_BackgroundLocation_Wrapper final {
|
|
1599
|
+
public:
|
|
1600
|
+
explicit Func_void_BackgroundLocation_Wrapper(std::function<void(const BackgroundLocation& /* location */)>&& func): _function(std::make_unique<std::function<void(const BackgroundLocation& /* location */)>>(std::move(func))) {}
|
|
1601
|
+
inline void call(BackgroundLocation location) const noexcept {
|
|
1602
|
+
_function->operator()(location);
|
|
1603
|
+
}
|
|
1604
|
+
private:
|
|
1605
|
+
std::unique_ptr<std::function<void(const BackgroundLocation& /* location */)>> _function;
|
|
1606
|
+
} SWIFT_NONCOPYABLE;
|
|
1607
|
+
Func_void_BackgroundLocation create_Func_void_BackgroundLocation(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1608
|
+
inline Func_void_BackgroundLocation_Wrapper wrap_Func_void_BackgroundLocation(Func_void_BackgroundLocation value) noexcept {
|
|
1609
|
+
return Func_void_BackgroundLocation_Wrapper(std::move(value));
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
// pragma MARK: std::vector<StoredBackgroundLocation>
|
|
1613
|
+
/**
|
|
1614
|
+
* Specialized version of `std::vector<StoredBackgroundLocation>`.
|
|
1615
|
+
*/
|
|
1616
|
+
using std__vector_StoredBackgroundLocation_ = std::vector<StoredBackgroundLocation>;
|
|
1617
|
+
inline std::vector<StoredBackgroundLocation> create_std__vector_StoredBackgroundLocation_(size_t size) noexcept {
|
|
1618
|
+
std::vector<StoredBackgroundLocation> vector;
|
|
1619
|
+
vector.reserve(size);
|
|
1620
|
+
return vector;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<StoredBackgroundLocation>>>
|
|
1624
|
+
/**
|
|
1625
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<StoredBackgroundLocation>>>`.
|
|
1626
|
+
*/
|
|
1627
|
+
using std__shared_ptr_Promise_std__vector_StoredBackgroundLocation___ = std::shared_ptr<Promise<std::vector<StoredBackgroundLocation>>>;
|
|
1628
|
+
inline std::shared_ptr<Promise<std::vector<StoredBackgroundLocation>>> create_std__shared_ptr_Promise_std__vector_StoredBackgroundLocation___() noexcept {
|
|
1629
|
+
return Promise<std::vector<StoredBackgroundLocation>>::create();
|
|
1630
|
+
}
|
|
1631
|
+
inline PromiseHolder<std::vector<StoredBackgroundLocation>> wrap_std__shared_ptr_Promise_std__vector_StoredBackgroundLocation___(std::shared_ptr<Promise<std::vector<StoredBackgroundLocation>>> promise) noexcept {
|
|
1632
|
+
return PromiseHolder<std::vector<StoredBackgroundLocation>>(std::move(promise));
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
// pragma MARK: std::function<void(const std::vector<StoredBackgroundLocation>& /* result */)>
|
|
1636
|
+
/**
|
|
1637
|
+
* Specialized version of `std::function<void(const std::vector<StoredBackgroundLocation>&)>`.
|
|
1638
|
+
*/
|
|
1639
|
+
using Func_void_std__vector_StoredBackgroundLocation_ = std::function<void(const std::vector<StoredBackgroundLocation>& /* result */)>;
|
|
1640
|
+
/**
|
|
1641
|
+
* Wrapper class for a `std::function<void(const std::vector<StoredBackgroundLocation>& / * result * /)>`, this can be used from Swift.
|
|
1642
|
+
*/
|
|
1643
|
+
class Func_void_std__vector_StoredBackgroundLocation__Wrapper final {
|
|
1644
|
+
public:
|
|
1645
|
+
explicit Func_void_std__vector_StoredBackgroundLocation__Wrapper(std::function<void(const std::vector<StoredBackgroundLocation>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::vector<StoredBackgroundLocation>& /* result */)>>(std::move(func))) {}
|
|
1646
|
+
inline void call(std::vector<StoredBackgroundLocation> result) const noexcept {
|
|
1647
|
+
_function->operator()(result);
|
|
1648
|
+
}
|
|
1649
|
+
private:
|
|
1650
|
+
std::unique_ptr<std::function<void(const std::vector<StoredBackgroundLocation>& /* result */)>> _function;
|
|
1651
|
+
} SWIFT_NONCOPYABLE;
|
|
1652
|
+
Func_void_std__vector_StoredBackgroundLocation_ create_Func_void_std__vector_StoredBackgroundLocation_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1653
|
+
inline Func_void_std__vector_StoredBackgroundLocation__Wrapper wrap_Func_void_std__vector_StoredBackgroundLocation_(Func_void_std__vector_StoredBackgroundLocation_ value) noexcept {
|
|
1654
|
+
return Func_void_std__vector_StoredBackgroundLocation__Wrapper(std::move(value));
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
// pragma MARK: std::optional<GetStoredBackgroundLocationsOptions>
|
|
1658
|
+
/**
|
|
1659
|
+
* Specialized version of `std::optional<GetStoredBackgroundLocationsOptions>`.
|
|
1660
|
+
*/
|
|
1661
|
+
using std__optional_GetStoredBackgroundLocationsOptions_ = std::optional<GetStoredBackgroundLocationsOptions>;
|
|
1662
|
+
inline std::optional<GetStoredBackgroundLocationsOptions> create_std__optional_GetStoredBackgroundLocationsOptions_(const GetStoredBackgroundLocationsOptions& value) noexcept {
|
|
1663
|
+
return std::optional<GetStoredBackgroundLocationsOptions>(value);
|
|
1664
|
+
}
|
|
1665
|
+
inline bool has_value_std__optional_GetStoredBackgroundLocationsOptions_(const std::optional<GetStoredBackgroundLocationsOptions>& optional) noexcept {
|
|
1666
|
+
return optional.has_value();
|
|
1667
|
+
}
|
|
1668
|
+
inline GetStoredBackgroundLocationsOptions get_std__optional_GetStoredBackgroundLocationsOptions_(const std::optional<GetStoredBackgroundLocationsOptions>& optional) noexcept {
|
|
1669
|
+
return optional.value();
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
// pragma MARK: std::optional<std::vector<std::string>>
|
|
1673
|
+
/**
|
|
1674
|
+
* Specialized version of `std::optional<std::vector<std::string>>`.
|
|
1675
|
+
*/
|
|
1676
|
+
using std__optional_std__vector_std__string__ = std::optional<std::vector<std::string>>;
|
|
1677
|
+
inline std::optional<std::vector<std::string>> create_std__optional_std__vector_std__string__(const std::vector<std::string>& value) noexcept {
|
|
1678
|
+
return std::optional<std::vector<std::string>>(value);
|
|
1679
|
+
}
|
|
1680
|
+
inline bool has_value_std__optional_std__vector_std__string__(const std::optional<std::vector<std::string>>& optional) noexcept {
|
|
1681
|
+
return optional.has_value();
|
|
1682
|
+
}
|
|
1683
|
+
inline std::vector<std::string> get_std__optional_std__vector_std__string__(const std::optional<std::vector<std::string>>& optional) noexcept {
|
|
1684
|
+
return optional.value();
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
// pragma MARK: std::vector<StoredBackgroundEventEnvelope>
|
|
1688
|
+
/**
|
|
1689
|
+
* Specialized version of `std::vector<StoredBackgroundEventEnvelope>`.
|
|
1690
|
+
*/
|
|
1691
|
+
using std__vector_StoredBackgroundEventEnvelope_ = std::vector<StoredBackgroundEventEnvelope>;
|
|
1692
|
+
inline std::vector<StoredBackgroundEventEnvelope> create_std__vector_StoredBackgroundEventEnvelope_(size_t size) noexcept {
|
|
1693
|
+
std::vector<StoredBackgroundEventEnvelope> vector;
|
|
1694
|
+
vector.reserve(size);
|
|
1695
|
+
return vector;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<StoredBackgroundEventEnvelope>>>
|
|
1699
|
+
/**
|
|
1700
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<StoredBackgroundEventEnvelope>>>`.
|
|
1701
|
+
*/
|
|
1702
|
+
using std__shared_ptr_Promise_std__vector_StoredBackgroundEventEnvelope___ = std::shared_ptr<Promise<std::vector<StoredBackgroundEventEnvelope>>>;
|
|
1703
|
+
inline std::shared_ptr<Promise<std::vector<StoredBackgroundEventEnvelope>>> create_std__shared_ptr_Promise_std__vector_StoredBackgroundEventEnvelope___() noexcept {
|
|
1704
|
+
return Promise<std::vector<StoredBackgroundEventEnvelope>>::create();
|
|
1705
|
+
}
|
|
1706
|
+
inline PromiseHolder<std::vector<StoredBackgroundEventEnvelope>> wrap_std__shared_ptr_Promise_std__vector_StoredBackgroundEventEnvelope___(std::shared_ptr<Promise<std::vector<StoredBackgroundEventEnvelope>>> promise) noexcept {
|
|
1707
|
+
return PromiseHolder<std::vector<StoredBackgroundEventEnvelope>>(std::move(promise));
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
// pragma MARK: std::function<void(const std::vector<StoredBackgroundEventEnvelope>& /* result */)>
|
|
1711
|
+
/**
|
|
1712
|
+
* Specialized version of `std::function<void(const std::vector<StoredBackgroundEventEnvelope>&)>`.
|
|
1713
|
+
*/
|
|
1714
|
+
using Func_void_std__vector_StoredBackgroundEventEnvelope_ = std::function<void(const std::vector<StoredBackgroundEventEnvelope>& /* result */)>;
|
|
1715
|
+
/**
|
|
1716
|
+
* Wrapper class for a `std::function<void(const std::vector<StoredBackgroundEventEnvelope>& / * result * /)>`, this can be used from Swift.
|
|
1717
|
+
*/
|
|
1718
|
+
class Func_void_std__vector_StoredBackgroundEventEnvelope__Wrapper final {
|
|
1719
|
+
public:
|
|
1720
|
+
explicit Func_void_std__vector_StoredBackgroundEventEnvelope__Wrapper(std::function<void(const std::vector<StoredBackgroundEventEnvelope>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::vector<StoredBackgroundEventEnvelope>& /* result */)>>(std::move(func))) {}
|
|
1721
|
+
inline void call(std::vector<StoredBackgroundEventEnvelope> result) const noexcept {
|
|
1722
|
+
_function->operator()(result);
|
|
1723
|
+
}
|
|
1724
|
+
private:
|
|
1725
|
+
std::unique_ptr<std::function<void(const std::vector<StoredBackgroundEventEnvelope>& /* result */)>> _function;
|
|
1726
|
+
} SWIFT_NONCOPYABLE;
|
|
1727
|
+
Func_void_std__vector_StoredBackgroundEventEnvelope_ create_Func_void_std__vector_StoredBackgroundEventEnvelope_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1728
|
+
inline Func_void_std__vector_StoredBackgroundEventEnvelope__Wrapper wrap_Func_void_std__vector_StoredBackgroundEventEnvelope_(Func_void_std__vector_StoredBackgroundEventEnvelope_ value) noexcept {
|
|
1729
|
+
return Func_void_std__vector_StoredBackgroundEventEnvelope__Wrapper(std::move(value));
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
// pragma MARK: std::vector<BackgroundEventType>
|
|
1733
|
+
/**
|
|
1734
|
+
* Specialized version of `std::vector<BackgroundEventType>`.
|
|
1735
|
+
*/
|
|
1736
|
+
using std__vector_BackgroundEventType_ = std::vector<BackgroundEventType>;
|
|
1737
|
+
inline std::vector<BackgroundEventType> create_std__vector_BackgroundEventType_(size_t size) noexcept {
|
|
1738
|
+
std::vector<BackgroundEventType> vector;
|
|
1739
|
+
vector.reserve(size);
|
|
1740
|
+
return vector;
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
// pragma MARK: std::optional<std::vector<BackgroundEventType>>
|
|
1744
|
+
/**
|
|
1745
|
+
* Specialized version of `std::optional<std::vector<BackgroundEventType>>`.
|
|
1746
|
+
*/
|
|
1747
|
+
using std__optional_std__vector_BackgroundEventType__ = std::optional<std::vector<BackgroundEventType>>;
|
|
1748
|
+
inline std::optional<std::vector<BackgroundEventType>> create_std__optional_std__vector_BackgroundEventType__(const std::vector<BackgroundEventType>& value) noexcept {
|
|
1749
|
+
return std::optional<std::vector<BackgroundEventType>>(value);
|
|
1750
|
+
}
|
|
1751
|
+
inline bool has_value_std__optional_std__vector_BackgroundEventType__(const std::optional<std::vector<BackgroundEventType>>& optional) noexcept {
|
|
1752
|
+
return optional.has_value();
|
|
1753
|
+
}
|
|
1754
|
+
inline std::vector<BackgroundEventType> get_std__optional_std__vector_BackgroundEventType__(const std::optional<std::vector<BackgroundEventType>>& optional) noexcept {
|
|
1755
|
+
return optional.value();
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
// pragma MARK: std::optional<GetStoredBackgroundEventsOptions>
|
|
1759
|
+
/**
|
|
1760
|
+
* Specialized version of `std::optional<GetStoredBackgroundEventsOptions>`.
|
|
1761
|
+
*/
|
|
1762
|
+
using std__optional_GetStoredBackgroundEventsOptions_ = std::optional<GetStoredBackgroundEventsOptions>;
|
|
1763
|
+
inline std::optional<GetStoredBackgroundEventsOptions> create_std__optional_GetStoredBackgroundEventsOptions_(const GetStoredBackgroundEventsOptions& value) noexcept {
|
|
1764
|
+
return std::optional<GetStoredBackgroundEventsOptions>(value);
|
|
1765
|
+
}
|
|
1766
|
+
inline bool has_value_std__optional_GetStoredBackgroundEventsOptions_(const std::optional<GetStoredBackgroundEventsOptions>& optional) noexcept {
|
|
1767
|
+
return optional.has_value();
|
|
1768
|
+
}
|
|
1769
|
+
inline GetStoredBackgroundEventsOptions get_std__optional_GetStoredBackgroundEventsOptions_(const std::optional<GetStoredBackgroundEventsOptions>& optional) noexcept {
|
|
1770
|
+
return optional.value();
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
// pragma MARK: std::vector<GeofenceRegion>
|
|
1774
|
+
/**
|
|
1775
|
+
* Specialized version of `std::vector<GeofenceRegion>`.
|
|
1776
|
+
*/
|
|
1777
|
+
using std__vector_GeofenceRegion_ = std::vector<GeofenceRegion>;
|
|
1778
|
+
inline std::vector<GeofenceRegion> create_std__vector_GeofenceRegion_(size_t size) noexcept {
|
|
1779
|
+
std::vector<GeofenceRegion> vector;
|
|
1780
|
+
vector.reserve(size);
|
|
1781
|
+
return vector;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<GeofenceRegion>>>
|
|
1785
|
+
/**
|
|
1786
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<GeofenceRegion>>>`.
|
|
1787
|
+
*/
|
|
1788
|
+
using std__shared_ptr_Promise_std__vector_GeofenceRegion___ = std::shared_ptr<Promise<std::vector<GeofenceRegion>>>;
|
|
1789
|
+
inline std::shared_ptr<Promise<std::vector<GeofenceRegion>>> create_std__shared_ptr_Promise_std__vector_GeofenceRegion___() noexcept {
|
|
1790
|
+
return Promise<std::vector<GeofenceRegion>>::create();
|
|
1791
|
+
}
|
|
1792
|
+
inline PromiseHolder<std::vector<GeofenceRegion>> wrap_std__shared_ptr_Promise_std__vector_GeofenceRegion___(std::shared_ptr<Promise<std::vector<GeofenceRegion>>> promise) noexcept {
|
|
1793
|
+
return PromiseHolder<std::vector<GeofenceRegion>>(std::move(promise));
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
// pragma MARK: std::function<void(const std::vector<GeofenceRegion>& /* result */)>
|
|
1797
|
+
/**
|
|
1798
|
+
* Specialized version of `std::function<void(const std::vector<GeofenceRegion>&)>`.
|
|
1799
|
+
*/
|
|
1800
|
+
using Func_void_std__vector_GeofenceRegion_ = std::function<void(const std::vector<GeofenceRegion>& /* result */)>;
|
|
1801
|
+
/**
|
|
1802
|
+
* Wrapper class for a `std::function<void(const std::vector<GeofenceRegion>& / * result * /)>`, this can be used from Swift.
|
|
1803
|
+
*/
|
|
1804
|
+
class Func_void_std__vector_GeofenceRegion__Wrapper final {
|
|
1805
|
+
public:
|
|
1806
|
+
explicit Func_void_std__vector_GeofenceRegion__Wrapper(std::function<void(const std::vector<GeofenceRegion>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::vector<GeofenceRegion>& /* result */)>>(std::move(func))) {}
|
|
1807
|
+
inline void call(std::vector<GeofenceRegion> result) const noexcept {
|
|
1808
|
+
_function->operator()(result);
|
|
1809
|
+
}
|
|
1810
|
+
private:
|
|
1811
|
+
std::unique_ptr<std::function<void(const std::vector<GeofenceRegion>& /* result */)>> _function;
|
|
1812
|
+
} SWIFT_NONCOPYABLE;
|
|
1813
|
+
Func_void_std__vector_GeofenceRegion_ create_Func_void_std__vector_GeofenceRegion_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1814
|
+
inline Func_void_std__vector_GeofenceRegion__Wrapper wrap_Func_void_std__vector_GeofenceRegion_(Func_void_std__vector_GeofenceRegion_ value) noexcept {
|
|
1815
|
+
return Func_void_std__vector_GeofenceRegion__Wrapper(std::move(value));
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
// pragma MARK: std::shared_ptr<Promise<BackgroundHttpSyncResult>>
|
|
1819
|
+
/**
|
|
1820
|
+
* Specialized version of `std::shared_ptr<Promise<BackgroundHttpSyncResult>>`.
|
|
1821
|
+
*/
|
|
1822
|
+
using std__shared_ptr_Promise_BackgroundHttpSyncResult__ = std::shared_ptr<Promise<BackgroundHttpSyncResult>>;
|
|
1823
|
+
inline std::shared_ptr<Promise<BackgroundHttpSyncResult>> create_std__shared_ptr_Promise_BackgroundHttpSyncResult__() noexcept {
|
|
1824
|
+
return Promise<BackgroundHttpSyncResult>::create();
|
|
1825
|
+
}
|
|
1826
|
+
inline PromiseHolder<BackgroundHttpSyncResult> wrap_std__shared_ptr_Promise_BackgroundHttpSyncResult__(std::shared_ptr<Promise<BackgroundHttpSyncResult>> promise) noexcept {
|
|
1827
|
+
return PromiseHolder<BackgroundHttpSyncResult>(std::move(promise));
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
// pragma MARK: std::function<void(const BackgroundHttpSyncResult& /* result */)>
|
|
1831
|
+
/**
|
|
1832
|
+
* Specialized version of `std::function<void(const BackgroundHttpSyncResult&)>`.
|
|
1833
|
+
*/
|
|
1834
|
+
using Func_void_BackgroundHttpSyncResult = std::function<void(const BackgroundHttpSyncResult& /* result */)>;
|
|
1835
|
+
/**
|
|
1836
|
+
* Wrapper class for a `std::function<void(const BackgroundHttpSyncResult& / * result * /)>`, this can be used from Swift.
|
|
1837
|
+
*/
|
|
1838
|
+
class Func_void_BackgroundHttpSyncResult_Wrapper final {
|
|
1839
|
+
public:
|
|
1840
|
+
explicit Func_void_BackgroundHttpSyncResult_Wrapper(std::function<void(const BackgroundHttpSyncResult& /* result */)>&& func): _function(std::make_unique<std::function<void(const BackgroundHttpSyncResult& /* result */)>>(std::move(func))) {}
|
|
1841
|
+
inline void call(BackgroundHttpSyncResult result) const noexcept {
|
|
1842
|
+
_function->operator()(result);
|
|
1843
|
+
}
|
|
1844
|
+
private:
|
|
1845
|
+
std::unique_ptr<std::function<void(const BackgroundHttpSyncResult& /* result */)>> _function;
|
|
1846
|
+
} SWIFT_NONCOPYABLE;
|
|
1847
|
+
Func_void_BackgroundHttpSyncResult create_Func_void_BackgroundHttpSyncResult(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1848
|
+
inline Func_void_BackgroundHttpSyncResult_Wrapper wrap_Func_void_BackgroundHttpSyncResult(Func_void_BackgroundHttpSyncResult value) noexcept {
|
|
1849
|
+
return Func_void_BackgroundHttpSyncResult_Wrapper(std::move(value));
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
// pragma MARK: std::shared_ptr<HybridNitroBackgroundLocationSpec>
|
|
1853
|
+
/**
|
|
1854
|
+
* Specialized version of `std::shared_ptr<HybridNitroBackgroundLocationSpec>`.
|
|
1855
|
+
*/
|
|
1856
|
+
using std__shared_ptr_HybridNitroBackgroundLocationSpec_ = std::shared_ptr<HybridNitroBackgroundLocationSpec>;
|
|
1857
|
+
std::shared_ptr<HybridNitroBackgroundLocationSpec> create_std__shared_ptr_HybridNitroBackgroundLocationSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
1858
|
+
void* NON_NULL get_std__shared_ptr_HybridNitroBackgroundLocationSpec_(std__shared_ptr_HybridNitroBackgroundLocationSpec_ cppType);
|
|
1859
|
+
|
|
1860
|
+
// pragma MARK: std::weak_ptr<HybridNitroBackgroundLocationSpec>
|
|
1861
|
+
using std__weak_ptr_HybridNitroBackgroundLocationSpec_ = std::weak_ptr<HybridNitroBackgroundLocationSpec>;
|
|
1862
|
+
inline std__weak_ptr_HybridNitroBackgroundLocationSpec_ weakify_std__shared_ptr_HybridNitroBackgroundLocationSpec_(const std::shared_ptr<HybridNitroBackgroundLocationSpec>& strong) noexcept { return strong; }
|
|
1863
|
+
|
|
1864
|
+
// pragma MARK: Result<std::shared_ptr<Promise<BackgroundPermissionResult>>>
|
|
1865
|
+
using Result_std__shared_ptr_Promise_BackgroundPermissionResult___ = Result<std::shared_ptr<Promise<BackgroundPermissionResult>>>;
|
|
1866
|
+
inline Result_std__shared_ptr_Promise_BackgroundPermissionResult___ create_Result_std__shared_ptr_Promise_BackgroundPermissionResult___(const std::shared_ptr<Promise<BackgroundPermissionResult>>& value) noexcept {
|
|
1867
|
+
return Result<std::shared_ptr<Promise<BackgroundPermissionResult>>>::withValue(value);
|
|
1868
|
+
}
|
|
1869
|
+
inline Result_std__shared_ptr_Promise_BackgroundPermissionResult___ create_Result_std__shared_ptr_Promise_BackgroundPermissionResult___(const std::exception_ptr& error) noexcept {
|
|
1870
|
+
return Result<std::shared_ptr<Promise<BackgroundPermissionResult>>>::withError(error);
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
// pragma MARK: Result<std::shared_ptr<Promise<void>>>
|
|
1874
|
+
using Result_std__shared_ptr_Promise_void___ = Result<std::shared_ptr<Promise<void>>>;
|
|
1875
|
+
inline Result_std__shared_ptr_Promise_void___ create_Result_std__shared_ptr_Promise_void___(const std::shared_ptr<Promise<void>>& value) noexcept {
|
|
1876
|
+
return Result<std::shared_ptr<Promise<void>>>::withValue(value);
|
|
1877
|
+
}
|
|
1878
|
+
inline Result_std__shared_ptr_Promise_void___ create_Result_std__shared_ptr_Promise_void___(const std::exception_ptr& error) noexcept {
|
|
1879
|
+
return Result<std::shared_ptr<Promise<void>>>::withError(error);
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::optional<BackgroundLocationOptions>>>>
|
|
1883
|
+
using Result_std__shared_ptr_Promise_std__optional_BackgroundLocationOptions____ = Result<std::shared_ptr<Promise<std::optional<BackgroundLocationOptions>>>>;
|
|
1884
|
+
inline Result_std__shared_ptr_Promise_std__optional_BackgroundLocationOptions____ create_Result_std__shared_ptr_Promise_std__optional_BackgroundLocationOptions____(const std::shared_ptr<Promise<std::optional<BackgroundLocationOptions>>>& value) noexcept {
|
|
1885
|
+
return Result<std::shared_ptr<Promise<std::optional<BackgroundLocationOptions>>>>::withValue(value);
|
|
1886
|
+
}
|
|
1887
|
+
inline Result_std__shared_ptr_Promise_std__optional_BackgroundLocationOptions____ create_Result_std__shared_ptr_Promise_std__optional_BackgroundLocationOptions____(const std::exception_ptr& error) noexcept {
|
|
1888
|
+
return Result<std::shared_ptr<Promise<std::optional<BackgroundLocationOptions>>>>::withError(error);
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
// pragma MARK: Result<std::shared_ptr<Promise<BackgroundLocationStatus>>>
|
|
1892
|
+
using Result_std__shared_ptr_Promise_BackgroundLocationStatus___ = Result<std::shared_ptr<Promise<BackgroundLocationStatus>>>;
|
|
1893
|
+
inline Result_std__shared_ptr_Promise_BackgroundLocationStatus___ create_Result_std__shared_ptr_Promise_BackgroundLocationStatus___(const std::shared_ptr<Promise<BackgroundLocationStatus>>& value) noexcept {
|
|
1894
|
+
return Result<std::shared_ptr<Promise<BackgroundLocationStatus>>>::withValue(value);
|
|
1895
|
+
}
|
|
1896
|
+
inline Result_std__shared_ptr_Promise_BackgroundLocationStatus___ create_Result_std__shared_ptr_Promise_BackgroundLocationStatus___(const std::exception_ptr& error) noexcept {
|
|
1897
|
+
return Result<std::shared_ptr<Promise<BackgroundLocationStatus>>>::withError(error);
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<StoredBackgroundLocation>>>>
|
|
1901
|
+
using Result_std__shared_ptr_Promise_std__vector_StoredBackgroundLocation____ = Result<std::shared_ptr<Promise<std::vector<StoredBackgroundLocation>>>>;
|
|
1902
|
+
inline Result_std__shared_ptr_Promise_std__vector_StoredBackgroundLocation____ create_Result_std__shared_ptr_Promise_std__vector_StoredBackgroundLocation____(const std::shared_ptr<Promise<std::vector<StoredBackgroundLocation>>>& value) noexcept {
|
|
1903
|
+
return Result<std::shared_ptr<Promise<std::vector<StoredBackgroundLocation>>>>::withValue(value);
|
|
1904
|
+
}
|
|
1905
|
+
inline Result_std__shared_ptr_Promise_std__vector_StoredBackgroundLocation____ create_Result_std__shared_ptr_Promise_std__vector_StoredBackgroundLocation____(const std::exception_ptr& error) noexcept {
|
|
1906
|
+
return Result<std::shared_ptr<Promise<std::vector<StoredBackgroundLocation>>>>::withError(error);
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<StoredBackgroundEventEnvelope>>>>
|
|
1910
|
+
using Result_std__shared_ptr_Promise_std__vector_StoredBackgroundEventEnvelope____ = Result<std::shared_ptr<Promise<std::vector<StoredBackgroundEventEnvelope>>>>;
|
|
1911
|
+
inline Result_std__shared_ptr_Promise_std__vector_StoredBackgroundEventEnvelope____ create_Result_std__shared_ptr_Promise_std__vector_StoredBackgroundEventEnvelope____(const std::shared_ptr<Promise<std::vector<StoredBackgroundEventEnvelope>>>& value) noexcept {
|
|
1912
|
+
return Result<std::shared_ptr<Promise<std::vector<StoredBackgroundEventEnvelope>>>>::withValue(value);
|
|
1913
|
+
}
|
|
1914
|
+
inline Result_std__shared_ptr_Promise_std__vector_StoredBackgroundEventEnvelope____ create_Result_std__shared_ptr_Promise_std__vector_StoredBackgroundEventEnvelope____(const std::exception_ptr& error) noexcept {
|
|
1915
|
+
return Result<std::shared_ptr<Promise<std::vector<StoredBackgroundEventEnvelope>>>>::withError(error);
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<GeofenceRegion>>>>
|
|
1919
|
+
using Result_std__shared_ptr_Promise_std__vector_GeofenceRegion____ = Result<std::shared_ptr<Promise<std::vector<GeofenceRegion>>>>;
|
|
1920
|
+
inline Result_std__shared_ptr_Promise_std__vector_GeofenceRegion____ create_Result_std__shared_ptr_Promise_std__vector_GeofenceRegion____(const std::shared_ptr<Promise<std::vector<GeofenceRegion>>>& value) noexcept {
|
|
1921
|
+
return Result<std::shared_ptr<Promise<std::vector<GeofenceRegion>>>>::withValue(value);
|
|
1922
|
+
}
|
|
1923
|
+
inline Result_std__shared_ptr_Promise_std__vector_GeofenceRegion____ create_Result_std__shared_ptr_Promise_std__vector_GeofenceRegion____(const std::exception_ptr& error) noexcept {
|
|
1924
|
+
return Result<std::shared_ptr<Promise<std::vector<GeofenceRegion>>>>::withError(error);
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
// pragma MARK: Result<std::shared_ptr<Promise<BackgroundHttpSyncResult>>>
|
|
1928
|
+
using Result_std__shared_ptr_Promise_BackgroundHttpSyncResult___ = Result<std::shared_ptr<Promise<BackgroundHttpSyncResult>>>;
|
|
1929
|
+
inline Result_std__shared_ptr_Promise_BackgroundHttpSyncResult___ create_Result_std__shared_ptr_Promise_BackgroundHttpSyncResult___(const std::shared_ptr<Promise<BackgroundHttpSyncResult>>& value) noexcept {
|
|
1930
|
+
return Result<std::shared_ptr<Promise<BackgroundHttpSyncResult>>>::withValue(value);
|
|
1931
|
+
}
|
|
1932
|
+
inline Result_std__shared_ptr_Promise_BackgroundHttpSyncResult___ create_Result_std__shared_ptr_Promise_BackgroundHttpSyncResult___(const std::exception_ptr& error) noexcept {
|
|
1933
|
+
return Result<std::shared_ptr<Promise<BackgroundHttpSyncResult>>>::withError(error);
|
|
1934
|
+
}
|
|
1935
|
+
|
|
879
1936
|
} // namespace margelo::nitro::nitrogeolocation::bridge::swift
|