1
- #import " CleverTapPlugin.h"
2
1
#import " CleverTap.h"
2
+ #import " CleverTapPlugin.h"
3
3
#import " CleverTap+Inbox.h"
4
4
#import " CleverTapUTMDetail.h"
5
5
#import " CleverTap+ABTesting.h"
6
6
#import " CleverTapEventDetail.h"
7
7
#import " CleverTapSyncDelegate.h"
8
- #import " CleverTapInAppNotificationDelegate.h"
9
8
#import " CleverTap+DisplayUnit.h"
9
+ #import " CleverTapInAppNotificationDelegate.h"
10
10
11
- @interface CleverTapPlugin () <CleverTapSyncDelegate, CleverTapInAppNotificationDelegate, CleverTapDisplayUnitDelegate, CleverTapInboxViewControllerDelegate> {
12
- }
11
+ @interface CleverTapPlugin () < CleverTapSyncDelegate, CleverTapInAppNotificationDelegate, CleverTapDisplayUnitDelegate, CleverTapInboxViewControllerDelegate >
13
12
14
13
@property (strong , nonatomic ) FlutterMethodChannel *channel;
15
14
@@ -243,7 +242,8 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
243
242
result (FlutterMethodNotImplemented);
244
243
}
245
244
246
- # pragma mark launch
245
+
246
+ #pragma mark - Launch
247
247
248
248
- (void )getInitialUrl : (FlutterMethodCall*)call result : (FlutterResult)result {
249
249
NSString *launchDeepLink = self.launchDeepLink ;
@@ -289,7 +289,8 @@ - (void)registerForPush:(FlutterMethodCall *)call withResult:(FlutterResult)resu
289
289
result (nil );
290
290
}
291
291
292
- #pragma mark Personalization
292
+
293
+ #pragma mark - Personalization
293
294
294
295
- (void )enablePersonalization : (FlutterMethodCall *)call withResult : (FlutterResult)result {
295
296
[CleverTap enablePersonalization ];
@@ -301,7 +302,8 @@ - (void)disablePersonalization:(FlutterMethodCall *)call withResult:(FlutterResu
301
302
result (nil );
302
303
}
303
304
304
- #pragma mark Event API
305
+
306
+ #pragma mark - Event API
305
307
306
308
- (void )recordEvent : (FlutterMethodCall *)call withResult : (FlutterResult)result {
307
309
[[CleverTap sharedInstance ] recordEvent: call.arguments[@" eventName" ] withProps: call.arguments[@" eventData" ]];
@@ -460,6 +462,7 @@ - (void)sessionGetUTMDetails:(FlutterMethodCall *)call withResult:(FlutterResult
460
462
result (res);
461
463
}
462
464
465
+
463
466
#pragma mark - Inbox
464
467
465
468
- (void )pushInboxNotificationViewedEventForId : (FlutterMethodCall *)call withResult : (FlutterResult)result {
@@ -592,6 +595,7 @@ - (UIColor *)ct_colorWithHexString:(NSString *)string alpha:(CGFloat)alpha {
592
595
return color;
593
596
}
594
597
598
+
595
599
#pragma mark - Dynamic Variables
596
600
597
601
- (void )setUIEditorConnectionEnabled : (FlutterMethodCall *)call withResult : (FlutterResult)result {
@@ -719,6 +723,7 @@ - (void)getMapOfStringVariable:(FlutterMethodCall *)call withResult:(FlutterResu
719
723
result (res);
720
724
}
721
725
726
+
722
727
#pragma mark - Native Display
723
728
724
729
- (void )getAllDisplayUnits : (FlutterMethodCall *)call withResult : (FlutterResult)result {
@@ -749,6 +754,7 @@ - (void)displayUnitsUpdated:(NSArray<CleverTapDisplayUnit *> *)displayUnits {
749
754
[self postNotificationWithName: kCleverTapDisplayUnitsLoaded andBody: _dict];
750
755
}
751
756
757
+
752
758
#pragma mark - private/helpers
753
759
754
760
- (NSArray *)_cleverTapInboxMessagesToArray : (NSArray *) inboxMessages {
@@ -903,6 +909,7 @@ - (void)postNotificationWithName:(NSString *)name andBody:(NSDictionary *)body {
903
909
[[NSNotificationCenter defaultCenter ] postNotificationName: name object: nil userInfo: body];
904
910
}
905
911
912
+
906
913
#pragma mark CleverTapSyncDelegate
907
914
908
915
- (void )profileDidInitialize : (NSString *)cleverTapID {
0 commit comments