appsflyer-capacitor-plugin 6.17.9 → 6.17.91
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/AppsflyerCapacitorPlugin.podspec +1 -1
- package/README.md +5 -1
- package/android/build.gradle +22 -16
- package/dist/esm/Appsflyer_constants.js.map +1 -1
- package/dist/esm/appsflyer_interfaces.d.ts +1 -1
- package/dist/esm/appsflyer_interfaces.js +1 -1
- package/dist/esm/appsflyer_interfaces.js.map +1 -1
- package/dist/esm/definitions.d.ts +8 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/plugin.cjs.js +1 -3
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +1 -3
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/AppsFlyerPlugin.swift +1 -1
- package/package.json +18 -18
- package/src/Appsflyer_constants.ts +25 -26
- package/src/appsflyer_interfaces.ts +188 -134
- package/src/definitions.ts +311 -314
- package/src/index.ts +1 -2
- package/tsconfig.json +1 -0
- /package/{rollup.config.js → rollup.config.mjs} +0 -0
package/src/definitions.ts
CHANGED
|
@@ -1,319 +1,316 @@
|
|
|
1
|
-
import type {PluginListenerHandle} from
|
|
1
|
+
import type { PluginListenerHandle } from '@capacitor/core';
|
|
2
2
|
|
|
3
|
-
import type {AFConstants} from
|
|
3
|
+
import type { AFConstants } from './Appsflyer_constants';
|
|
4
4
|
import type {
|
|
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
|
-
} from
|
|
5
|
+
AFAndroidInAppPurchase,
|
|
6
|
+
AFAnonymizeUser,
|
|
7
|
+
AFAppendToDeepLink,
|
|
8
|
+
AFCuid,
|
|
9
|
+
AFCurrency,
|
|
10
|
+
AFData,
|
|
11
|
+
AFDisable,
|
|
12
|
+
AFEvent,
|
|
13
|
+
AFFbDAL,
|
|
14
|
+
AFFilters,
|
|
15
|
+
AFHost,
|
|
16
|
+
AFInit,
|
|
17
|
+
AFIosInAppPurchase,
|
|
18
|
+
AFIsStopped,
|
|
19
|
+
AFLink,
|
|
20
|
+
AFLinkGenerator,
|
|
21
|
+
AFOnelinkDomain,
|
|
22
|
+
AFOnelinkID,
|
|
23
|
+
AFPath,
|
|
24
|
+
AFPushPayload,
|
|
25
|
+
AFRes,
|
|
26
|
+
AFStop,
|
|
27
|
+
AFUid,
|
|
28
|
+
AFUninstall,
|
|
29
|
+
AFUrls,
|
|
30
|
+
AFLanguage,
|
|
31
|
+
OnAppOpenAttribution,
|
|
32
|
+
OnConversionDataResult,
|
|
33
|
+
OnDeepLink,
|
|
34
|
+
AFPromotion,
|
|
35
|
+
AFEmails,
|
|
36
|
+
AFLatLng,
|
|
37
|
+
AFPhone,
|
|
38
|
+
AFPartnerData,
|
|
39
|
+
AFLogInvite,
|
|
40
|
+
AFPurchaseDetailsV2,
|
|
41
|
+
AFEnableTCFDataCollection,
|
|
42
|
+
AFConsentData,
|
|
43
|
+
AFAdRevenueData,
|
|
44
|
+
AFConsentOptions,
|
|
45
|
+
AFIsStarted,
|
|
46
|
+
} from './appsflyer_interfaces';
|
|
47
47
|
|
|
48
48
|
export interface AppsFlyerPlugin {
|
|
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
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
* @returns Promise that resolves with validation result
|
|
317
|
-
*/
|
|
318
|
-
validateAndLogInAppPurchaseV2(data: AFPurchaseDetailsV2): Promise<{ [key: string]: any }>;
|
|
49
|
+
// register listener for onConversionDataSuccess and onConversionDataFail
|
|
50
|
+
addListener(
|
|
51
|
+
eventName: AFConstants.CONVERSION_CALLBACK,
|
|
52
|
+
listenerFunc: (event: OnConversionDataResult) => void,
|
|
53
|
+
): PluginListenerHandle;
|
|
54
|
+
|
|
55
|
+
// register listener for onAppOpenAttribution and onAttributionFailure
|
|
56
|
+
addListener(
|
|
57
|
+
eventName: AFConstants.OAOA_CALLBACK,
|
|
58
|
+
listenerFunc: (event: OnAppOpenAttribution) => void,
|
|
59
|
+
): PluginListenerHandle;
|
|
60
|
+
|
|
61
|
+
// register listener for onDeeplink
|
|
62
|
+
addListener(eventName: AFConstants.UDL_CALLBACK, listenerFunc: (event: OnDeepLink) => void): PluginListenerHandle;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Use this method to initialize and start AppsFlyer SDK. This API should be called as soon as the app launched.
|
|
66
|
+
*/
|
|
67
|
+
initSDK(options: AFInit): Promise<AFRes>;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Use this method to start AppsFlyer SDK, only on manual start mode.
|
|
71
|
+
*/
|
|
72
|
+
startSDK(): Promise<AFRes>;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Log an in-app event.
|
|
76
|
+
*
|
|
77
|
+
* */
|
|
78
|
+
logEvent(data: AFEvent): Promise<AFRes>;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Setting your own customer ID enables you to cross-reference your own unique ID with AppsFlyer's unique ID and other devices' IDs.
|
|
82
|
+
* This ID is available in raw-data reports and in the Postback APIs for cross-referencing with your internal IDs.
|
|
83
|
+
*/
|
|
84
|
+
setCustomerUserId(cuid: AFCuid): Promise<void>;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Sets the currency for in-app purchases. The currency code should be a 3 character ISO 4217 code
|
|
88
|
+
* */
|
|
89
|
+
setCurrencyCode(currencyCode: AFCurrency): Promise<void>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* (Android) Allows to pass GCM/FCM Tokens that where collected by third party plugins to the AppsFlyer server. Can be used for Uninstall log.
|
|
93
|
+
* (iOS) Allows to pass APN Tokens that where collected by third party plugins to the AppsFlyer server. Can be used for log Uninstall.
|
|
94
|
+
*/
|
|
95
|
+
updateServerUninstallToken(token: AFUninstall): Promise<void>;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Set the OneLink ID that should be used for attributing user-Invite. The link that is generated for the user invite will use this OneLink as the base link.
|
|
99
|
+
*/
|
|
100
|
+
setAppInviteOneLink(id: AFOnelinkID): Promise<void>;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* In order for AppsFlyer SDK to successfully resolve hidden (decoded in shortlink ID) attribution parameters, any domain that is configured as a branded domain in the AppsFlyer Dashboard should be provided to this method.
|
|
104
|
+
*/
|
|
105
|
+
setOneLinkCustomDomain(domains: AFOnelinkDomain): Promise<void>;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Enables app owners using App Links for deep linking (without OneLink) to attribute sessions initiated via a domain associated with their app. Call this method before calling start.
|
|
109
|
+
* You must provide the following parameters in the parameters Map:
|
|
110
|
+
* pid
|
|
111
|
+
* is_retargeting must be set to true
|
|
112
|
+
* */
|
|
113
|
+
appendParametersToDeepLinkingURL(data: AFAppendToDeepLink): Promise<void>;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
*Advertisers can wrap an AppsFlyer OneLink within another Universal Link. This Universal Link will invoke the app but any deep linking data will not propagate to AppsFlyer.
|
|
117
|
+
* setResolveDeepLinkURLs enables you to configure the SDK to resolve the wrapped OneLink URLs, so that deep linking can occur correctly.
|
|
118
|
+
*/
|
|
119
|
+
setResolveDeepLinkURLs(urls: AFUrls): Promise<void>;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Configures how the SDK extracts deep link values from push notification payloads.
|
|
123
|
+
*/
|
|
124
|
+
addPushNotificationDeepLinkPath(path: AFPath): Promise<void>;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Stops events from propagating to the specified AppsFlyer partners.
|
|
128
|
+
* @deprecated deprecated since 6.4.0. Use setSharingFilterForPartners instead
|
|
129
|
+
*/
|
|
130
|
+
setSharingFilter(filters: AFFilters): Promise<void>;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Stops events from propagating to all AppsFlyer partners. Overwrites setSharingFilter.
|
|
134
|
+
* @deprecated deprecated since 6.4.0. Use setSharingFilterForPartners instead
|
|
135
|
+
*/
|
|
136
|
+
setSharingFilterForAllPartners(): Promise<void>;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Stops events from propagating to the specified AppsFlyer partners.
|
|
140
|
+
*/
|
|
141
|
+
setSharingFilterForPartners(filters: AFFilters): Promise<void>;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Set additional data to be sent to AppsFlyer. See
|
|
145
|
+
*/
|
|
146
|
+
setAdditionalData(additionalData: AFData): Promise<void>;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Get AppsFlyer's unique device ID (created for every new install of an app).
|
|
150
|
+
*/
|
|
151
|
+
getAppsFlyerUID(): Promise<AFUid>;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* End User Opt-Out from AppsFlyer analytics (Anonymize user data).
|
|
155
|
+
*/
|
|
156
|
+
anonymizeUser(anonymize: AFAnonymizeUser): Promise<void>;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Once this API is invoked, our SDK no longer communicates with our servers and stops functioning.
|
|
160
|
+
* Useful when implementing user opt-in/opt-out.
|
|
161
|
+
*/
|
|
162
|
+
stop(stop?: AFStop): Promise<AFIsStopped>;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Opt-out of SKAdNetwork
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
168
|
+
disableSKAdNetwork(stop: AFDisable): Promise<void>;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Disables collection of various Advertising IDs by the SDK. This includes Apple Identity for Advertisers (IDFA), Google Advertising ID (GAID), OAID and Amazon Advertising ID (AAID).
|
|
172
|
+
*/
|
|
173
|
+
disableAdvertisingIdentifier(stop: AFDisable): Promise<void>;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Opt-out of Apple Search Ads attributions.
|
|
177
|
+
*/
|
|
178
|
+
disableCollectASA(stop: AFDisable): Promise<void>;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Set a custom host.
|
|
182
|
+
*/
|
|
183
|
+
setHost(hostName: AFHost): Promise<void>;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Allowing your existing users to invite their friends and contacts as new users to your app
|
|
187
|
+
*/
|
|
188
|
+
generateInviteLink(params: AFLinkGenerator): Promise<AFLink>;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* API for server verification of in-app purchases. An af_purchase event with the relevant values will be automatically logged if the validation is successful.
|
|
192
|
+
* @deprecated deprecated since 6.17.7.
|
|
193
|
+
*/
|
|
194
|
+
validateAndLogInAppPurchaseAndroid(purchaseData: AFAndroidInAppPurchase): Promise<AFRes>;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @deprecated deprecated since 6.17.7.
|
|
198
|
+
*/
|
|
199
|
+
validateAndLogInAppPurchaseIos(purchaseData: AFIosInAppPurchase): Promise<AFRes>;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Get the AppsFlyer SDK version used in app.
|
|
203
|
+
*/
|
|
204
|
+
getSdkVersion(): Promise<AFRes>;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Enable the collection of Facebook Deferred AppLinks. Requires Facebook SDK and Facebook app on target/client device.
|
|
208
|
+
* This API must be invoked before initializing the AppsFlyer SDK in order to function properly.
|
|
209
|
+
*/
|
|
210
|
+
enableFacebookDeferredApplinks(enable: AFFbDAL): Promise<AFRes>;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Measure and get data from push-notification campaigns.
|
|
214
|
+
*/
|
|
215
|
+
sendPushNotificationData(payload: AFPushPayload): Promise<void>;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Set the language of the device. The data will be displayed in Raw Data Reports
|
|
219
|
+
*
|
|
220
|
+
*/
|
|
221
|
+
setCurrentDeviceLanguage(language: AFLanguage): Promise<AFRes>;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* logs an impression as part of a cross-promotion campaign. Make sure to use the promoted App ID as it appears within the AppsFlyer dashboard.
|
|
225
|
+
*
|
|
226
|
+
*/
|
|
227
|
+
logCrossPromoteImpression(data: AFPromotion): Promise<AFRes>;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Set the user emails and encrypt them.
|
|
231
|
+
*/
|
|
232
|
+
setUserEmails(emails: AFEmails): Promise<AFRes>;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Manually log the location of the user
|
|
236
|
+
*/
|
|
237
|
+
logLocation(latLng: AFLatLng): Promise<AFRes>;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Will be sent as an SHA-256 encrypted string.
|
|
241
|
+
*/
|
|
242
|
+
setPhoneNumber(phone: AFPhone): Promise<AFRes>;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Allows sending custom data for partner integration purposes.
|
|
246
|
+
*/
|
|
247
|
+
setPartnerData(data: AFPartnerData): Promise<AFRes>;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Use to log a user-invite in-app event (af_invite).
|
|
251
|
+
*
|
|
252
|
+
*/
|
|
253
|
+
logInvite(data: AFLogInvite): Promise<AFRes>;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Use to opt-out of collecting the network operator name (carrier) and sim operator name from the device.
|
|
257
|
+
*
|
|
258
|
+
* @param disable Defaults to false
|
|
259
|
+
*/
|
|
260
|
+
setDisableNetworkData(disable: AFDisable): Promise<void>;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Use to opt-in/out the automatic collection of consent data, for users who use a CMP.
|
|
264
|
+
* Flag value will be persisted between app sessions.
|
|
265
|
+
*/
|
|
266
|
+
enableTCFDataCollection(shouldEnableTCFDataCollection: AFEnableTCFDataCollection): Promise<void>;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Use to set user consent data manualy.
|
|
270
|
+
* if your app doesn't use a CMP compatible with TCF v2.2, use the following method to manualy provide the consent data directly to the SDK.
|
|
271
|
+
* @param data: AppsFlyerConsent object.
|
|
272
|
+
* @deprecated deprecated since 6.16.2. Use `setConsentDataV2` instead
|
|
273
|
+
*/
|
|
274
|
+
setConsentData(data: AFConsentData): Promise<void>;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* By attributing ad revenue, app owners gain the complete view of user LTV and campaign ROI.
|
|
278
|
+
* Ad revenue is generated by displaying ads on rewarded videos, offer walls, interstitials, and banners in an app.
|
|
279
|
+
* You can use this method to log your ad revenue.
|
|
280
|
+
* @param adRevenueData: object used to hold all mandatory parameters of AdRevenue event.
|
|
281
|
+
*/
|
|
282
|
+
logAdRevenue(data: AFAdRevenueData): Promise<void>;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Use this to set user consent data manualy.
|
|
286
|
+
* if your app doesn't use a CMP compatible with TCF v2.2, use the following method to manualy provide the consent data directly to the SDK.
|
|
287
|
+
* @param options: AFConsentOptions that consists with all the possible options for consent collection, boolean params.
|
|
288
|
+
*/
|
|
289
|
+
setConsentDataV2(options: AFConsentOptions): Promise<void>;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Use this method to check whether the AppsFlyer SDK has already been started in the current session.
|
|
293
|
+
*/
|
|
294
|
+
isSDKStarted(): Promise<AFIsStarted>;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Use this method to check whether the AppsFlyer SDK is currently stopped.
|
|
298
|
+
*/
|
|
299
|
+
isSDKStopped(): Promise<AFIsStopped>;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Disables AppSet ID collection. If called before SDK init, App Set ID will not be collected.
|
|
303
|
+
* If called after init, App Set ID will be collected but not sent in request payloads.
|
|
304
|
+
* Android only.
|
|
305
|
+
*/
|
|
306
|
+
disableAppSetId(): Promise<void>;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* API for server verification of in-app purchases V2.
|
|
310
|
+
* An af_purchase event with the relevant values will be automatically logged if the validation is successful.
|
|
311
|
+
*
|
|
312
|
+
* @param data - Object containing purchaseDetails and optional additionalParameters
|
|
313
|
+
* @returns Promise that resolves with validation result
|
|
314
|
+
*/
|
|
315
|
+
validateAndLogInAppPurchaseV2(data: AFPurchaseDetailsV2): Promise<{ [key: string]: any }>;
|
|
319
316
|
}
|
package/src/index.ts
CHANGED
|
@@ -2,8 +2,7 @@ import { registerPlugin } from '@capacitor/core';
|
|
|
2
2
|
|
|
3
3
|
import type { AppsFlyerPlugin } from './definitions';
|
|
4
4
|
|
|
5
|
-
const AppsFlyer = registerPlugin<AppsFlyerPlugin>('AppsFlyerPlugin', {
|
|
6
|
-
});
|
|
5
|
+
const AppsFlyer = registerPlugin<AppsFlyerPlugin>('AppsFlyerPlugin', {});
|
|
7
6
|
|
|
8
7
|
export * from './definitions';
|
|
9
8
|
export * from './Appsflyer_constants';
|