|
23 | 23 | @property (nonatomic, assign) BOOL firstLaunch; |
24 | 24 | @property (nonatomic, assign) BOOL sessionResponseProcessed; |
25 | 25 |
|
26 | | -- (id)init; |
| 26 | +- (_Nullable id)init; |
27 | 27 |
|
28 | 28 | - (BOOL)isEnabled; |
29 | 29 | - (BOOL)isDisabled; |
|
41 | 41 |
|
42 | 42 | @interface ADJSavedPreLaunch : NSObject |
43 | 43 |
|
44 | | -@property (nonatomic, strong) NSMutableArray *preLaunchActionsArray; |
45 | | -@property (nonatomic, copy) NSData *deviceTokenData; |
46 | | -@property (nonatomic, copy) NSNumber *enabled; |
| 44 | +@property (nonatomic, strong) NSMutableArray * _Nullable preLaunchActionsArray; |
| 45 | +@property (nonatomic, copy) NSData *_Nullable deviceTokenData; |
| 46 | +@property (nonatomic, copy) NSNumber *_Nullable enabled; |
47 | 47 | @property (nonatomic, assign) BOOL offline; |
48 | | -@property (nonatomic, copy) NSString *extraPath; |
49 | | -@property (nonatomic, strong) NSMutableArray *preLaunchAdjustThirdPartySharingArray; |
50 | | -@property (nonatomic, copy) NSNumber *lastMeasurementConsentTracked; |
| 48 | +@property (nonatomic, copy) NSString *_Nullable extraPath; |
| 49 | +@property (nonatomic, strong) NSMutableArray *_Nullable preLaunchAdjustThirdPartySharingArray; |
| 50 | +@property (nonatomic, copy) NSNumber *_Nullable lastMeasurementConsentTracked; |
51 | 51 |
|
52 | | -- (id)init; |
| 52 | +- (id _Nullable)init; |
53 | 53 |
|
54 | 54 | @end |
55 | 55 |
|
56 | 56 | @class ADJTrackingStatusManager; |
57 | 57 |
|
58 | 58 | @protocol ADJActivityHandler <NSObject> |
59 | 59 |
|
60 | | -@property (nonatomic, copy) ADJAttribution *attribution; |
61 | | -@property (nonatomic, strong) ADJTrackingStatusManager *trackingStatusManager; |
| 60 | +@property (nonatomic, copy) ADJAttribution * _Nullable attribution; |
| 61 | +@property (nonatomic, strong) ADJTrackingStatusManager * _Nullable trackingStatusManager; |
62 | 62 |
|
63 | | -- (NSString *)adid; |
| 63 | +- (NSString *_Nullable)adid; |
64 | 64 |
|
65 | | -- (id)initWithConfig:(ADJConfig *)adjustConfig |
66 | | - savedPreLaunch:(ADJSavedPreLaunch *)savedPreLaunch; |
| 65 | +- (id _Nullable)initWithConfig:(ADJConfig *_Nullable)adjustConfig |
| 66 | + savedPreLaunch:(ADJSavedPreLaunch * _Nullable)savedPreLaunch; |
67 | 67 |
|
68 | 68 | - (void)applicationDidBecomeActive; |
69 | 69 | - (void)applicationWillResignActive; |
70 | 70 |
|
71 | | -- (void)trackEvent:(ADJEvent *)event; |
| 71 | +- (void)trackEvent:(ADJEvent * _Nullable)event; |
72 | 72 |
|
73 | | -- (void)finishedTracking:(ADJResponseData *)responseData; |
74 | | -- (void)launchEventResponseTasks:(ADJEventResponseData *)eventResponseData; |
75 | | -- (void)launchSessionResponseTasks:(ADJSessionResponseData *)sessionResponseData; |
76 | | -- (void)launchSdkClickResponseTasks:(ADJSdkClickResponseData *)sdkClickResponseData; |
77 | | -- (void)launchAttributionResponseTasks:(ADJAttributionResponseData *)attributionResponseData; |
| 73 | +- (void)finishedTracking:(ADJResponseData * _Nullable)responseData; |
| 74 | +- (void)launchEventResponseTasks:(ADJEventResponseData * _Nullable)eventResponseData; |
| 75 | +- (void)launchSessionResponseTasks:(ADJSessionResponseData * _Nullable)sessionResponseData; |
| 76 | +- (void)launchSdkClickResponseTasks:(ADJSdkClickResponseData * _Nullable)sdkClickResponseData; |
| 77 | +- (void)launchAttributionResponseTasks:(ADJAttributionResponseData * _Nullable)attributionResponseData; |
78 | 78 | - (void)setEnabled:(BOOL)enabled; |
79 | 79 | - (BOOL)isEnabled; |
80 | 80 | - (BOOL)isGdprForgotten; |
81 | 81 |
|
82 | | -- (void)appWillOpenUrl:(NSURL*)url withClickTime:(NSDate *)clickTime; |
83 | | -- (void)setDeviceToken:(NSData *)deviceToken; |
84 | | -- (void)setPushToken:(NSString *)deviceToken; |
| 82 | +- (void)appWillOpenUrl:(NSURL * _Nullable)url |
| 83 | + withClickTime:(NSDate * _Nullable)clickTime; |
| 84 | +- (void)setDeviceToken:(NSData * _Nullable)deviceToken; |
| 85 | +- (void)setPushToken:(NSString * _Nullable)deviceToken; |
85 | 86 | - (void)setGdprForgetMe; |
86 | 87 | - (void)setTrackingStateOptedOut; |
87 | 88 | - (void)setAskingAttribution:(BOOL)askingAttribution; |
88 | 89 |
|
89 | | -- (BOOL)updateAttributionI:(id<ADJActivityHandler>)selfI attribution:(ADJAttribution *)attribution; |
90 | | -- (void)setAttributionDetails:(NSDictionary *)attributionDetails |
91 | | - error:(NSError *)error; |
92 | | -- (void)setAdServicesAttributionToken:(NSString *)token |
93 | | - error:(NSError *)error; |
| 90 | +- (BOOL)updateAttributionI:(id<ADJActivityHandler> _Nullable)selfI |
| 91 | + attribution:(ADJAttribution * _Nullable)attribution; |
| 92 | +- (void)setAttributionDetails:(NSDictionary * _Nullable)attributionDetails |
| 93 | + error:(NSError * _Nullable)error; |
| 94 | +- (void)setAdServicesAttributionToken:(NSString * _Nullable)token |
| 95 | + error:(NSError * _Nullable)error; |
94 | 96 |
|
95 | 97 | - (void)setOfflineMode:(BOOL)offline; |
96 | 98 | - (void)sendFirstPackages; |
97 | 99 |
|
98 | | -- (void)addSessionCallbackParameter:(NSString *)key |
99 | | - value:(NSString *)value; |
100 | | -- (void)addSessionPartnerParameter:(NSString *)key |
101 | | - value:(NSString *)value; |
102 | | -- (void)removeSessionCallbackParameter:(NSString *)key; |
103 | | -- (void)removeSessionPartnerParameter:(NSString *)key; |
| 100 | +- (void)addSessionCallbackParameter:(NSString * _Nullable)key |
| 101 | + value:(NSString * _Nullable)value; |
| 102 | +- (void)addSessionPartnerParameter:(NSString * _Nullable)key |
| 103 | + value:(NSString * _Nullable)value; |
| 104 | +- (void)removeSessionCallbackParameter:(NSString * _Nullable)key; |
| 105 | +- (void)removeSessionPartnerParameter:(NSString * _Nullable)key; |
104 | 106 | - (void)resetSessionCallbackParameters; |
105 | 107 | - (void)resetSessionPartnerParameters; |
106 | | -- (void)trackAdRevenue:(NSString *)soruce payload:(NSData *)payload; |
| 108 | +- (void)trackAdRevenue:(NSString * _Nullable)soruce |
| 109 | + payload:(NSData * _Nullable)payload; |
107 | 110 | - (void)disableThirdPartySharing; |
108 | 111 | - (void)trackThirdPartySharing:(nonnull ADJThirdPartySharing *)thirdPartySharing; |
109 | 112 | - (void)trackMeasurementConsent:(BOOL)enabled; |
110 | | -- (void)trackSubscription:(ADJSubscription *)subscription; |
| 113 | +- (void)trackSubscription:(ADJSubscription * _Nullable)subscription; |
111 | 114 | - (void)updateAttStatusFromUserCallback:(int)newAttStatusFromUser; |
112 | 115 |
|
113 | | -- (ADJDeviceInfo *)deviceInfo; |
114 | | -- (ADJActivityState *)activityState; |
115 | | -- (ADJConfig *)adjustConfig; |
116 | | -- (ADJSessionParameters *)sessionParameters; |
| 116 | +- (ADJDeviceInfo * _Nullable)deviceInfo; |
| 117 | +- (ADJActivityState * _Nullable)activityState; |
| 118 | +- (ADJConfig * _Nullable)adjustConfig; |
| 119 | +- (ADJSessionParameters * _Nullable)sessionParameters; |
117 | 120 |
|
118 | 121 | - (void)teardown; |
119 | 122 | + (void)deleteState; |
120 | 123 | @end |
121 | 124 |
|
122 | 125 | @interface ADJActivityHandler : NSObject <ADJActivityHandler> |
123 | 126 |
|
124 | | -- (id)initWithConfig:(ADJConfig *)adjustConfig |
125 | | - savedPreLaunch:(ADJSavedPreLaunch *)savedPreLaunch; |
| 127 | +- (id _Nullable)initWithConfig:(ADJConfig * _Nullable)adjustConfig |
| 128 | + savedPreLaunch:(ADJSavedPreLaunch * _Nullable)savedPreLaunch; |
126 | 129 |
|
127 | | -- (void)addSessionCallbackParameterI:(ADJActivityHandler *)selfI |
128 | | - key:(NSString *)key |
129 | | - value:(NSString *)value; |
| 130 | +- (void)addSessionCallbackParameterI:(ADJActivityHandler * _Nullable)selfI |
| 131 | + key:(NSString * _Nullable)key |
| 132 | + value:(NSString * _Nullable)value; |
130 | 133 |
|
131 | | -- (void)addSessionPartnerParameterI:(ADJActivityHandler *)selfI |
132 | | - key:(NSString *)key |
133 | | - value:(NSString *)value; |
134 | | -- (void)removeSessionCallbackParameterI:(ADJActivityHandler *)selfI |
135 | | - key:(NSString *)key; |
136 | | -- (void)removeSessionPartnerParameterI:(ADJActivityHandler *)selfI |
137 | | - key:(NSString *)key; |
138 | | -- (void)resetSessionCallbackParametersI:(ADJActivityHandler *)selfI; |
139 | | -- (void)resetSessionPartnerParametersI:(ADJActivityHandler *)selfI; |
| 134 | +- (void)addSessionPartnerParameterI:(ADJActivityHandler * _Nullable)selfI |
| 135 | + key:(NSString * _Nullable)key |
| 136 | + value:(NSString * _Nullable)value; |
| 137 | +- (void)removeSessionCallbackParameterI:(ADJActivityHandler * _Nullable)selfI |
| 138 | + key:(NSString * _Nullable)key; |
| 139 | +- (void)removeSessionPartnerParameterI:(ADJActivityHandler * _Nullable)selfI |
| 140 | + key:(NSString * _Nullable)key; |
| 141 | +- (void)resetSessionCallbackParametersI:(ADJActivityHandler * _Nullable)selfI; |
| 142 | +- (void)resetSessionPartnerParametersI:(ADJActivityHandler * _Nullable)selfI; |
140 | 143 |
|
141 | 144 | @end |
142 | 145 |
|
143 | 146 | @interface ADJTrackingStatusManager : NSObject |
144 | 147 |
|
145 | | -- (instancetype)initWithActivityHandler:(ADJActivityHandler *)activityHandler; |
| 148 | +- (instancetype _Nullable)initWithActivityHandler:(ADJActivityHandler * _Nullable)activityHandler; |
146 | 149 |
|
147 | 150 | - (void)checkForNewAttStatus; |
148 | 151 | - (void)updateAttStatusFromUserCallback:(int)newAttStatusFromUser; |
|
154 | 157 |
|
155 | 158 | @end |
156 | 159 |
|
157 | | -extern NSString * const ADJiAdPackageKey; |
158 | | -extern NSString * const ADJAdServicesPackageKey; |
| 160 | +extern NSString * _Nullable const ADJiAdPackageKey; |
| 161 | +extern NSString * _Nullable const ADJAdServicesPackageKey; |
0 commit comments