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