-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathobjc!ACPCore.d.ts
More file actions
308 lines (174 loc) · 8.64 KB
/
objc!ACPCore.d.ts
File metadata and controls
308 lines (174 loc) · 8.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
declare class ACPCore extends NSObject {
static alloc(): ACPCore; // inherited from NSObject
static collectLaunchInfo(userInfo: NSDictionary<any, any>): void;
static collectMessageInfo(messageInfo: NSDictionary<any, any>): void;
static collectPii(data: NSDictionary<string, string>): void;
static configureWithAppId(appid: string): void;
static configureWithFileInPath(filepath: string): void;
static dispatchEventError(event: ACPExtensionEvent): boolean;
static dispatchEventWithResponseCallbackResponseCallbackError(requestEvent: ACPExtensionEvent, responseCallback: (p1: ACPExtensionEvent) => void): boolean;
static dispatchResponseEventRequestEventError(responseEvent: ACPExtensionEvent, requestEvent: ACPExtensionEvent): boolean;
static downloadRules(): void;
static extensionVersion(): string;
static getPrivacyStatus(callback: (p1: ACPMobilePrivacyStatus) => void): void;
static getPrivacyStatusWithCompletionHandler(completionHandler: (p1: ACPMobilePrivacyStatus, p2: NSError) => void): void;
static getSdkIdentities(callback: (p1: string) => void): void;
static getSdkIdentitiesWithCompletionHandler(completionHandler: (p1: string, p2: NSError) => void): void;
static lifecyclePause(): void;
static lifecycleStart(additionalContextData: NSDictionary<string, string>): void;
static logLevel(): ACPMobileLogLevel;
static logTagMessage(logLevel: ACPMobileLogLevel, tag: string, message: string): void;
static new(): ACPCore; // inherited from NSObject
static registerExtensionError(extensionClass: typeof NSObject): boolean;
static registerURLHandler(callback: (p1: string) => boolean): void;
static setAdvertisingIdentifier(adId: string): void;
static setAppGroup(appGroup: string): void;
static setLogLevel(logLevel: ACPMobileLogLevel): void;
static setPrivacyStatus(status: ACPMobilePrivacyStatus): void;
static setPushIdentifier(deviceToken: NSData): void;
static setWrapperType(wrapperType: ACPMobileWrapperType): void;
static start(callback: () => void): void;
static trackActionData(action: string, data: NSDictionary<string, string>): void;
static trackStateData(state: string, data: NSDictionary<string, string>): void;
static updateConfiguration(config: NSDictionary<any, any>): void;
}
declare var ACPCoreVersionNumber: number;
declare var ACPCoreVersionString: interop.Reference<number>;
declare const enum ACPError {
Unexpected = 0,
CallbackTimeout = 1,
CallbackNil = 2,
ExtensionNotInitialized = 11,
}
declare var ACPErrorDomain: string;
declare class ACPExtension extends NSObject {
static alloc(): ACPExtension; // inherited from NSObject
static new(): ACPExtension; // inherited from NSObject
readonly api: ACPExtensionApi;
name(): string;
onUnregister(): void;
unexpectedError(error: NSError): void;
version(): string;
}
declare class ACPExtensionApi extends NSObject {
static alloc(): ACPExtensionApi; // inherited from NSObject
static new(): ACPExtensionApi; // inherited from NSObject
clearSharedEventStates(): boolean;
getSharedEventStateEventError(name: string, event: ACPExtensionEvent): NSDictionary<any, any>;
registerListenerEventTypeEventSourceError(listenerClass: typeof NSObject, eventType: string, eventSource: string): boolean;
registerWildcardListenerError(listenerClass: typeof NSObject): boolean;
setSharedEventStateEventError(state: NSDictionary<any, any>, event: ACPExtensionEvent): boolean;
unregisterExtension(): void;
}
declare const enum ACPExtensionError {
DBUnexpectedExtensionError = 0,
DBBadExtensionNameExtensionError = 1,
DBDuplicateExtensionNameExtensionError = 2,
DBEventTypeNotSupportedExtensionError = 3,
DBEventSourceNotSupportedExtensionError = 4,
DBEventDataNotSupportedExtensionError = 5,
DBBadExtensionClassExtensionError = 6,
DBEventNullError = 7,
}
declare var ACPExtensionErrorDomain: string;
declare class ACPExtensionEvent extends NSObject {
static alloc(): ACPExtensionEvent; // inherited from NSObject
static extensionEventWithNameTypeSourceDataError(name: string, type: string, source: string, data: NSDictionary<any, any>): ACPExtensionEvent;
static new(): ACPExtensionEvent; // inherited from NSObject
readonly eventData: NSDictionary<any, any>;
readonly eventName: string;
readonly eventNumber: number;
readonly eventSource: string;
readonly eventTimestamp: number;
readonly eventType: string;
readonly eventUniqueIdentifier: string;
}
declare class ACPExtensionListener extends NSObject {
static alloc(): ACPExtensionListener; // inherited from NSObject
static new(): ACPExtensionListener; // inherited from NSObject
readonly extension: ACPExtension;
hear(event: ACPExtensionEvent): void;
}
declare class ACPHttpConnection extends NSObject {
static alloc(): ACPHttpConnection; // inherited from NSObject
static new(): ACPHttpConnection; // inherited from NSObject
readonly data: NSData;
readonly response: NSHTTPURLResponse;
constructor(o: { response: NSHTTPURLResponse; data: NSData });
initWithResponseData(response: NSHTTPURLResponse, data: NSData): this;
}
interface ACPHttpConnectionPerformer extends NSObjectProtocol {
requestUrlHttpCommandConnectPayloadRequestPropertyDictConnectTimeoutReadTimeoutCompletion(url: NSURL, command: string, payload: string, requestProperty: NSDictionary<string, string>, connectTimeout: number, readTimeout: number, completion: (p1: ACPHttpConnection) => void): void;
shouldOverrideMethod(url: NSURL, method: string): boolean;
}
declare var ACPHttpConnectionPerformer: {
prototype: ACPHttpConnectionPerformer;
};
declare class ACPIdentity extends NSObject {
static alloc(): ACPIdentity; // inherited from NSObject
static appendToUrlWithCallback(baseUrl: NSURL, callback: (p1: NSURL) => void): void;
static appendToUrlWithCompletionHandler(baseUrl: NSURL, completionHandler: (p1: NSURL, p2: NSError) => void): void;
static extensionVersion(): string;
static getExperienceCloudId(callback: (p1: string) => void): void;
static getExperienceCloudIdWithCompletionHandler(completionHandler: (p1: string, p2: NSError) => void): void;
static getIdentifiers(callback: (p1: NSArray<ACPMobileVisitorId>) => void): void;
static getIdentifiersWithCompletionHandler(completionHandler: (p1: NSArray<ACPMobileVisitorId>, p2: NSError) => void): void;
static getUrlVariables(callback: (p1: string) => void): void;
static getUrlVariablesWithCompletionHandler(completionHandler: (p1: string, p2: NSError) => void): void;
static new(): ACPIdentity; // inherited from NSObject
static registerExtension(): void;
static syncIdentifierIdentifierAuthentication(identifierType: string, identifier: string, authenticationState: ACPMobileVisitorAuthenticationState): void;
static syncIdentifiers(identifiers: NSDictionary<any, any>): void;
static syncIdentifiersAuthentication(identifiers: NSDictionary<any, any>, authenticationState: ACPMobileVisitorAuthenticationState): void;
}
declare class ACPLifecycle extends NSObject {
static alloc(): ACPLifecycle; // inherited from NSObject
static extensionVersion(): string;
static new(): ACPLifecycle; // inherited from NSObject
static registerExtension(): void;
}
declare const enum ACPMobileLogLevel {
Error = 0,
Warning = 1,
Debug = 2,
Verbose = 3,
}
declare const enum ACPMobilePrivacyStatus {
OptIn = 0,
OptOut = 1,
Unknown = 2,
}
declare const enum ACPMobileVisitorAuthenticationState {
Unknown = 0,
Authenticated = 1,
LoggedOut = 2,
}
declare class ACPMobileVisitorId extends NSObject {
static alloc(): ACPMobileVisitorId; // inherited from NSObject
static new(): ACPMobileVisitorId; // inherited from NSObject
authenticationState: ACPMobileVisitorAuthenticationState;
idOrigin: string;
idType: string;
identifier: string;
constructor(o: { origin: string; type: string; id: string; authentication: ACPMobileVisitorAuthenticationState });
initWithOriginTypeIdAuthentication(idOrigin: string, idType: string, identifier: string, authenticationState: ACPMobileVisitorAuthenticationState): this;
}
declare const enum ACPMobileWrapperType {
None = 0,
ReactNative = 1,
Flutter = 2,
Cordova = 3,
Unity = 4,
Xamarin = 5,
}
declare class ACPNetworkServiceOverrider extends NSObject {
static alloc(): ACPNetworkServiceOverrider; // inherited from NSObject
static new(): ACPNetworkServiceOverrider; // inherited from NSObject
static setHttpConnectionPerformer(performer: ACPHttpConnectionPerformer): void;
}
declare class ACPSignal extends NSObject {
static alloc(): ACPSignal; // inherited from NSObject
static extensionVersion(): string;
static new(): ACPSignal; // inherited from NSObject
static registerExtension(): void;
}