| | |
| | | // AppsFlyerLib.h |
| | | // AppsFlyerLib |
| | | // |
| | | // AppsFlyer iOS SDK 6.13.1.153 (153) |
| | | // AppsFlyer iOS SDK 6.12.2 (999) |
| | | // Copyright (c) 2012-2023 AppsFlyer Ltd. All rights reserved. |
| | | // |
| | | |
| | |
| | | #import <AppsFlyerLib/AppsFlyerShareInviteHelper.h> |
| | | #import <AppsFlyerLib/AppsFlyerDeepLinkResult.h> |
| | | #import <AppsFlyerLib/AppsFlyerDeepLink.h> |
| | | #import <AppsFlyerLib/AppsFlyerConsent.h> |
| | | #import <AppsFlyerLib/AFSDKPurchaseDetails.h> |
| | | #import <AppsFlyerLib/AFSDKPurchaseType.h> |
| | | #import <AppsFlyerLib/AFSDKValidateAndLogResult.h> |
| | | #import <AppsFlyerLib/AFAdRevenueData.h> |
| | | |
| | | |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | |
| | |
| | | #define AFEventParamPreferredNeighborhoods @"af_preferred_neighborhoods" //array of string |
| | | #define AFEventParamPreferredNumStops @"af_preferred_num_stops" |
| | | |
| | | #define AFEventParamAdRevenueAdType @"af_adrev_ad_type" |
| | | #define AFEventParamAdRevenueNetworkName @"af_adrev_network_name" |
| | | #define AFEventParamAdRevenuePlacementId @"af_adrev_placement_id" |
| | | #define AFEventParamAdRevenueAdSize @"af_adrev_ad_size" |
| | | #define AFEventParamAdRevenueMediatedNetworkName @"af_adrev_mediated_network_name" |
| | | |
| | | |
| | | @class AppsFlyerConsent; |
| | | /// Mail hashing type |
| | | typedef enum { |
| | | /// None |
| | |
| | | success:(void (^ _Nullable)(NSDictionary * response))successBlock |
| | | failure:(void (^ _Nullable)(NSError * _Nullable error, id _Nullable reponse))failedBlock NS_AVAILABLE(10_7, 7_0); |
| | | |
| | | typedef void (^AFSDKValidateAndLogCompletion)(AFSDKValidateAndLogResult * _Nullable result); |
| | | |
| | | /** |
| | | Validates and logs an in-app purchase using the updated VAL V2 flow. |
| | | |
| | | This method should be called after a successful transaction, typically from: |
| | | - `paymentQueue:updatedTransactions:` in your `SKPaymentTransactionObserver` (StoreKit 1) |
| | | - `transaction.listener` or `.finishTransaction()` or `VerificationResult<SignedType>` in StoreKit 2 (iOS 15+) |
| | | |
| | | @param purchaseDetails a `AFSDKPurchaseDetails` object. Must include: |
| | | - `productId` (non-empty) |
| | | - `transactionId` (non-empty) |
| | | - `purchaseType` ( `.subscription`, `.oneTimePurchase`) |
| | | |
| | | @param purchaseAdditionalDetails Optional metadata associated with the purchase |
| | | (previously known as `extraEventValues`). This can include custom app-level context. |
| | | |
| | | @param completion Completion block with either a response dictionary or an NSError. |
| | | On success: `response` contains a parsed result. |
| | | On failure: `error` describes the reason (validation failure, networking issue...) |
| | | */ |
| | | - (void)validateAndLogInAppPurchase:(AFSDKPurchaseDetails *)purchaseDetails |
| | | purchaseAdditionalDetails:(NSDictionary * _Nullable)purchaseAdditionalDetails |
| | | completion:(void (^)(NSDictionary * _Nullable response, NSError * _Nullable error))completion |
| | | NS_SWIFT_NAME(validateAndLogInAppPurchase(purchaseDetails:purchaseAdditionalDetails:completion:)); |
| | | |
| | | /** |
| | | An API to provide the data from the impression payload to AdRevenue. |
| | | |
| | | @param adRevenueData object used to hold all mandatory parameters of AdRevenue event. |
| | | @param additionalParameters non-mandatory dictionary which can include pre-defined keys (kAppsFlyerAdRevenueCountry, etc) |
| | | */ |
| | | - (void)logAdRevenue:(AFAdRevenueData *)adRevenueData additionalParameters:(NSDictionary * _Nullable)additionalParameters; |
| | | |
| | | /** |
| | | To log location for geo-fencing. Does the same as code below. |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | Sets Custom Install Id - this overrides the default AppsFlyer Install ID. |
| | | Only effective if Info.plist has `AppsFlyerAllowCustomInstallId=YES` |
| | | * Must be called before calling set appsFlyerDevKey and appleAppID |
| | | @param customID the customId. |
| | | */ |
| | | - (void)setInstallId:(NSString *)customID; |
| | | |
| | | /** |
| | | Sets or updates the user consent data related to GDPR and DMA regulations for advertising and data usage |
| | | purposes within the application. This method must be invoked with the user's current consent status each |
| | | time the app starts or whenever there is a change in the user's consent preferences. |