AppsFlyerLinkGenerator.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // LinkGenerator.h
  3. // AppsFlyerLib
  4. //
  5. // Created by Gil Meroz on 27/01/2017.
  6. //
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /**
  11. Payload container for the `generateInviteUrlWithLinkGenerator:completionHandler:` from `AppsFlyerShareInviteHelper`
  12. */
  13. @interface AppsFlyerLinkGenerator : NSObject
  14. /// Instance initialization is not allowed. Use generated instance
  15. /// from `-[AppsFlyerShareInviteHelper generateInviteUrlWithLinkGenerator:completionHandler]`
  16. - (instancetype)init NS_UNAVAILABLE;
  17. /// Instance initialization is not allowed. Use generated instance
  18. /// from `-[AppsFlyerShareInviteHelper generateInviteUrlWithLinkGenerator:completionHandler]`
  19. + (instancetype)new NS_UNAVAILABLE;
  20. @property(nonatomic, nullable, copy) NSString *brandDomain;
  21. /// The channel through which the invite was sent (e.g. Facebook/Gmail/etc.). Usage: Recommended
  22. - (void)setChannel :(nonnull NSString *)channel;
  23. /// ReferrerCustomerId setter
  24. - (void)setReferrerCustomerId:(nonnull NSString *)referrerCustomerId;
  25. /// A campaign name. Usage: Optional
  26. - (void)setCampaign :(nonnull NSString *)campaign;
  27. /// ReferrerUID setter
  28. - (void)setReferrerUID :(nonnull NSString *)referrerUID;
  29. /// Referrer name
  30. - (void)setReferrerName :(nonnull NSString *)referrerName;
  31. /// The URL to referrer user avatar. Usage: Optional
  32. - (void)setReferrerImageURL :(nonnull NSString *)referrerImageURL;
  33. /// AppleAppID
  34. - (void)setAppleAppID :(nonnull NSString *)appleAppID;
  35. /// Deeplink path
  36. - (void)setDeeplinkPath :(nonnull NSString *)deeplinkPath;
  37. /// Base deeplink path
  38. - (void)setBaseDeeplink :(nonnull NSString *)baseDeeplink;
  39. /// A single key value custom parameter. Usage: Optional
  40. - (void)addParameterValue :(nonnull NSString *)value forKey:(NSString *)key;
  41. /// Multiple key value custom parameters. Usage: Optional
  42. - (void)addParameters :(nonnull NSDictionary *)parameters;
  43. @end
  44. NS_ASSUME_NONNULL_END