AppsFlyerShareInviteHelper.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // ShareInviteHelper.h
  3. // AppsFlyerLib
  4. //
  5. // Created by Gil Meroz on 27/01/2017.
  6. //
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <AppsFlyerLib/AppsFlyerLinkGenerator.h>
  10. /**
  11. AppsFlyerShareInviteHelper
  12. */
  13. @interface AppsFlyerShareInviteHelper : NSObject
  14. NS_ASSUME_NONNULL_BEGIN
  15. /**
  16. * The AppsFlyerShareInviteHelper class builds the invite URL according to various setter methods
  17. * which allow passing on additional information on the click.
  18. * This information is available through `onConversionDataReceived:` when the user accepts the invite and installs the app.
  19. * In addition, campaign and channel parameters are visible within the AppsFlyer Dashboard.
  20. */
  21. + (void)generateInviteUrlWithLinkGenerator:(AppsFlyerLinkGenerator *(^)(AppsFlyerLinkGenerator *generator))generatorCreator completionHandler:(void (^)(NSURL *_Nullable url))completionHandler;
  22. /**
  23. * It is recommended to generate an in-app event after the invite is sent to log the invites from the senders' perspective.
  24. * This enables you to find the users that tend most to invite friends, and the media sources that get you these users.
  25. */
  26. + (void)logInvite:(nullable NSString *)channel parameters:(nullable NSDictionary *)parameters;
  27. @end
  28. NS_ASSUME_NONNULL_END