securiti-consent-sdk 1.132.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/NitroSecuritiConsentSdk.podspec +37 -0
- package/README.md +45 -0
- package/android/CMakeLists.txt +29 -0
- package/android/build.gradle +146 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/cpp/cpp-adapter.cpp +6 -0
- package/android/src/main/java/com/margelo/nitro/securiticonsentsdk/HybridConsentSDK.kt +669 -0
- package/android/src/main/java/com/margelo/nitro/securiticonsentsdk/NitroSecuritiConsentSdkPackage.java +33 -0
- package/ios/Bridge.h +10 -0
- package/ios/HybridConsentSDK.swift +640 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/android/NitroSecuritiConsentSdk+autolinking.cmake +78 -0
- package/nitrogen/generated/android/NitroSecuritiConsentSdk+autolinking.gradle +27 -0
- package/nitrogen/generated/android/NitroSecuritiConsentSdkOnLoad.cpp +48 -0
- package/nitrogen/generated/android/NitroSecuritiConsentSdkOnLoad.hpp +25 -0
- package/nitrogen/generated/android/c++/JAppPermission.hpp +86 -0
- package/nitrogen/generated/android/c++/JBannerConfig.hpp +194 -0
- package/nitrogen/generated/android/c++/JCmpSDKOptions.hpp +94 -0
- package/nitrogen/generated/android/c++/JCustomColors.hpp +82 -0
- package/nitrogen/generated/android/c++/JFunc_void_bool.hpp +74 -0
- package/nitrogen/generated/android/c++/JHybridConsentSDKSpec.cpp +277 -0
- package/nitrogen/generated/android/c++/JHybridConsentSDKSpec.hpp +78 -0
- package/nitrogen/generated/android/c++/JPermissionConsent.hpp +61 -0
- package/nitrogen/generated/android/c++/JPostConsentsRequest.hpp +137 -0
- package/nitrogen/generated/android/c++/JPurpose.hpp +118 -0
- package/nitrogen/generated/android/c++/JPurposeConsent.hpp +65 -0
- package/nitrogen/generated/android/c++/JSDK.hpp +104 -0
- package/nitrogen/generated/android/c++/JSettingsPrompt.hpp +88 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/AppPermission.kt +34 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/BannerConfig.kt +57 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CmpSDKOptions.kt +36 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CustomColors.kt +33 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/Func_void_bool.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/HybridConsentSDKSpec.kt +121 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/NitroSecuritiConsentSdkOnLoad.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PermissionConsent.kt +28 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PostConsentsRequest.kt +37 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/Purpose.kt +37 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PurposeConsent.kt +29 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/SDK.kt +34 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/SettingsPrompt.kt +30 -0
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk+autolinking.rb +60 -0
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Bridge.cpp +96 -0
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Bridge.hpp +604 -0
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Umbrella.hpp +78 -0
- package/nitrogen/generated/ios/NitroSecuritiConsentSdkAutolinking.mm +33 -0
- package/nitrogen/generated/ios/NitroSecuritiConsentSdkAutolinking.swift +25 -0
- package/nitrogen/generated/ios/c++/HybridConsentSDKSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridConsentSDKSpecSwift.hpp +223 -0
- package/nitrogen/generated/ios/swift/AppPermission.swift +267 -0
- package/nitrogen/generated/ios/swift/BannerConfig.swift +918 -0
- package/nitrogen/generated/ios/swift/CmpSDKOptions.swift +217 -0
- package/nitrogen/generated/ios/swift/CustomColors.swift +256 -0
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__optional_BannerConfig_.swift +52 -0
- package/nitrogen/generated/ios/swift/Func_void_std__optional_SettingsPrompt_.swift +52 -0
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_AppPermission_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_Purpose_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_SDK_.swift +46 -0
- package/nitrogen/generated/ios/swift/HybridConsentSDKSpec.swift +64 -0
- package/nitrogen/generated/ios/swift/HybridConsentSDKSpec_cxx.swift +398 -0
- package/nitrogen/generated/ios/swift/PermissionConsent.swift +57 -0
- package/nitrogen/generated/ios/swift/PostConsentsRequest.swift +216 -0
- package/nitrogen/generated/ios/swift/Purpose.swift +354 -0
- package/nitrogen/generated/ios/swift/PurposeConsent.swift +68 -0
- package/nitrogen/generated/ios/swift/SDK.swift +285 -0
- package/nitrogen/generated/ios/swift/SettingsPrompt.swift +181 -0
- package/nitrogen/generated/shared/c++/AppPermission.hpp +102 -0
- package/nitrogen/generated/shared/c++/BannerConfig.hpp +197 -0
- package/nitrogen/generated/shared/c++/CmpSDKOptions.hpp +110 -0
- package/nitrogen/generated/shared/c++/CustomColors.hpp +98 -0
- package/nitrogen/generated/shared/c++/HybridConsentSDKSpec.cpp +37 -0
- package/nitrogen/generated/shared/c++/HybridConsentSDKSpec.hpp +102 -0
- package/nitrogen/generated/shared/c++/PermissionConsent.hpp +77 -0
- package/nitrogen/generated/shared/c++/PostConsentsRequest.hpp +120 -0
- package/nitrogen/generated/shared/c++/Purpose.hpp +117 -0
- package/nitrogen/generated/shared/c++/PurposeConsent.hpp +81 -0
- package/nitrogen/generated/shared/c++/SDK.hpp +103 -0
- package/nitrogen/generated/shared/c++/SettingsPrompt.hpp +87 -0
- package/package.json +107 -0
- package/react-native.config.js +16 -0
- package/src/ConsentSDK.nitro.ts +232 -0
- package/src/index.ts +133 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// CmpSDKOptions.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Represents an instance of `CmpSDKOptions`, backed by a C++ struct.
|
|
12
|
+
*/
|
|
13
|
+
public typealias CmpSDKOptions = margelo.nitro.securiticonsentsdk.CmpSDKOptions
|
|
14
|
+
|
|
15
|
+
public extension CmpSDKOptions {
|
|
16
|
+
private typealias bridge = margelo.nitro.securiticonsentsdk.bridge.swift
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Create a new instance of `CmpSDKOptions`.
|
|
20
|
+
*/
|
|
21
|
+
init(appURL: String, cdnURL: String, tenantID: String, appID: String, testingMode: Bool, loggerLevel: String, consentsCheckInterval: Double, subjectId: String?, languageCode: String?, locationCode: String?, mode: String?) {
|
|
22
|
+
self.init(std.string(appURL), std.string(cdnURL), std.string(tenantID), std.string(appID), testingMode, std.string(loggerLevel), consentsCheckInterval, { () -> bridge.std__optional_std__string_ in
|
|
23
|
+
if let __unwrappedValue = subjectId {
|
|
24
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
25
|
+
} else {
|
|
26
|
+
return .init()
|
|
27
|
+
}
|
|
28
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
29
|
+
if let __unwrappedValue = languageCode {
|
|
30
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
31
|
+
} else {
|
|
32
|
+
return .init()
|
|
33
|
+
}
|
|
34
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
35
|
+
if let __unwrappedValue = locationCode {
|
|
36
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
37
|
+
} else {
|
|
38
|
+
return .init()
|
|
39
|
+
}
|
|
40
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
41
|
+
if let __unwrappedValue = mode {
|
|
42
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
43
|
+
} else {
|
|
44
|
+
return .init()
|
|
45
|
+
}
|
|
46
|
+
}())
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
var appURL: String {
|
|
50
|
+
@inline(__always)
|
|
51
|
+
get {
|
|
52
|
+
return String(self.__appURL)
|
|
53
|
+
}
|
|
54
|
+
@inline(__always)
|
|
55
|
+
set {
|
|
56
|
+
self.__appURL = std.string(newValue)
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
var cdnURL: String {
|
|
61
|
+
@inline(__always)
|
|
62
|
+
get {
|
|
63
|
+
return String(self.__cdnURL)
|
|
64
|
+
}
|
|
65
|
+
@inline(__always)
|
|
66
|
+
set {
|
|
67
|
+
self.__cdnURL = std.string(newValue)
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
var tenantID: String {
|
|
72
|
+
@inline(__always)
|
|
73
|
+
get {
|
|
74
|
+
return String(self.__tenantID)
|
|
75
|
+
}
|
|
76
|
+
@inline(__always)
|
|
77
|
+
set {
|
|
78
|
+
self.__tenantID = std.string(newValue)
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
var appID: String {
|
|
83
|
+
@inline(__always)
|
|
84
|
+
get {
|
|
85
|
+
return String(self.__appID)
|
|
86
|
+
}
|
|
87
|
+
@inline(__always)
|
|
88
|
+
set {
|
|
89
|
+
self.__appID = std.string(newValue)
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
var testingMode: Bool {
|
|
94
|
+
@inline(__always)
|
|
95
|
+
get {
|
|
96
|
+
return self.__testingMode
|
|
97
|
+
}
|
|
98
|
+
@inline(__always)
|
|
99
|
+
set {
|
|
100
|
+
self.__testingMode = newValue
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
var loggerLevel: String {
|
|
105
|
+
@inline(__always)
|
|
106
|
+
get {
|
|
107
|
+
return String(self.__loggerLevel)
|
|
108
|
+
}
|
|
109
|
+
@inline(__always)
|
|
110
|
+
set {
|
|
111
|
+
self.__loggerLevel = std.string(newValue)
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
var consentsCheckInterval: Double {
|
|
116
|
+
@inline(__always)
|
|
117
|
+
get {
|
|
118
|
+
return self.__consentsCheckInterval
|
|
119
|
+
}
|
|
120
|
+
@inline(__always)
|
|
121
|
+
set {
|
|
122
|
+
self.__consentsCheckInterval = newValue
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
var subjectId: String? {
|
|
127
|
+
@inline(__always)
|
|
128
|
+
get {
|
|
129
|
+
return { () -> String? in
|
|
130
|
+
if let __unwrapped = self.__subjectId.value {
|
|
131
|
+
return String(__unwrapped)
|
|
132
|
+
} else {
|
|
133
|
+
return nil
|
|
134
|
+
}
|
|
135
|
+
}()
|
|
136
|
+
}
|
|
137
|
+
@inline(__always)
|
|
138
|
+
set {
|
|
139
|
+
self.__subjectId = { () -> bridge.std__optional_std__string_ in
|
|
140
|
+
if let __unwrappedValue = newValue {
|
|
141
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
142
|
+
} else {
|
|
143
|
+
return .init()
|
|
144
|
+
}
|
|
145
|
+
}()
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
var languageCode: String? {
|
|
150
|
+
@inline(__always)
|
|
151
|
+
get {
|
|
152
|
+
return { () -> String? in
|
|
153
|
+
if let __unwrapped = self.__languageCode.value {
|
|
154
|
+
return String(__unwrapped)
|
|
155
|
+
} else {
|
|
156
|
+
return nil
|
|
157
|
+
}
|
|
158
|
+
}()
|
|
159
|
+
}
|
|
160
|
+
@inline(__always)
|
|
161
|
+
set {
|
|
162
|
+
self.__languageCode = { () -> bridge.std__optional_std__string_ in
|
|
163
|
+
if let __unwrappedValue = newValue {
|
|
164
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
165
|
+
} else {
|
|
166
|
+
return .init()
|
|
167
|
+
}
|
|
168
|
+
}()
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
var locationCode: String? {
|
|
173
|
+
@inline(__always)
|
|
174
|
+
get {
|
|
175
|
+
return { () -> String? in
|
|
176
|
+
if let __unwrapped = self.__locationCode.value {
|
|
177
|
+
return String(__unwrapped)
|
|
178
|
+
} else {
|
|
179
|
+
return nil
|
|
180
|
+
}
|
|
181
|
+
}()
|
|
182
|
+
}
|
|
183
|
+
@inline(__always)
|
|
184
|
+
set {
|
|
185
|
+
self.__locationCode = { () -> bridge.std__optional_std__string_ in
|
|
186
|
+
if let __unwrappedValue = newValue {
|
|
187
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
188
|
+
} else {
|
|
189
|
+
return .init()
|
|
190
|
+
}
|
|
191
|
+
}()
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
var mode: String? {
|
|
196
|
+
@inline(__always)
|
|
197
|
+
get {
|
|
198
|
+
return { () -> String? in
|
|
199
|
+
if let __unwrapped = self.__mode.value {
|
|
200
|
+
return String(__unwrapped)
|
|
201
|
+
} else {
|
|
202
|
+
return nil
|
|
203
|
+
}
|
|
204
|
+
}()
|
|
205
|
+
}
|
|
206
|
+
@inline(__always)
|
|
207
|
+
set {
|
|
208
|
+
self.__mode = { () -> bridge.std__optional_std__string_ in
|
|
209
|
+
if let __unwrappedValue = newValue {
|
|
210
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
211
|
+
} else {
|
|
212
|
+
return .init()
|
|
213
|
+
}
|
|
214
|
+
}()
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// CustomColors.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Represents an instance of `CustomColors`, backed by a C++ struct.
|
|
12
|
+
*/
|
|
13
|
+
public typealias CustomColors = margelo.nitro.securiticonsentsdk.CustomColors
|
|
14
|
+
|
|
15
|
+
public extension CustomColors {
|
|
16
|
+
private typealias bridge = margelo.nitro.securiticonsentsdk.bridge.swift
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Create a new instance of `CustomColors`.
|
|
20
|
+
*/
|
|
21
|
+
init(buttonBackground: String?, buttonText: String?, buttonBorder: String?, bannerBackground: String?, bannerText: String?, bannerLinks: String?, preferenceCenterFooterBackground: String?, preferenceCenterFooterSelector: String?) {
|
|
22
|
+
self.init({ () -> bridge.std__optional_std__string_ in
|
|
23
|
+
if let __unwrappedValue = buttonBackground {
|
|
24
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
25
|
+
} else {
|
|
26
|
+
return .init()
|
|
27
|
+
}
|
|
28
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
29
|
+
if let __unwrappedValue = buttonText {
|
|
30
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
31
|
+
} else {
|
|
32
|
+
return .init()
|
|
33
|
+
}
|
|
34
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
35
|
+
if let __unwrappedValue = buttonBorder {
|
|
36
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
37
|
+
} else {
|
|
38
|
+
return .init()
|
|
39
|
+
}
|
|
40
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
41
|
+
if let __unwrappedValue = bannerBackground {
|
|
42
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
43
|
+
} else {
|
|
44
|
+
return .init()
|
|
45
|
+
}
|
|
46
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
47
|
+
if let __unwrappedValue = bannerText {
|
|
48
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
49
|
+
} else {
|
|
50
|
+
return .init()
|
|
51
|
+
}
|
|
52
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
53
|
+
if let __unwrappedValue = bannerLinks {
|
|
54
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
55
|
+
} else {
|
|
56
|
+
return .init()
|
|
57
|
+
}
|
|
58
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
59
|
+
if let __unwrappedValue = preferenceCenterFooterBackground {
|
|
60
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
61
|
+
} else {
|
|
62
|
+
return .init()
|
|
63
|
+
}
|
|
64
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
65
|
+
if let __unwrappedValue = preferenceCenterFooterSelector {
|
|
66
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
67
|
+
} else {
|
|
68
|
+
return .init()
|
|
69
|
+
}
|
|
70
|
+
}())
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
var buttonBackground: String? {
|
|
74
|
+
@inline(__always)
|
|
75
|
+
get {
|
|
76
|
+
return { () -> String? in
|
|
77
|
+
if let __unwrapped = self.__buttonBackground.value {
|
|
78
|
+
return String(__unwrapped)
|
|
79
|
+
} else {
|
|
80
|
+
return nil
|
|
81
|
+
}
|
|
82
|
+
}()
|
|
83
|
+
}
|
|
84
|
+
@inline(__always)
|
|
85
|
+
set {
|
|
86
|
+
self.__buttonBackground = { () -> bridge.std__optional_std__string_ in
|
|
87
|
+
if let __unwrappedValue = newValue {
|
|
88
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
89
|
+
} else {
|
|
90
|
+
return .init()
|
|
91
|
+
}
|
|
92
|
+
}()
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
var buttonText: String? {
|
|
97
|
+
@inline(__always)
|
|
98
|
+
get {
|
|
99
|
+
return { () -> String? in
|
|
100
|
+
if let __unwrapped = self.__buttonText.value {
|
|
101
|
+
return String(__unwrapped)
|
|
102
|
+
} else {
|
|
103
|
+
return nil
|
|
104
|
+
}
|
|
105
|
+
}()
|
|
106
|
+
}
|
|
107
|
+
@inline(__always)
|
|
108
|
+
set {
|
|
109
|
+
self.__buttonText = { () -> bridge.std__optional_std__string_ in
|
|
110
|
+
if let __unwrappedValue = newValue {
|
|
111
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
112
|
+
} else {
|
|
113
|
+
return .init()
|
|
114
|
+
}
|
|
115
|
+
}()
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
var buttonBorder: String? {
|
|
120
|
+
@inline(__always)
|
|
121
|
+
get {
|
|
122
|
+
return { () -> String? in
|
|
123
|
+
if let __unwrapped = self.__buttonBorder.value {
|
|
124
|
+
return String(__unwrapped)
|
|
125
|
+
} else {
|
|
126
|
+
return nil
|
|
127
|
+
}
|
|
128
|
+
}()
|
|
129
|
+
}
|
|
130
|
+
@inline(__always)
|
|
131
|
+
set {
|
|
132
|
+
self.__buttonBorder = { () -> bridge.std__optional_std__string_ in
|
|
133
|
+
if let __unwrappedValue = newValue {
|
|
134
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
135
|
+
} else {
|
|
136
|
+
return .init()
|
|
137
|
+
}
|
|
138
|
+
}()
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
var bannerBackground: String? {
|
|
143
|
+
@inline(__always)
|
|
144
|
+
get {
|
|
145
|
+
return { () -> String? in
|
|
146
|
+
if let __unwrapped = self.__bannerBackground.value {
|
|
147
|
+
return String(__unwrapped)
|
|
148
|
+
} else {
|
|
149
|
+
return nil
|
|
150
|
+
}
|
|
151
|
+
}()
|
|
152
|
+
}
|
|
153
|
+
@inline(__always)
|
|
154
|
+
set {
|
|
155
|
+
self.__bannerBackground = { () -> bridge.std__optional_std__string_ in
|
|
156
|
+
if let __unwrappedValue = newValue {
|
|
157
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
158
|
+
} else {
|
|
159
|
+
return .init()
|
|
160
|
+
}
|
|
161
|
+
}()
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
var bannerText: String? {
|
|
166
|
+
@inline(__always)
|
|
167
|
+
get {
|
|
168
|
+
return { () -> String? in
|
|
169
|
+
if let __unwrapped = self.__bannerText.value {
|
|
170
|
+
return String(__unwrapped)
|
|
171
|
+
} else {
|
|
172
|
+
return nil
|
|
173
|
+
}
|
|
174
|
+
}()
|
|
175
|
+
}
|
|
176
|
+
@inline(__always)
|
|
177
|
+
set {
|
|
178
|
+
self.__bannerText = { () -> bridge.std__optional_std__string_ in
|
|
179
|
+
if let __unwrappedValue = newValue {
|
|
180
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
181
|
+
} else {
|
|
182
|
+
return .init()
|
|
183
|
+
}
|
|
184
|
+
}()
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
var bannerLinks: String? {
|
|
189
|
+
@inline(__always)
|
|
190
|
+
get {
|
|
191
|
+
return { () -> String? in
|
|
192
|
+
if let __unwrapped = self.__bannerLinks.value {
|
|
193
|
+
return String(__unwrapped)
|
|
194
|
+
} else {
|
|
195
|
+
return nil
|
|
196
|
+
}
|
|
197
|
+
}()
|
|
198
|
+
}
|
|
199
|
+
@inline(__always)
|
|
200
|
+
set {
|
|
201
|
+
self.__bannerLinks = { () -> bridge.std__optional_std__string_ in
|
|
202
|
+
if let __unwrappedValue = newValue {
|
|
203
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
204
|
+
} else {
|
|
205
|
+
return .init()
|
|
206
|
+
}
|
|
207
|
+
}()
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
var preferenceCenterFooterBackground: String? {
|
|
212
|
+
@inline(__always)
|
|
213
|
+
get {
|
|
214
|
+
return { () -> String? in
|
|
215
|
+
if let __unwrapped = self.__preferenceCenterFooterBackground.value {
|
|
216
|
+
return String(__unwrapped)
|
|
217
|
+
} else {
|
|
218
|
+
return nil
|
|
219
|
+
}
|
|
220
|
+
}()
|
|
221
|
+
}
|
|
222
|
+
@inline(__always)
|
|
223
|
+
set {
|
|
224
|
+
self.__preferenceCenterFooterBackground = { () -> bridge.std__optional_std__string_ in
|
|
225
|
+
if let __unwrappedValue = newValue {
|
|
226
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
227
|
+
} else {
|
|
228
|
+
return .init()
|
|
229
|
+
}
|
|
230
|
+
}()
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
var preferenceCenterFooterSelector: String? {
|
|
235
|
+
@inline(__always)
|
|
236
|
+
get {
|
|
237
|
+
return { () -> String? in
|
|
238
|
+
if let __unwrapped = self.__preferenceCenterFooterSelector.value {
|
|
239
|
+
return String(__unwrapped)
|
|
240
|
+
} else {
|
|
241
|
+
return nil
|
|
242
|
+
}
|
|
243
|
+
}()
|
|
244
|
+
}
|
|
245
|
+
@inline(__always)
|
|
246
|
+
set {
|
|
247
|
+
self.__preferenceCenterFooterSelector = { () -> bridge.std__optional_std__string_ in
|
|
248
|
+
if let __unwrappedValue = newValue {
|
|
249
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
250
|
+
} else {
|
|
251
|
+
return .init()
|
|
252
|
+
}
|
|
253
|
+
}()
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Func_void_bool.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Wraps a Swift `(_ value: Bool) -> Void` as a class.
|
|
12
|
+
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
13
|
+
*/
|
|
14
|
+
public final class Func_void_bool {
|
|
15
|
+
public typealias bridge = margelo.nitro.securiticonsentsdk.bridge.swift
|
|
16
|
+
|
|
17
|
+
private let closure: (_ value: Bool) -> Void
|
|
18
|
+
|
|
19
|
+
public init(_ closure: @escaping (_ value: Bool) -> Void) {
|
|
20
|
+
self.closure = closure
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@inline(__always)
|
|
24
|
+
public func call(value: Bool) -> Void {
|
|
25
|
+
self.closure(value)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Casts this instance to a retained unsafe raw pointer.
|
|
30
|
+
* This acquires one additional strong reference on the object!
|
|
31
|
+
*/
|
|
32
|
+
@inline(__always)
|
|
33
|
+
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
34
|
+
return Unmanaged.passRetained(self).toOpaque()
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Casts an unsafe pointer to a `Func_void_bool`.
|
|
39
|
+
* The pointer has to be a retained opaque `Unmanaged<Func_void_bool>`.
|
|
40
|
+
* This removes one strong reference from the object!
|
|
41
|
+
*/
|
|
42
|
+
@inline(__always)
|
|
43
|
+
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_bool {
|
|
44
|
+
return Unmanaged<Func_void_bool>.fromOpaque(pointer).takeRetainedValue()
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Func_void_std__exception_ptr.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Wraps a Swift `(_ error: Error) -> Void` as a class.
|
|
12
|
+
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
13
|
+
*/
|
|
14
|
+
public final class Func_void_std__exception_ptr {
|
|
15
|
+
public typealias bridge = margelo.nitro.securiticonsentsdk.bridge.swift
|
|
16
|
+
|
|
17
|
+
private let closure: (_ error: Error) -> Void
|
|
18
|
+
|
|
19
|
+
public init(_ closure: @escaping (_ error: Error) -> Void) {
|
|
20
|
+
self.closure = closure
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@inline(__always)
|
|
24
|
+
public func call(error: std.exception_ptr) -> Void {
|
|
25
|
+
self.closure(RuntimeError.from(cppError: error))
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Casts this instance to a retained unsafe raw pointer.
|
|
30
|
+
* This acquires one additional strong reference on the object!
|
|
31
|
+
*/
|
|
32
|
+
@inline(__always)
|
|
33
|
+
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
34
|
+
return Unmanaged.passRetained(self).toOpaque()
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Casts an unsafe pointer to a `Func_void_std__exception_ptr`.
|
|
39
|
+
* The pointer has to be a retained opaque `Unmanaged<Func_void_std__exception_ptr>`.
|
|
40
|
+
* This removes one strong reference from the object!
|
|
41
|
+
*/
|
|
42
|
+
@inline(__always)
|
|
43
|
+
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_std__exception_ptr {
|
|
44
|
+
return Unmanaged<Func_void_std__exception_ptr>.fromOpaque(pointer).takeRetainedValue()
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Func_void_std__optional_BannerConfig_.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Wraps a Swift `(_ value: BannerConfig?) -> Void` as a class.
|
|
12
|
+
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
13
|
+
*/
|
|
14
|
+
public final class Func_void_std__optional_BannerConfig_ {
|
|
15
|
+
public typealias bridge = margelo.nitro.securiticonsentsdk.bridge.swift
|
|
16
|
+
|
|
17
|
+
private let closure: (_ value: BannerConfig?) -> Void
|
|
18
|
+
|
|
19
|
+
public init(_ closure: @escaping (_ value: BannerConfig?) -> Void) {
|
|
20
|
+
self.closure = closure
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@inline(__always)
|
|
24
|
+
public func call(value: bridge.std__optional_BannerConfig_) -> Void {
|
|
25
|
+
self.closure({ () -> BannerConfig? in
|
|
26
|
+
if let __unwrapped = value.value {
|
|
27
|
+
return __unwrapped
|
|
28
|
+
} else {
|
|
29
|
+
return nil
|
|
30
|
+
}
|
|
31
|
+
}())
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Casts this instance to a retained unsafe raw pointer.
|
|
36
|
+
* This acquires one additional strong reference on the object!
|
|
37
|
+
*/
|
|
38
|
+
@inline(__always)
|
|
39
|
+
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
40
|
+
return Unmanaged.passRetained(self).toOpaque()
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Casts an unsafe pointer to a `Func_void_std__optional_BannerConfig_`.
|
|
45
|
+
* The pointer has to be a retained opaque `Unmanaged<Func_void_std__optional_BannerConfig_>`.
|
|
46
|
+
* This removes one strong reference from the object!
|
|
47
|
+
*/
|
|
48
|
+
@inline(__always)
|
|
49
|
+
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_std__optional_BannerConfig_ {
|
|
50
|
+
return Unmanaged<Func_void_std__optional_BannerConfig_>.fromOpaque(pointer).takeRetainedValue()
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// Func_void_std__optional_SettingsPrompt_.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Wraps a Swift `(_ value: SettingsPrompt?) -> Void` as a class.
|
|
12
|
+
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
13
|
+
*/
|
|
14
|
+
public final class Func_void_std__optional_SettingsPrompt_ {
|
|
15
|
+
public typealias bridge = margelo.nitro.securiticonsentsdk.bridge.swift
|
|
16
|
+
|
|
17
|
+
private let closure: (_ value: SettingsPrompt?) -> Void
|
|
18
|
+
|
|
19
|
+
public init(_ closure: @escaping (_ value: SettingsPrompt?) -> Void) {
|
|
20
|
+
self.closure = closure
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@inline(__always)
|
|
24
|
+
public func call(value: bridge.std__optional_SettingsPrompt_) -> Void {
|
|
25
|
+
self.closure({ () -> SettingsPrompt? in
|
|
26
|
+
if let __unwrapped = value.value {
|
|
27
|
+
return __unwrapped
|
|
28
|
+
} else {
|
|
29
|
+
return nil
|
|
30
|
+
}
|
|
31
|
+
}())
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Casts this instance to a retained unsafe raw pointer.
|
|
36
|
+
* This acquires one additional strong reference on the object!
|
|
37
|
+
*/
|
|
38
|
+
@inline(__always)
|
|
39
|
+
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
40
|
+
return Unmanaged.passRetained(self).toOpaque()
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Casts an unsafe pointer to a `Func_void_std__optional_SettingsPrompt_`.
|
|
45
|
+
* The pointer has to be a retained opaque `Unmanaged<Func_void_std__optional_SettingsPrompt_>`.
|
|
46
|
+
* This removes one strong reference from the object!
|
|
47
|
+
*/
|
|
48
|
+
@inline(__always)
|
|
49
|
+
public static func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> Func_void_std__optional_SettingsPrompt_ {
|
|
50
|
+
return Unmanaged<Func_void_std__optional_SettingsPrompt_>.fromOpaque(pointer).takeRetainedValue()
|
|
51
|
+
}
|
|
52
|
+
}
|