@selligent-marketing-cloud/selligent-react-native 2.2.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/README.md +287 -236
  2. package/RNSelligent.podspec +4 -4
  3. package/android/build.gradle +34 -26
  4. package/android/libs/sdk-release.aar +0 -0
  5. package/android/src/main/java/com/selligent/RNSelligent.java +54 -11
  6. package/android/src/main/java/com/selligent/SMSettingsFactory.java +1 -0
  7. package/android/src/main/java/com/selligent/Settings.java +16 -0
  8. package/constants.d.ts +103 -0
  9. package/constants.js +29 -1
  10. package/index.android.js +132 -0
  11. package/index.d.ts +124 -0
  12. package/index.ios.js +59 -15
  13. package/index.js +84 -2
  14. package/ios/ClientSettings.h +2 -0
  15. package/ios/ClientSettings.m +4 -0
  16. package/ios/EnumMapper.h +3 -6
  17. package/ios/EnumMapper.m +8 -24
  18. package/ios/RNSelligent.m +25 -13
  19. package/ios/RemoteMessageDisplayType.h +5 -0
  20. package/ios/SMManagerSetting+ClientSettings.m +20 -5
  21. package/ios/SelligentReactNative.xcodeproj/project.pbxproj +4 -4
  22. package/ios/include/SMBaseMessage.h +8 -8
  23. package/ios/include/SMBlock.h +2 -2
  24. package/ios/include/SMClearCache.h +0 -2
  25. package/ios/include/SMContentAlignment.h +1 -2
  26. package/ios/include/SMDeviceInfos.h +10 -8
  27. package/ios/include/SMDisplayMode.h +1 -2
  28. package/ios/include/SMEvent.h +20 -16
  29. package/ios/include/SMEventUser.h +0 -1
  30. package/ios/include/SMEventUserLogin.h +11 -16
  31. package/ios/include/SMEventUserLogout.h +12 -16
  32. package/ios/include/SMEventUserRegistration.h +12 -17
  33. package/ios/include/SMEventUserUnregistration.h +12 -16
  34. package/ios/include/SMFailure.h +1 -6
  35. package/ios/include/SMHelper.h +12 -4
  36. package/ios/include/SMInAppContentHTMLViewController.h +11 -9
  37. package/ios/include/SMInAppContentImageViewController.h +6 -5
  38. package/ios/include/SMInAppContentMessage.h +12 -12
  39. package/ios/include/SMInAppContentStyleOptions.h +91 -79
  40. package/ios/include/SMInAppContentType.h +2 -3
  41. package/ios/include/SMInAppContentURLViewController.h +10 -9
  42. package/ios/include/SMInAppContentViewController.h +3 -5
  43. package/ios/include/SMInAppMessage.h +22 -14
  44. package/ios/include/SMInAppMessageType.h +1 -5
  45. package/ios/include/SMInAppRefreshType.h +1 -1
  46. package/ios/include/SMLink.h +7 -11
  47. package/ios/include/SMLog.h +1 -1
  48. package/ios/include/SMManager+DataTransaction.h +6 -13
  49. package/ios/include/SMManager+InAppContent.h +20 -23
  50. package/ios/include/SMManager+InAppMessage.h +68 -31
  51. package/ios/include/SMManager+Location.h +7 -63
  52. package/ios/include/SMManager+Log.h +3 -14
  53. package/ios/include/SMManager+RemoteNotification.h +38 -34
  54. package/ios/include/SMManager+SMEvent.h +10 -10
  55. package/ios/include/SMManager+SMLink.h +44 -0
  56. package/ios/include/SMManager+SilentPush.h +5 -22
  57. package/ios/include/SMManager+StyleOptions.h +5 -8
  58. package/ios/include/SMManager+UserNotification.h +44 -32
  59. package/ios/include/SMManager+ViewController.h +45 -0
  60. package/ios/include/SMManager.h +14 -23
  61. package/ios/include/SMManagerInAppMessageDelegate.h +24 -0
  62. package/ios/include/SMManagerSetting+Location.h +27 -0
  63. package/ios/include/SMManagerSetting.h +63 -34
  64. package/ios/include/SMManagerSettingIAC.h +6 -17
  65. package/ios/include/SMManagerSettingIAM.h +7 -16
  66. package/ios/include/SMManagerUniversalLinksDelegate.h +23 -0
  67. package/ios/include/SMMessage.h +1 -3
  68. package/ios/include/SMNSNotification.h +19 -5
  69. package/ios/include/SMNotificationAnnotationData.h +4 -8
  70. package/ios/include/SMNotificationButtonData.h +1 -6
  71. package/ios/include/SMNotificationButtonType.h +1 -2
  72. package/ios/include/SMNotificationMessage.h +31 -0
  73. package/ios/include/SMRemoteMessageDisplayType.h +32 -0
  74. package/ios/include/SMSuccess.h +1 -4
  75. package/ios/{libSelligentMobile2.5.a → libSelligentMobile2.7.a} +0 -0
  76. package/package.json +3 -3
  77. package/ios/include/SMLocationAuthorisationType.h +0 -57
@@ -7,7 +7,7 @@
7
7
  objects = {
8
8
 
9
9
  /* Begin PBXBuildFile section */
10
- 607CB0D425629754007201AB /* libSelligentMobile2.5.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 607CB0D325629754007201AB /* libSelligentMobile2.5.a */; };
10
+ 60A5C5B5261747570002B0A2 /* libSelligentMobile2.5.2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 60A5C5B4261747570002B0A2 /* libSelligentMobile2.5.2.a */; };
11
11
  B3E7B58A1CC2AC0600A0062D /* RNSelligent.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNSelligent.m */; };
12
12
  E5002D3320F5002A00F68509 /* ClientSettings.m in Sources */ = {isa = PBXBuildFile; fileRef = E5002D3120F5002A00F68509 /* ClientSettings.m */; };
13
13
  E5002D3620F5004200F68509 /* SMManagerSetting+ClientSettings.m in Sources */ = {isa = PBXBuildFile; fileRef = E5002D3520F5004200F68509 /* SMManagerSetting+ClientSettings.m */; };
@@ -32,7 +32,7 @@
32
32
 
33
33
  /* Begin PBXFileReference section */
34
34
  134814201AA4EA6300B7C361 /* libRNSelligent.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNSelligent.a; sourceTree = BUILT_PRODUCTS_DIR; };
35
- 607CB0D325629754007201AB /* libSelligentMobile2.5.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libSelligentMobile2.5.a; sourceTree = "<group>"; };
35
+ 60A5C5B4261747570002B0A2 /* libSelligentMobile2.5.2.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libSelligentMobile2.5.2.a; sourceTree = "<group>"; };
36
36
  B3E7B5881CC2AC0600A0062D /* RNSelligent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNSelligent.h; sourceTree = "<group>"; };
37
37
  B3E7B5891CC2AC0600A0062D /* RNSelligent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNSelligent.m; sourceTree = "<group>"; };
38
38
  E5002D3120F5002A00F68509 /* ClientSettings.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ClientSettings.m; sourceTree = "<group>"; };
@@ -110,7 +110,7 @@
110
110
  isa = PBXFrameworksBuildPhase;
111
111
  buildActionMask = 2147483647;
112
112
  files = (
113
- 607CB0D425629754007201AB /* libSelligentMobile2.5.a in Frameworks */,
113
+ 60A5C5B5261747570002B0A2 /* libSelligentMobile2.5.2.a in Frameworks */,
114
114
  );
115
115
  runOnlyForDeploymentPostprocessing = 0;
116
116
  };
@@ -128,7 +128,7 @@
128
128
  58B511D21A9E6C8500147676 = {
129
129
  isa = PBXGroup;
130
130
  children = (
131
- 607CB0D325629754007201AB /* libSelligentMobile2.5.a */,
131
+ 60A5C5B4261747570002B0A2 /* libSelligentMobile2.5.2.a */,
132
132
  E58A8CAC20F32CB4005EA433 /* include */,
133
133
  E5002D3720F500C200F68509 /* SelligentLogger.h */,
134
134
  E5002D3820F500C200F68509 /* SelligentLogger.m */,
@@ -10,39 +10,39 @@
10
10
 
11
11
  /*!
12
12
  * @discussion This is the Base class for message (push notif, in app message and in app content)
13
- * #SMBaseMessage :#
14
13
  */
15
14
  @interface SMBaseMessage : NSObject
16
15
 
17
16
  /*!
18
17
  * NSString instance providing the id of the message
19
18
  */
20
- @property (nonatomic) NSString *idMessage;
19
+ @property (readonly, nonatomic) NSString *_Nullable idMessage;
21
20
 
22
21
  /*!
23
22
  * NSDate instance providing the creation date of the message
24
- * @deprecated Deprecated use receptionDate instead
23
+ *
24
+ * @warning Deprecated - use receptionDate instead
25
25
  */
26
- @property (nonatomic) NSDate *dateCreation __deprecated __deprecated_msg("Use receptionDate instead");
26
+ @property (readonly, nonatomic) NSDate *_Nullable dateCreation __deprecated __deprecated_msg("Use receptionDate instead");
27
27
 
28
28
  /*!
29
29
  * NSDate instance providing the reception date on sdk side of the message
30
30
  */
31
- @property (nonatomic) NSDate *receptionDate;
31
+ @property (readonly, nonatomic) NSDate *_Nullable receptionDate;
32
32
 
33
33
  /*!
34
34
  * NSDate instance providing the expiration date of the message
35
35
  */
36
- @property (nonatomic) NSDate *expirationDate;
36
+ @property (readonly, nonatomic) NSDate *_Nullable expirationDate;
37
37
 
38
38
  /*!
39
39
  * NSDate instance providing the creation date of the message
40
40
  */
41
- @property (nonatomic) NSDate *creationDate;
41
+ @property (readonly, nonatomic) NSDate *_Nullable creationDate;
42
42
 
43
43
  /*!
44
44
  * bool instance infiorming if the message has already been displayed and viewed by user
45
45
  */
46
- @property (nonatomic) bool isViewed;
46
+ @property (readonly, nonatomic) bool isViewed;
47
47
 
48
48
  @end
@@ -12,10 +12,10 @@
12
12
  * @typedef type of block that will be triggered when an event has been succesfully sent
13
13
  * @param success a SMSuccess object
14
14
  */
15
- typedef void(^SMCompletionBlockSuccess)(SMSuccess *success);
15
+ typedef void(^SMCompletionBlockSuccess)(SMSuccess *_Nullable success);
16
16
 
17
17
  /**
18
18
  * @typedef type of block that will be triggered when an event has failed to be sent
19
19
  * @param failure a SMFailure failure
20
20
  */
21
- typedef void(^SMCompletionBlockFailure)(SMFailure *failure);
21
+ typedef void(^SMCompletionBlockFailure)(SMFailure *_Nullable failure);
@@ -6,10 +6,8 @@
6
6
  // Copyright (c) 2015 Selligent. All rights reserved.
7
7
  //
8
8
 
9
-
10
9
  /**
11
10
  * Enumeration used to define how often the SDK's cache should automaticaly clear itself
12
- * #SMClearCache :#
13
11
  */
14
12
  typedef NS_ENUM(NSInteger, SMClearCache) {
15
13
  /**
@@ -7,7 +7,7 @@
7
7
  //
8
8
 
9
9
  /**
10
- * #SMContentAlignment :#
10
+ *
11
11
  */
12
12
  typedef NS_ENUM(NSInteger, SMContentAlignment) {
13
13
  /*!
@@ -25,4 +25,3 @@ typedef NS_ENUM(NSInteger, SMContentAlignment) {
25
25
  */
26
26
  kSMAlignCenter
27
27
  };
28
-
@@ -9,28 +9,30 @@
9
9
  #import <Foundation/Foundation.h>
10
10
 
11
11
  /*!
12
- * #SMDeviceInfos :#
13
12
  */
14
13
  @interface SMDeviceInfos : NSObject
15
14
 
16
15
  /*!
17
16
  * Any External Id in your possession that you wish to transmit to the back-end
18
- * @discussion NSString
17
+ *
18
+ * @discussion NSString representing your external, custom identifier.
19
19
  * By default, it is an empty string
20
20
  */
21
- @property (nonatomic) NSString *externalId;
21
+ @property (nonatomic) NSString* _Nullable externalId;
22
22
 
23
23
  /*!
24
24
  * Create a generic deviceinfos object
25
- * @return a SMDeviceInfos object
25
+ *
26
+ * @return An SMDeviceInfos object
26
27
  */
27
- + (instancetype)defaultDeviceInfos;
28
+ + (instancetype _Nullable ) defaultDeviceInfos;
28
29
 
29
30
  /*!
30
31
  * Create a deviceinfos object with an external id property already set with the value provided
31
- * @param externalId a string containing the id you want to provide to the back-end
32
- * @return a SMDeviceInfos object
32
+ *
33
+ * @param externalId An string containing the id you want to provide to the back-end
34
+ * @return An SMDeviceInfos object
33
35
  */
34
- + (instancetype)deviceInfosWithExternalId:(NSString*) externalId;
36
+ + (instancetype _Nullable ) deviceInfosWithExternalId:(NSString*_Nullable) externalId;
35
37
 
36
38
  @end
@@ -6,9 +6,8 @@
6
6
  // Copyright © 2016 Selligent. All rights reserved.
7
7
  //
8
8
 
9
-
10
9
  /*!
11
- * #SMDisplayMode :#
10
+ *
12
11
  */
13
12
  typedef NS_ENUM(NSInteger, SMDisplayMode) {
14
13
  /*!
@@ -11,15 +11,11 @@
11
11
  #import "SMFailure.h"
12
12
  #import "SMSuccess.h"
13
13
 
14
-
15
-
16
14
  /*!
17
- * @discussion This is the Base class for all type of events
18
- * #SMEvent :#
15
+ * This is the Base class for all type of events
19
16
  */
20
17
  @interface SMEvent : NSObject
21
18
 
22
-
23
19
  /*!
24
20
  * Confirm if the current event should be cached or not
25
21
  * @discussion If the event fail to be delivered to your backend, then by default, it is cached into an internal queue.
@@ -29,36 +25,44 @@
29
25
  */
30
26
  @property (nonatomic) BOOL shouldCache;
31
27
 
32
-
33
-
34
28
  /*!
35
29
  * Create a generic event object that will be sent to platform
36
- * @param dict a Dictionary containing any kind of custom datas that must be stored and managed by platform
37
- * @return a SMEvent object
30
+ *
31
+ * @param dict A Dictionary containing any kind of custom datas that must be stored and managed by platform
32
+ * @return An SMEvent object
38
33
  */
39
- + (instancetype _Nonnull)eventWithDictionary:(NSDictionary* _Nullable)dict;
34
+ + (instancetype _Nonnull) eventWithDictionary:(NSDictionary* _Nullable)dict;
40
35
 
41
36
  /*!
42
37
  * Allow to initialise a success block and/or a failure block that will be triggered after an event is sent to the platform
43
38
  *
44
- * @param blockSuccess a SMCompletionBlockSuccess block that will be triggered if the send to the platform is successfull
45
- * @param blockFailure a SMCompletionBlockFailure block that will be triggered if the send to the platform has failed
39
+ * @param blockSuccess An SMCompletionBlockSuccess block that will be triggered if the send to the platform is successfull
40
+ * @param blockFailure An SMCompletionBlockFailure block that will be triggered if the send to the platform has failed
46
41
  * @discussion This method may be used as follow:
47
42
  *
48
43
  * @code
49
44
  * NSDictionary *dictMyCustomData = @{@"MyKey": @"MyValue"};
45
+ *
50
46
  * SMEvent *event = [SMEvent eventWithDictionary:dictMyCustomData];
51
- * [event applyBlockSuccess:^(SMSuccess *success) {
52
- * // My code for success}
53
- * BlockFailure:^(SMFailure *failure) {
47
+ *
48
+ * [event applyBlockSuccess:^(SMSuccess *success) {
49
+ *
50
+ * // My code for success}
51
+ *
52
+ * BlockFailure:^(SMFailure *failure) {
53
+ *
54
54
  * // My code for failure }];
55
+ *
55
56
  * [[SMManager sharedInstance] sendSMEvent:event];
56
57
  * @endcode
58
+ *
57
59
  * This method is optional. Use it only if you need it.
58
60
  * @warning It is developer's responsability to make sure no strong retrain cycles are added to the completion-blocks.
59
61
  * Make sure to read the following [Apple documentation.](https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/WorkingwithBlocks/WorkingwithBlocks.html#//apple_ref/doc/uid/TP40011210-CH8-SW16)
62
+ * @see SMCompletionBlockSuccess
63
+ * @see SMCompletionBlockFailure
60
64
  */
61
- - (void)applyBlockSuccess:(SMCompletionBlockSuccess _Nullable)blockSuccess BlockFailure:(SMCompletionBlockFailure _Nullable)blockFailure;
65
+ - (void) applyBlockSuccess:(SMCompletionBlockSuccess _Nullable)blockSuccess BlockFailure:(SMCompletionBlockFailure _Nullable)blockFailure;
62
66
 
63
67
  @end
64
68
 
@@ -9,7 +9,6 @@
9
9
  #import "SMEvent.h"
10
10
 
11
11
  /*!
12
- * @inherits SMEvent
13
12
  * @discussion Class representing all User-eventing
14
13
  * Instances of this class should not be directly created.
15
14
  * Please use children classes instead.
@@ -9,38 +9,33 @@
9
9
  #import "SMEventUser.h"
10
10
 
11
11
  /*!
12
- * @class SMEventUserLogin
13
- * @inherits SMEventUser
14
- * @discussion user login event class
15
- * #SMEventUserLogin:#
12
+ * User login event class
16
13
  */
17
14
  @interface SMEventUserLogin : SMEventUser
18
15
 
19
-
20
16
  /*!
21
17
  * Create a UserLogin event object that will be sent to selligent platform when user logged in
22
18
  *
23
- * @param mail the e-mail of the user
24
- * @return a SMEventUserLogin object
19
+ * @param mail The e-mail of the user
20
+ * @return An SMEventUserLogin object
25
21
  */
26
- + (instancetype _Nonnull)eventWithEmail:(NSString*_Null_unspecified)mail;
22
+ + (instancetype _Nonnull) eventWithEmail:(NSString*_Null_unspecified)mail;
27
23
 
28
24
  /*!
29
25
  * Create a UserLogin event object that will be sent to selligent platform when user logged in
30
26
  *
31
- * @param mail the e-mail of the user
32
- * @param dict a Dictionary containing a string as data that must be stored and managed by platform
27
+ * @param mail The e-mail of the user
28
+ * @param dict A Dictionary containing a string as data that must be stored and managed by platform
33
29
  * If email is not provided you can use in the dictionary an alternate key/value field to search for the user
34
- * example: [SMEventUserLogin eventWithEmail @"" Dictionary: @{@"userID": @"1234"}];
35
- * @return a SMEventUserLogin object
30
+ * @return An SMEventUserLogin object
36
31
  */
37
- + (instancetype _Nonnull)eventWithEmail:(NSString*_Null_unspecified)mail Dictionary:(NSDictionary<NSString*,NSString*>*_Nullable)dict;
32
+ + (instancetype _Nonnull) eventWithEmail:(NSString*_Null_unspecified)mail Dictionary:(NSDictionary<NSString*,NSString*>*_Nullable)dict;
38
33
 
39
34
  /*!
40
35
  * Create a UserLogin event object that will be sent to platform
41
- * @param dict a Dictionary containing an alternate key/value field to search for the user
42
- * example: [SMEventUserLogin eventWithDictionary: @{@"userID": @"1234"}];
43
- * @return a SMEventUserLogin object
36
+ *
37
+ * @param dict A Dictionary containing an alternate key/value field to search for the user
38
+ * @return An SMEventUserLogin object
44
39
  */
45
40
  + (instancetype _Nonnull)eventWithDictionary:(NSDictionary* _Nullable)dict;
46
41
 
@@ -9,38 +9,34 @@
9
9
  #import "SMEventUser.h"
10
10
 
11
11
  /*!
12
- * @class SMEventUserLogout
13
- * @inherits SMEventUser
14
- * @discussion user logout event class
15
- * #SMEventUserLogout:#
12
+ * User logout event class
16
13
  */
17
14
  @interface SMEventUserLogout : SMEventUser
18
15
 
19
16
  /*!
20
17
  * Create a UserLogout event object that will be sent to selligent platform when user logged out
21
18
  *
22
- * @param mail the e-mail of the user
23
- * @return a SMEventUserLogout object
19
+ * @param mail The e-mail of the user
20
+ * @return An SMEventUserLogout object
24
21
  */
25
- + (instancetype _Nonnull)eventWithEmail:(NSString*_Null_unspecified)mail;
22
+ + (instancetype _Nonnull) eventWithEmail:(NSString*_Null_unspecified)mail;
26
23
 
27
24
  /*!
28
25
  * Create a UserLogout event object that will be sent to selligent platform when user logged out
29
26
  *
30
- * @param mail the e-mail of the user
31
- * @param dict a Dictionary containing a string as data that must be stored and managed by platform
27
+ * @param mail The e-mail of the user
28
+ * @param dict A Dictionary containing a string as data that must be stored and managed by platform
32
29
  * If email is not provided you can use in the dictionary an alternate key/value field to search for the user
33
- * example: [SMEventUserLogout eventWithEmail @"" Dictionary: @{@"userID": @"1234"}];
34
- * @return a SMEventUserLogout object
30
+ * @return An SMEventUserLogout object
35
31
  */
36
- + (instancetype _Nonnull)eventWithEmail:(NSString*_Null_unspecified)mail Dictionary:(NSDictionary<NSString*,NSString*>*_Nullable)dict;
32
+ + (instancetype _Nonnull) eventWithEmail:(NSString*_Null_unspecified)mail Dictionary:(NSDictionary<NSString*,NSString*>*_Nullable)dict;
37
33
 
38
34
  /*!
39
35
  * Create a UserLogout event object that will be sent to platform
40
- * @param dict a Dictionary containing an alternate key/value field to search for the user
41
- * example: [SMEventUserLogout eventWithDictionary:@{@"userID": @"1234"}];
42
- * @return a SMEventUserLogout object
36
+ *
37
+ * @param dict A Dictionary containing an alternate key/value field to search for the user
38
+ * @return An SMEventUserLogout object
43
39
  */
44
- + (instancetype _Nonnull)eventWithDictionary:(NSDictionary* _Nullable)dict;
40
+ + (instancetype _Nonnull) eventWithDictionary:(NSDictionary* _Nullable)dict;
45
41
 
46
42
  @end
@@ -9,39 +9,34 @@
9
9
  #import "SMEventUser.h"
10
10
 
11
11
  /*!
12
- * @class SMEventUserRegistration
13
- * @inherits SMEventUser
14
- * @discussion user registration event class
15
- * #SMEventUserRegistration:#
12
+ * User registration event class
16
13
  */
17
14
  @interface SMEventUserRegistration : SMEventUser
18
15
 
19
-
20
16
  /*!
21
17
  * Create a UserRegistration event object that will be sent to selligent platform when user registered
22
18
  *
23
- * @param mail the e-mail of the user
24
- * @return a SMEventUserRegistration object
19
+ * @param mail The e-mail of the user
20
+ * @return An SMEventUserRegistration object
25
21
  */
26
- + (instancetype _Nonnull)eventWithEmail:(NSString*_Null_unspecified)mail;
22
+ + (instancetype _Nonnull) eventWithEmail:(NSString*_Null_unspecified)mail;
27
23
 
28
24
  /*!
29
25
  * Create a UserRegistration event object that will be sent to selligent platform when user registered
30
26
  *
31
- * @param mail the e-mail of the user
32
- * @param dict a Dictionary containing a string as data that must be stored and managed by platform
27
+ * @param mail The e-mail of the user
28
+ * @param dict A Dictionary containing a string as data that must be stored and managed by platform
33
29
  * If email is not provided you can use in the dictionary an alternate key/value field to search for the user
34
- * example: [SMEventUserRegistration eventWithEmail @"" Dictionary: @{@"userID": @"1234"}];
35
- * @return a SMEventUserRegistration object
30
+ * @return An SMEventUserRegistration object
36
31
  */
37
- + (instancetype _Nonnull)eventWithEmail:(NSString*_Null_unspecified)mail Dictionary:(NSDictionary<NSString*,NSString*>*_Nullable)dict;
32
+ + (instancetype _Nonnull) eventWithEmail:(NSString*_Null_unspecified)mail Dictionary:(NSDictionary<NSString*,NSString*>*_Nullable)dict;
38
33
 
39
34
  /*!
40
35
  * Create a UserRegistration event object that will be sent to platform
41
- * @param dict a Dictionary containing an alternate key/value field to search for the user
42
- * example: [SMEventUserRegistration eventWithDictionary:@{@"userID": @"1234"}];
43
- * @return a SMEventUserRegistration object
36
+ *
37
+ * @param dict A Dictionary containing an alternate key/value field to search for the user
38
+ * @return An SMEventUserRegistration object
44
39
  */
45
- + (instancetype _Nonnull)eventWithDictionary:(NSDictionary* _Nullable)dict;
40
+ + (instancetype _Nonnull) eventWithDictionary:(NSDictionary* _Nullable)dict;
46
41
 
47
42
  @end
@@ -9,38 +9,34 @@
9
9
  #import "SMEventUser.h"
10
10
 
11
11
  /*!
12
- * @class SMEventUserUnregistration
13
- * @inherits SMEventUser
14
- * @discussion user unregistration event class
15
- * #SMEventUserUnregistration:#
12
+ * User unregistration event class
16
13
  */
17
14
  @interface SMEventUserUnregistration : SMEventUser
18
15
 
19
16
  /*!
20
17
  * Create a UserUnregistration event object that will be sent to selligent platform when user unregistered
21
18
  *
22
- * @param mail the e-mail of the user
23
- * @return a SMEventUserUnregistration object
19
+ * @param mail The e-mail of the user
20
+ * @return An SMEventUserUnregistration object
24
21
  */
25
- + (instancetype _Nonnull)eventWithEmail:(NSString* _Null_unspecified)mail;
22
+ + (instancetype _Nonnull) eventWithEmail:(NSString* _Null_unspecified)mail;
26
23
 
27
24
  /*!
28
25
  * Create a UserUnregistration event object that will be sent to selligent platform when user unregistered
29
26
  *
30
- * @param mail the e-mail of the user
31
- * @param dict a Dictionary containing a string as data that must be stored and managed by platform
27
+ * @param mail The e-mail of the user
28
+ * @param dict A Dictionary containing a string as data that must be stored and managed by platform
32
29
  * If email is not provided you can use in the dictionary an alternate key/value field to search for the user
33
- * example: [SMEventUserUnregistration eventWithEmail @"" Dictionary: @{@"userID": @"1234"}];
34
- * @return a SMEventUserUnregistration object
30
+ * @return An SMEventUserUnregistration object
35
31
  */
36
- + (instancetype _Nonnull)eventWithEmail:(NSString* _Null_unspecified)mail Dictionary:(NSDictionary<NSString*,NSString*>* _Nullable)dict;
32
+ + (instancetype _Nonnull) eventWithEmail:(NSString* _Null_unspecified)mail Dictionary:(NSDictionary<NSString*,NSString*>* _Nullable)dict;
37
33
 
38
34
  /*!
39
35
  * Create a UserUnregistration event object that will be sent to platform
40
- * @param dict a Dictionary containing an alternate key/value field to search for the user
41
- * example: [SMEventUserUnregistration eventWithDictionary:@{@"userID": @"1234"}];
42
- * @return a SMEventUserUnregistration object
36
+ *
37
+ * @param dict A Dictionary containing an alternate key/value field to search for the user
38
+ * @return An SMEventUserUnregistration object
43
39
  */
44
- + (instancetype _Nonnull)eventWithDictionary:(NSDictionary* _Nullable)dict;
40
+ + (instancetype _Nonnull) eventWithDictionary:(NSDictionary* _Nullable)dict;
45
41
 
46
42
  @end
@@ -9,15 +9,10 @@
9
9
  #import "SMMessage.h"
10
10
 
11
11
  /*!
12
- * @discussion This class is used to return any error
13
- * #SMFailure:#
12
+ * This class is used to return any error
14
13
  */
15
14
  @interface SMFailure : SMMessage
16
15
 
17
-
18
-
19
-
20
-
21
16
  @end
22
17
 
23
18
 
@@ -1,17 +1,21 @@
1
1
  //
2
- // SMHelper.h
2
+ // SMHelper+Location.h
3
3
  // MobileSDK
4
4
  //
5
- // Created by Samy Ziat on 29/09/15.
6
- // Copyright (c) 2015 Selligent. All rights reserved.
5
+ // Created by Marc Biosca on 6/29/21.
6
+ // Copyright © 2021 Selligent. All rights reserved.
7
7
  //
8
8
 
9
+ #import "SMManager+Location.h"
10
+ #import "SMManagerSetting+Location.h"
9
11
 
10
12
  #import "SMManagerHelper.h"
11
13
 
12
14
  #import "SMNSNotification.h"
13
15
  #import "SMLink.h"
14
16
  #import "SMNotificationButtonData.h"
17
+ #import "SMNotificationAnnotationData.h"
18
+ #import "SMNotificationMessage.h"
15
19
 
16
20
  #import "SMManagerSetting.h"
17
21
  #import "SMManagerSettingIAM.h"
@@ -25,8 +29,12 @@
25
29
  #import "SMManager+SilentPush.h"
26
30
  #import "SMManager+SMEvent.h"
27
31
  #import "SMManager+Log.h"
28
- #import "SMManager+Location.h"
29
32
  #import "SMManager+StyleOptions.h"
33
+ #import "SMManager+ViewController.h"
34
+ #import "SMManager+SMLink.h"
35
+
36
+ #import "SMManagerInAppMessageDelegate.h"
37
+ #import "SMManagerUniversalLinksDelegate.h"
30
38
 
31
39
  #import "SMInAppContentImageViewController.h"
32
40
  #import "SMInAppContentURLViewController.h"
@@ -10,48 +10,50 @@
10
10
  #import "SMInAppContentStyleOptions.h"
11
11
 
12
12
  /*!
13
- * a view controller for HTML In App Content
14
- * #SMInAppContentHTMLViewController :#
13
+ * A view controller for HTML In App Content
15
14
  */
16
15
  @interface SMInAppContentHTMLViewController : SMInAppContentViewController
17
16
 
18
-
19
17
  /*!
20
18
  * This will provide you a custom viewcontroller with all HTML in app content for a specific category
19
+ *
21
20
  * @discussion The viewcontroller will take all available space in screen and will contain a close button if it is presented as it is. Otherwise the app will have to define a UIContainerView which will contain the view controller
22
21
  * @param category a NSString of the desired category of In App Content
23
22
  * @return a SMInAppContentHTMLViewController
24
23
  */
25
- + (instancetype) viewControllerForCategory:(NSString*)category ;
24
+ + (instancetype _Nonnull) viewControllerForCategory:(NSString*_Nullable)category ;
26
25
 
27
26
  /*!
28
27
  * This will provide you a custom viewcontroller with all HTML in app content for a specific category
28
+ *
29
29
  * @discussion The viewcontroller will take all available space in screen and will contain a close button if it is presented as it is. Otherwise the app will have to define a UIContainerView which will contain the view controller
30
30
  * @param category a NSString of the desired category of In App Content
31
31
  * @param options a SMInAppContentStyleOptions object allowing you to customise the in app content
32
32
  * @return a SMInAppContentHTMLViewController
33
+ * @see SMInAppContentStyleOptions
33
34
  */
34
- + (instancetype) viewControllerForCategory:(NSString*)category AndOptions:(SMInAppContentStyleOptions*)options ;
35
+ + (instancetype _Nonnull) viewControllerForCategory:(NSString*_Nullable)category AndOptions:(SMInAppContentStyleOptions*_Nullable)options ;
35
36
 
36
37
  /*!
37
38
  * This will provide you a custom viewcontroller with HTML in app content for a specific category
39
+ *
38
40
  * @discussion The viewcontroller will take all available space in screen and will contain a close button if it is presented as it is. Otherwise the app will have to provide a UIContainerView which will contain the view controller
39
41
  * @param category a NSString of the desired category of In App Content
40
42
  * @param numberofboxes an int corresponding to the maximum numbers of html boxes that the view controller must contain
41
43
  * @return a SMInAppContentHTMLViewController
42
44
  */
43
- + (instancetype) viewControllerForCategory:(NSString*)category InNumberOfBoxes:(int) numberofboxes ;
44
-
45
+ + (instancetype _Nonnull) viewControllerForCategory:(NSString*_Nullable)category InNumberOfBoxes:(int) numberofboxes ;
45
46
 
46
47
  /*!
47
48
  * This will provide you a custom viewcontroller with HTML in app content for a specific category
49
+ *
48
50
  * @discussion The viewcontroller will take all available space in screen and will contain a close button if it is presented as it is. Otherwise the app will have to provide a UIContainerView which will contain the view controller
49
51
  * @param category a NSString of the desired category of In App Content
50
52
  * @param numberofboxes an int corresponding to the maximum numbers of html boxes that the view controller must contain
51
53
  * @param options a SMInAppContentStyleOptions object allowing you to customise the in app content
52
54
  * @return a SMInAppContentHTMLViewController
55
+ * @see SMInAppContentStyleOptions
53
56
  */
54
- + (instancetype) viewControllerForCategory:(NSString*)category InNumberOfBoxes:(int) numberofboxes AndOptions:(SMInAppContentStyleOptions*)options ;
55
-
57
+ + (instancetype _Nonnull) viewControllerForCategory:(NSString*_Nullable)category InNumberOfBoxes:(int) numberofboxes AndOptions:(SMInAppContentStyleOptions*_Nullable)options ;
56
58
 
57
59
  @end
@@ -8,29 +8,30 @@
8
8
 
9
9
  #import "SMInAppContentViewController.h"
10
10
 
11
-
12
11
  /*!
13
- * a view controller for Image In App Content
14
- * #SMInAppContentImageViewController :#
12
+ * A view controller for Image In App Content
15
13
  */
16
14
  @interface SMInAppContentImageViewController : SMInAppContentViewController
17
15
 
18
16
  /*!
19
17
  * This will provide you a custom viewcontroller with one image view loaded with the url provided by an in app content for a specific category of image type
18
+ *
20
19
  * @discussion The viewcontroller will take all available space in screen and will contain a close button if it is presented as it is. Otherwise the app will have to provide a UIContainerView which will contain the view controller
21
20
  * @param category a NSString of the desired category of In App Content
22
21
  * @return a SMInAppContentImageViewController
23
22
  */
24
- + (instancetype) viewControllerForCategory:(NSString*)category;
23
+ + (instancetype _Nonnull) viewControllerForCategory:(NSString*_Nullable)category;
25
24
 
26
25
  /*!
27
26
  * This will provide you a custom viewcontroller with one web view loaded with the url provided by an in app content for a specific category of an Image type
27
+ *
28
28
  * @discussion The viewcontroller will take all available space in screen and will contain a close button if it is presented as it is. Otherwise the app will have to define a UIContainerView which will contain the view controller
29
29
  * @param category a NSString of the desired category of In App Content
30
30
  * @param options a SMInAppContentStyleOptions object allowing you to customise the in app content
31
31
  * @return a SMInAppContentImageViewController
32
+ * @see SMInAppContentStyleOptions
32
33
  */
33
- + (instancetype) viewControllerForCategory:(NSString*)category AndOptions:(SMInAppContentStyleOptions*)options ;
34
+ + (instancetype _Nonnull) viewControllerForCategory:(NSString*_Nullable)category AndOptions:(SMInAppContentStyleOptions*_Nullable)options;
34
35
 
35
36
 
36
37
  @end