| | |
| | | // AppsFlyerLib.h |
| | | // AppsFlyerLib |
| | | // |
| | | // AppsFlyer iOS SDK 6.5.1 (51) |
| | | // Copyright (c) 2012-2020 AppsFlyer Ltd. All rights reserved. |
| | | // AppsFlyer iOS SDK 6.13.2 (163) |
| | | // Copyright (c) 2012-2023 AppsFlyer Ltd. All rights reserved. |
| | | // |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | |
| | | #import "AppsFlyerCrossPromotionHelper.h" |
| | | #import "AppsFlyerShareInviteHelper.h" |
| | | #import "AppsFlyerDeepLinkResult.h" |
| | | #import "AppsFlyerDeepLink.h" |
| | | #import <AppsFlyerLib/AppsFlyerCrossPromotionHelper.h> |
| | | #import <AppsFlyerLib/AppsFlyerShareInviteHelper.h> |
| | | #import <AppsFlyerLib/AppsFlyerDeepLinkResult.h> |
| | | #import <AppsFlyerLib/AppsFlyerDeepLink.h> |
| | | #import <AppsFlyerLib/AppsFlyerConsent.h> |
| | | |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | |
| | |
| | | #define AFEventParam8 @"af_param_8" |
| | | #define AFEventParam9 @"af_param_9" |
| | | #define AFEventParam10 @"af_param_10" |
| | | #define AFEventParamTouch @"af_touch_obj" |
| | | |
| | | #define AFEventParamDepartingDepartureDate @"af_departing_departure_date" |
| | | #define AFEventParamReturningDepartureDate @"af_returning_departure_date" |
| | |
| | | #define AFEventParamAdRevenueAdSize @"af_adrev_ad_size" |
| | | #define AFEventParamAdRevenueMediatedNetworkName @"af_adrev_mediated_network_name" |
| | | |
| | | |
| | | /// Mail hashing type |
| | | typedef enum { |
| | | /// None |
| | | EmailCryptTypeNone = 0, |
| | | /// SHA1 |
| | | EmailCryptTypeSHA1 = 1, |
| | | /// MD5 |
| | | EmailCryptTypeMD5 = 2, |
| | | /// SHA256 |
| | | EmailCryptTypeSHA256 = 3 |
| | | } EmailCryptType; |
| | | |
| | | typedef NS_CLOSED_ENUM(NSInteger, AFSDKPlugin) { |
| | | AFSDKPluginIOSNative, |
| | | AFSDKPluginUnity, |
| | | AFSDKPluginFlutter, |
| | | AFSDKPluginReactNative, |
| | | AFSDKPluginAdobeAir, |
| | | AFSDKPluginAdobeMobile, |
| | | AFSDKPluginCocos2dx, |
| | | AFSDKPluginCordova, |
| | | AFSDKPluginMparticle, |
| | | AFSDKPluginNativeScript, |
| | | AFSDKPluginExpo, |
| | | AFSDKPluginUnreal, |
| | | AFSDKPluginXamarin, |
| | | AFSDKPluginCapacitor, |
| | | AFSDKPluginSegment, |
| | | AFSDKPluginAdobeSwiftAEP |
| | | } NS_SWIFT_NAME(Plugin); |
| | | |
| | | |
| | | NS_SWIFT_NAME(DeepLinkDelegate) |
| | | @protocol AppsFlyerDeepLinkDelegate <NSObject> |
| | |
| | | @return The singleton instance of AppsFlyerLib. |
| | | */ |
| | | + (AppsFlyerLib *)shared; |
| | | |
| | | |
| | | - (void)setUpInteroperabilityObject:(id)object; |
| | | |
| | | /** |
| | | In case you use your own user ID in your app, you can set this property to that ID. |
| | |
| | | */ |
| | | @property(atomic) BOOL disableCollectASA; |
| | | |
| | | /** |
| | | Disable Apple Ads Attribution API +[AAAtribution attributionTokenWithError:] |
| | | */ |
| | | @property(nonatomic) BOOL disableAppleAdsAttribution; |
| | | |
| | | /** |
| | |
| | | [[AppsFlyerLib shared] setResolveDeepLinkURLs:@[@"domain.com", @"subdomain.domain.com"]]; |
| | | </pre> |
| | | */ |
| | | @property(nonatomic, nullable) NSArray<NSString *> *resolveDeepLinkURLs; |
| | | @property(nonatomic, nullable, copy) NSArray<NSString *> *resolveDeepLinkURLs; |
| | | |
| | | /** |
| | | For advertisers who use vanity OneLinks. |
| | |
| | | [[AppsFlyerLib shared] oneLinkCustomDomains:@[@"domain.com", @"subdomain.domain.com"]]; |
| | | </pre> |
| | | */ |
| | | @property(nonatomic, nullable) NSArray<NSString *> *oneLinkCustomDomains; |
| | | @property(nonatomic, nullable, copy) NSArray<NSString *> *oneLinkCustomDomains; |
| | | |
| | | /* |
| | | * Set phone number for each `start` event. `phoneNumber` will be sent as SHA256 string |
| | | */ |
| | | @property(nonatomic, nullable) NSString *phoneNumber; |
| | | @property(nonatomic, nullable, copy) NSString *phoneNumber; |
| | | |
| | | - (NSString *)phoneNumber UNAVAILABLE_ATTRIBUTE; |
| | | |
| | |
| | | AppsFlyerLib.shared().currentDeviceLanguage("EN") |
| | | </pre> |
| | | */ |
| | | @property(nonatomic, nullable) NSString *currentDeviceLanguage; |
| | | @property(nonatomic, nullable, copy) NSString *currentDeviceLanguage; |
| | | |
| | | /** |
| | | Internal API. Please don't use. |
| | | */ |
| | | - (void)setPluginInfoWith:(AFSDKPlugin)plugin |
| | | pluginVersion:(NSString *)version |
| | | additionalParams:(NSDictionary * _Nullable)additionalParams |
| | | NS_SWIFT_NAME(setPluginInfo(plugin:version:additionalParams:)); |
| | | |
| | | /** |
| | | Enable the collection of Facebook Deferred AppLinks |
| | |
| | | - (void)remoteDebuggingCallWithData:(NSString *)data; |
| | | |
| | | /** |
| | | This is for internal use. |
| | | */ |
| | | - (void)remoteDebuggingCallV2WithData:(NSString *)dataAsString; |
| | | |
| | | /** |
| | | Used to force the trigger `onAppOpenAttribution` delegate. |
| | | Notice, re-engagement, session and launch won't be counted. |
| | | Only for OneLink/UniversalLink/Deeplink resolving. |
| | |
| | | /** |
| | | API to set manually Facebook deferred app link |
| | | */ |
| | | @property(nonatomic, nullable) NSURL *facebookDeferredAppLink; |
| | | @property(nonatomic, nullable, copy) NSURL *facebookDeferredAppLink; |
| | | |
| | | /** |
| | | Block an events from being shared with ad networks and other 3rd party integrations |
| | | Must only include letters/digits or underscore, maximum length: 45 |
| | | */ |
| | | @property(nonatomic, nullable) NSArray<NSString *> *sharingFilter DEPRECATED_MSG_ATTRIBUTE("starting SDK version 6.4.0, please use `setSharingFilterForPartners:`"); |
| | | @property(nonatomic, nullable, copy) NSArray<NSString *> *sharingFilter DEPRECATED_MSG_ATTRIBUTE("starting SDK version 6.4.0, please use `setSharingFilterForPartners:`"); |
| | | |
| | | @property(nonatomic) NSUInteger deepLinkTimeout; |
| | | |
| | |
| | | */ |
| | | - (void)setSharingFilterForPartners:(NSArray<NSString *> * _Nullable)sharingFilter; |
| | | |
| | | |
| | | /** |
| | | 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. |
| | | |
| | | Note that this method does not persist the consent data across app sessions; it only applies for the |
| | | duration of the current app session. If you wish to stop providing the consent data, you should |
| | | cease calling this method. |
| | | |
| | | @param consent an instance of AppsFlyerConsent that encapsulates the user's consent information. |
| | | */ |
| | | - (void)setConsentData:(AppsFlyerConsent *)consent; |
| | | |
| | | /** |
| | | Enable the SDK to collect and send TCF data |
| | | |
| | | @param shouldCollectConsentData indicates if the TCF data collection is enabled. |
| | | */ |
| | | - (void)enableTCFDataCollection:(BOOL)shouldCollectConsentData; |
| | | |
| | | /** |
| | | Validate if URL contains certain string and append quiery |
| | | parameters to deeplink URL. In case if URL does not contain user-defined string, |