@selligent-marketing-cloud/selligent-react-native 3.1.0 → 3.2.6

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 (184) hide show
  1. package/README.md +43 -1550
  2. package/RNSelligent.podspec +8 -15
  3. package/android/build.gradle +46 -79
  4. package/android/src/main/java/com/selligent/BroadcastEventType.java +4 -1
  5. package/android/src/main/java/com/selligent/ButtonAction.java +81 -0
  6. package/android/src/main/java/com/selligent/ButtonBroadcastEventDataParser.java +9 -3
  7. package/android/src/main/java/com/selligent/DeviceIdBroadcastEventDataParser.java +15 -0
  8. package/android/src/main/java/com/selligent/EventType.java +1 -1
  9. package/android/src/main/java/com/selligent/GCMTokenBroadcastEventDataParser.java +6 -1
  10. package/android/src/main/java/com/selligent/InAppMessageBroadcastEventDataParser.java +7 -1
  11. package/android/src/main/java/com/selligent/NotificationMessageBroadcastEventDataParser.java +19 -0
  12. package/android/src/main/java/com/selligent/RNSelligent.java +195 -56
  13. package/android/src/main/java/com/selligent/SMSettingsFactory.java +0 -1
  14. package/android/src/main/java/com/selligent/Settings.java +0 -9
  15. package/constants.d.ts +7 -33
  16. package/constants.js +51 -85
  17. package/documentation/README.md +826 -0
  18. package/helpers.js +5 -6
  19. package/index.android.js +8 -83
  20. package/index.d.ts +33 -43
  21. package/index.ios.js +25 -76
  22. package/index.js +153 -45
  23. package/ios/RNSelligentMapper.h +21 -0
  24. package/ios/RNSelligentMapper.m +151 -0
  25. package/ios/RNSelligentMobileSDK.xcframework/Info.plist +40 -0
  26. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Headers/RNSelligentMobileSDK-Swift.h +350 -0
  27. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Info.plist +0 -0
  28. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.abi.json +2603 -0
  29. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +59 -0
  30. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  31. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.swiftinterface +59 -0
  32. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/module.modulemap +4 -0
  33. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/RNSelligentMobileSDK +0 -0
  34. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/_CodeSignature/CodeResources +179 -0
  35. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Headers/RNSelligentMobileSDK-Swift.h +696 -0
  36. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Info.plist +0 -0
  37. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +2603 -0
  38. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +59 -0
  39. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  40. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +59 -0
  41. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +2603 -0
  42. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +59 -0
  43. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  44. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +59 -0
  45. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/module.modulemap +4 -0
  46. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/RNSelligentMobileSDK +0 -0
  47. package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/_CodeSignature/CodeResources +234 -0
  48. package/package.json +30 -11
  49. package/.gitattributes +0 -1
  50. package/CHANGELOG.md +0 -68
  51. package/android/README.md +0 -15
  52. package/android/build/generated/source/buildConfig/debug/com/selligent/BuildConfig.java +0 -12
  53. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -9
  54. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +0 -18
  55. package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +0 -4
  56. package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
  57. package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  58. package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
  59. package/android/build/intermediates/compile_symbol_list/debug/R.txt +0 -6781
  60. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
  61. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  62. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  63. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  64. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
  65. package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastDataFactory$1.class +0 -0
  66. package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastDataFactory.class +0 -0
  67. package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastEventDataParser.class +0 -0
  68. package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastEventType.class +0 -0
  69. package/android/build/intermediates/javac/debug/classes/com/selligent/BuildConfig.class +0 -0
  70. package/android/build/intermediates/javac/debug/classes/com/selligent/ButtonBroadcastEventDataParser.class +0 -0
  71. package/android/build/intermediates/javac/debug/classes/com/selligent/ClearCacheIntervalValue.class +0 -0
  72. package/android/build/intermediates/javac/debug/classes/com/selligent/Event.class +0 -0
  73. package/android/build/intermediates/javac/debug/classes/com/selligent/EventReceiver.class +0 -0
  74. package/android/build/intermediates/javac/debug/classes/com/selligent/EventType.class +0 -0
  75. package/android/build/intermediates/javac/debug/classes/com/selligent/GCMTokenBroadcastEventDataParser.class +0 -0
  76. package/android/build/intermediates/javac/debug/classes/com/selligent/InAppMessageBroadcastEventDataParser.class +0 -0
  77. package/android/build/intermediates/javac/debug/classes/com/selligent/InAppMessageRefreshType.class +0 -0
  78. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$1.class +0 -0
  79. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$2.class +0 -0
  80. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$3.class +0 -0
  81. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$4.class +0 -0
  82. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$5.class +0 -0
  83. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent.class +0 -0
  84. package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligentPackage.class +0 -0
  85. package/android/build/intermediates/javac/debug/classes/com/selligent/RemoteMessageDisplayType.class +0 -0
  86. package/android/build/intermediates/javac/debug/classes/com/selligent/SMEventFactory$1.class +0 -0
  87. package/android/build/intermediates/javac/debug/classes/com/selligent/SMEventFactory.class +0 -0
  88. package/android/build/intermediates/javac/debug/classes/com/selligent/SMSettingsFactory.class +0 -0
  89. package/android/build/intermediates/javac/debug/classes/com/selligent/Settings.class +0 -0
  90. package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -2
  91. package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +0 -11
  92. package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +0 -9
  93. package/android/build/intermediates/navigation_json/debug/navigation.json +0 -1
  94. package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +0 -18
  95. package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  96. package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +0 -5100
  97. package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -25
  98. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  99. package/android/libs/sdk-release.aar +0 -0
  100. package/documentation/add_json_file.png +0 -0
  101. package/documentation/add_lib_file.png +0 -0
  102. package/ios/BackgroundFetchResult.h +0 -5
  103. package/ios/ClearCacheInterval.h +0 -7
  104. package/ios/ClientSettings.h +0 -22
  105. package/ios/ClientSettings.m +0 -39
  106. package/ios/EnumMapper.h +0 -36
  107. package/ios/EnumMapper.m +0 -121
  108. package/ios/Event+SMEvent.h +0 -13
  109. package/ios/Event+SMEvent.m +0 -41
  110. package/ios/Event.h +0 -12
  111. package/ios/Event.m +0 -24
  112. package/ios/EventType.h +0 -7
  113. package/ios/InAppMessageRefreshType.h +0 -6
  114. package/ios/InAppMessageSettings.h +0 -9
  115. package/ios/InAppMessageSettings.m +0 -19
  116. package/ios/LocationAuthorisationStatus.h +0 -6
  117. package/ios/LocationAuthorisationType.h +0 -4
  118. package/ios/LogLevel.h +0 -9
  119. package/ios/NotificationButtonType.h +0 -15
  120. package/ios/ParsableObject.h +0 -5
  121. package/ios/RNSelligent.h +0 -22
  122. package/ios/RNSelligent.m +0 -347
  123. package/ios/RemoteMessageDisplayType.h +0 -5
  124. package/ios/SMManagerSetting+ClientSettings.h +0 -9
  125. package/ios/SMManagerSetting+ClientSettings.m +0 -73
  126. package/ios/SelligentLogger.h +0 -7
  127. package/ios/SelligentLogger.m +0 -9
  128. package/ios/SelligentReactNative.xcodeproj/project.pbxproj +0 -446
  129. package/ios/include/SMBaseMessage.h +0 -48
  130. package/ios/include/SMBlock.h +0 -21
  131. package/ios/include/SMClearCache.h +0 -34
  132. package/ios/include/SMContentAlignment.h +0 -27
  133. package/ios/include/SMDeviceInfos.h +0 -38
  134. package/ios/include/SMDisplayMode.h +0 -27
  135. package/ios/include/SMEvent.h +0 -69
  136. package/ios/include/SMEventUser.h +0 -20
  137. package/ios/include/SMEventUserLogin.h +0 -42
  138. package/ios/include/SMEventUserLogout.h +0 -42
  139. package/ios/include/SMEventUserRegistration.h +0 -42
  140. package/ios/include/SMEventUserUnregistration.h +0 -42
  141. package/ios/include/SMFailure.h +0 -19
  142. package/ios/include/SMHelper.h +0 -51
  143. package/ios/include/SMInAppContentHTMLViewController.h +0 -59
  144. package/ios/include/SMInAppContentImageViewController.h +0 -36
  145. package/ios/include/SMInAppContentMessage.h +0 -56
  146. package/ios/include/SMInAppContentStyleOptions.h +0 -511
  147. package/ios/include/SMInAppContentType.h +0 -35
  148. package/ios/include/SMInAppContentURLViewController.h +0 -36
  149. package/ios/include/SMInAppContentViewController.h +0 -31
  150. package/ios/include/SMInAppMessage.h +0 -51
  151. package/ios/include/SMInAppMessageType.h +0 -50
  152. package/ios/include/SMInAppRefreshType.h +0 -29
  153. package/ios/include/SMLink.h +0 -39
  154. package/ios/include/SMLog.h +0 -54
  155. package/ios/include/SMManager+DataTransaction.h +0 -33
  156. package/ios/include/SMManager+InAppContent.h +0 -170
  157. package/ios/include/SMManager+InAppMessage.h +0 -172
  158. package/ios/include/SMManager+Location.h +0 -41
  159. package/ios/include/SMManager+Log.h +0 -31
  160. package/ios/include/SMManager+RemoteNotification.h +0 -171
  161. package/ios/include/SMManager+SMEvent.h +0 -67
  162. package/ios/include/SMManager+SMLink.h +0 -44
  163. package/ios/include/SMManager+SilentPush.h +0 -53
  164. package/ios/include/SMManager+StyleOptions.h +0 -36
  165. package/ios/include/SMManager+UserNotification.h +0 -180
  166. package/ios/include/SMManager+ViewController.h +0 -45
  167. package/ios/include/SMManager.h +0 -69
  168. package/ios/include/SMManagerHelper.h +0 -18
  169. package/ios/include/SMManagerInAppMessageDelegate.h +0 -24
  170. package/ios/include/SMManagerSetting+Location.h +0 -27
  171. package/ios/include/SMManagerSetting.h +0 -180
  172. package/ios/include/SMManagerSettingIAC.h +0 -48
  173. package/ios/include/SMManagerSettingIAM.h +0 -49
  174. package/ios/include/SMManagerUniversalLinksDelegate.h +0 -23
  175. package/ios/include/SMMessage.h +0 -21
  176. package/ios/include/SMNSNotification.h +0 -81
  177. package/ios/include/SMNotificationAnnotationData.h +0 -33
  178. package/ios/include/SMNotificationButtonData.h +0 -20
  179. package/ios/include/SMNotificationButtonType.h +0 -90
  180. package/ios/include/SMNotificationMessage.h +0 -31
  181. package/ios/include/SMRemoteMessageDisplayType.h +0 -32
  182. package/ios/include/SMSuccess.h +0 -16
  183. package/ios/libSelligentMobile.a +0 -0
  184. package/trigger.yml +0 -9
@@ -1,511 +0,0 @@
1
- //
2
- // SMStylingProperties.h
3
- // MobileSDK
4
- //
5
- // Created by Gilbert Schakal on 29/04/16.
6
- // Copyright © 2016 Selligent. All rights reserved.
7
- //
8
-
9
- #import <Foundation/Foundation.h>
10
- #import "SMContentAlignment.h"
11
-
12
- /*!
13
- *
14
- */
15
- @interface SMInAppContentStyleOptions : NSObject
16
-
17
- /*!
18
- * inform the sdk if the main container view of your in app content must be scrollable
19
- *
20
- * @discussion bool
21
- * By default, it is set to true
22
- */
23
- @property (nonatomic) bool mainViewIsScrollable;
24
-
25
- /*!
26
- * Set the main container view of your in app contents background color
27
- *
28
- * @discussion UIColor
29
- * By default, it is clearColor
30
- */
31
- @property (nonatomic) UIColor *_Nullable mainViewBackgroundColor;
32
-
33
- /*!
34
- * Set the UIActivityIndicator style
35
- *
36
- * @discussion UIActivityIndicatorViewStyle
37
- * By default, it is UIActivityIndicatorViewStyleGray
38
- */
39
- @property (nonatomic) UIActivityIndicatorViewStyle activityIndicatorStyle;
40
-
41
- /*!
42
- * Set the boolean to determine if status bar must be hidden or not
43
- *
44
- * @discussion bool
45
- * By default, it is NO
46
- */
47
- @property (nonatomic) bool isStatusBarHidden;
48
-
49
- /*!
50
- * Set the leading constant between edge of view and every in app content box
51
- *
52
- * @discussion CGFloat must be a positive value
53
- * By default, it is set to 10
54
- */
55
- @property (nonatomic) CGFloat boxLeading;
56
-
57
- /*!
58
- * Set the trailing constant between edge of view and every in app content box
59
- *
60
- * @discussion CGFloat must be a positive value
61
- * By default, it is set to 10
62
- */
63
- @property (nonatomic) CGFloat boxTrailing;
64
-
65
- /*!
66
- * Set the Margin between bottom of a box and top of next one
67
- *
68
- * @discussion CGFloat must be a positive value
69
- * By default, it is set to 20
70
- */
71
- @property (nonatomic) CGFloat marginBetweenBoxes;
72
-
73
- /*!
74
- * Set the Margin between top of first box and top of view
75
- *
76
- * @discussion CGFloat must be a positive value
77
- * By default, it is set to 20
78
- */
79
- @property (nonatomic) CGFloat marginBetweenFirstBoxAndTopOfView;
80
-
81
- /*!
82
- * Set the Margin between bottom of last box and bottom of view
83
- *
84
- * @discussion CGFloat must be a positive value
85
- * By default, it is set to 20
86
- */
87
- @property (nonatomic) CGFloat marginBetweenLastBoxAndBottomOfView;
88
-
89
- /*!
90
- * Set the border width for all boxes
91
- *
92
- * @discussion CGFloat must be a positive value
93
- * By default, it is set to 1
94
- */
95
- @property (nonatomic) CGFloat boxBorderWidth;
96
-
97
- /*!
98
- * Set the color of box Border
99
- *
100
- * @discussion UIColor
101
- * By default, it is set to [UIColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:0.8]
102
- */
103
- @property (nonatomic) UIColor *_Nullable boxBorderColor;
104
-
105
- /*!
106
- * Set the radius of the corner for all boxes
107
- *
108
- * @discussion CGFloat must be a positive value
109
- * By default, it is set not set
110
- */
111
- @property (nonatomic) CGFloat boxCornerRadius;
112
-
113
- /*!
114
- * Set the background color of all boxes
115
- *
116
- * @discussion UIColor
117
- * By default, it is clearColor
118
- */
119
- @property (nonatomic) UIColor *_Nullable boxBackgroundColor;
120
-
121
- /*!
122
- * Set the shadow color of all boxes
123
- *
124
- * @discussion UIColor
125
- * By default, it is not set
126
- */
127
- @property (nonatomic) UIColor *_Nullable boxShadowColor;
128
-
129
- /*!
130
- * Set the shadow opacity of all boxes
131
- *
132
- * @discussion CGFloat
133
- * By default, it is not set
134
- */
135
- @property (nonatomic) CGFloat boxShadowOpacity;
136
-
137
- /*!
138
- * Set the shadow radius of all boxes
139
- *
140
- * @discussion CGFloat
141
- * By default, it is not set
142
- */
143
- @property (nonatomic) CGFloat boxShadowRadius;
144
-
145
- /*!
146
- * Set the shadow offset of all boxes
147
- *
148
- * @discussion CGSize
149
- * By default, it is not set
150
- */
151
- @property (nonatomic) CGSize boxShadowOffset;
152
-
153
- /*!
154
- * Set the border width for title
155
- *
156
- * @discussion CGFloat
157
- * By default, it is not set
158
- */
159
- @property (nonatomic) CGFloat titleBorderWidth;
160
-
161
- /*!
162
- * Set the color of title border
163
- *
164
- * @discussion UIColor
165
- * By default, it is not set
166
- */
167
- @property (nonatomic) UIColor *_Nullable titleBorderColor;
168
-
169
- /*!
170
- * Set the radius of the corner for all boxes
171
- *
172
- * @discussion CGFloat
173
- * By default, it is not set
174
- */
175
- @property (nonatomic) CGFloat titleCornerRadius;
176
-
177
- /*!
178
- * Set the background color of all titles
179
- *
180
- * @discussion UIColor
181
- * By default, it is whiteColor
182
- */
183
- @property (nonatomic) UIColor *_Nullable titleBackgroundColor;
184
-
185
- /*!
186
- * Set the number of lines of all titles
187
- *
188
- * @discussion UIColor
189
- * By default, it is 0
190
- */
191
- @property (nonatomic) CGFloat titleNumberOfLines;
192
-
193
- /*!
194
- * Set the NSLineBreakMode of all titles
195
- *
196
- * @discussion NSLineBreakMode
197
- * By default, it is NSLineBreakByWordWrapping
198
- */
199
- @property (nonatomic) NSLineBreakMode titleLineBreakMode;
200
-
201
- /*!
202
- * Set the title text alignment
203
- *
204
- * @discussion NSTextAlignment
205
- * By default, it is NSTextAlignmentLeft
206
- */
207
- @property (nonatomic) NSTextAlignment titleTextAlignment;
208
-
209
- /*!
210
- * Set the attributes that will be passed to NSAttributedString init which will create the text that will be display for title
211
- *
212
- * @discussion NSDictionary
213
- * By default, it is nil
214
- */
215
- @property (nonatomic) NSDictionary *_Nullable titleAttributes;
216
-
217
- /*!
218
- * Set title text color
219
- *
220
- * @discussion UIColor
221
- * By default, it is iOS default
222
- */
223
- @property (nonatomic) UIColor *_Nullable titleTextColor;
224
-
225
- /*!
226
- * Set font of the title
227
- *
228
- * @discussion UIFont
229
- * By default, it is iOS default
230
- */
231
- @property (nonatomic) UIFont *_Nullable titleFont;
232
-
233
- /*!
234
- * Set the trailing between the title container and the box
235
- *
236
- * @discussion CGFloat
237
- * By default, it is 10.0
238
- */
239
- @property (nonatomic) CGFloat titleTrailing;
240
-
241
- /*!
242
- * Set the leading between the title container and the box
243
- *
244
- * @discussion CGFloat
245
- * By default, it is 10.0
246
- */
247
- @property (nonatomic) CGFloat titleLeading;
248
-
249
- /*!
250
- * Set the top between the title container and the box
251
- *
252
- * @discussion CGFloat
253
- * By default, it is 30.0
254
- */
255
- @property (nonatomic) CGFloat titleTop;
256
-
257
- /*!
258
- * Set the shadow color of all titles
259
- *
260
- * @discussion UIColor
261
- * By default, it is not set
262
- */
263
- @property (nonatomic) UIColor *_Nullable titleShadowColor;
264
-
265
- /*!
266
- * Set the shadow opacity of all titles
267
- *
268
- * @discussion CGFloat
269
- * By default, it is not set
270
- */
271
- @property (nonatomic) CGFloat titleShadowOpacity;
272
-
273
- /*!
274
- * Set the corner radius of all titles
275
- *
276
- * @discussion CGFloat
277
- * By default, it is not set
278
- */
279
- @property (nonatomic) CGFloat titleShadowRadius;
280
-
281
- /*!
282
- * Set the shadow offset of all titles
283
- *
284
- * @discussion CGSize
285
- * By default, it is not set
286
- */
287
- @property (nonatomic) CGSize titleShadowOffset;
288
-
289
- /*!
290
- * Set the bool that will tell if a border bottom must be displayed under all titles in box
291
- *
292
- * @discussion bool
293
- * By default, it is NO
294
- */
295
- @property (nonatomic) bool showTitleBorderBottom;
296
-
297
- /*!
298
- * Set the border color of all border bottom that are displayed under all titles in box
299
- *
300
- * @discussion UIColor
301
- * By default, it is not set
302
- */
303
- @property (nonatomic) UIColor *_Nullable titleBorderBottomColor;
304
-
305
- /*!
306
- * Set the trailing between the textview and the box
307
- *
308
- * @discussion CGFloat
309
- * By default, it is 10.0
310
- */
311
- @property (nonatomic) CGFloat textViewTrailing;
312
-
313
- /*!
314
- * Set the leading between the textview and the box
315
- *
316
- * @discussion CGFloat
317
- * By default, it is 10.0
318
- */
319
- @property (nonatomic) CGFloat textViewLeading;
320
-
321
- /*!
322
- * Set the top between the textview and the box
323
- *
324
- * @discussion CGFloat
325
- * By default, it is 10.0
326
- */
327
- @property (nonatomic) CGFloat textViewTop;
328
-
329
- /*!
330
- * Set the textview content offset
331
- *
332
- * @discussion CGPoint
333
- * By default, it is not set
334
- */
335
- @property (nonatomic) CGPoint textViewContentOffset;
336
-
337
- /*!
338
- * Set the textview content edge inset
339
- *
340
- * @discussion UIEdgeInsets
341
- * By default, it is not set
342
- */
343
- @property (nonatomic) UIEdgeInsets textViewContentInset;
344
-
345
- /*!
346
- * Set the border width for textview
347
- *
348
- * @discussion CGFloat
349
- * By default, it is not set
350
- */
351
- @property (nonatomic) CGFloat textViewBorderWidth;
352
-
353
- /*!
354
- * Set the color of textview Border
355
- *
356
- * @discussion UIColor
357
- * By default, it is not set
358
- */
359
- @property (nonatomic) UIColor *_Nullable textViewBorderColor;
360
-
361
- /*!
362
- * Set the radius of the corner for all textview
363
- *
364
- * @discussion CGFloat
365
- * By default, it is not set
366
- */
367
- @property (nonatomic) CGFloat textViewCornerRadius;
368
-
369
- /*!
370
- * Set the background color of textview
371
- *
372
- * @discussion UIColor
373
- * By default, it is whiteColor
374
- */
375
- @property (nonatomic) UIColor *_Nullable textViewBackgroundColor;
376
-
377
- /*!
378
- * Set position of the links, this can be Left, Right, or Center
379
- *
380
- * @discussion SMContentAlignment
381
- * By default, it is kSMAlignLeft
382
- */
383
- @property (nonatomic) SMContentAlignment linksAlignment;
384
-
385
- /*!
386
- * Set the constant margin between links and edge of box (depends also of the linksAlignment property: if linksAligment is kSMAlignLeft than this property will only be applied for Leading margin, if linksAlignment is kSMAlignRight than this property is applied to trailing margin, if linksAlignment is kSMAlignCenter than this property is applied both for leading and trailing)
387
- *
388
- * @discussion CGFloat
389
- * By default, it is 10
390
- */
391
- @property (nonatomic) CGFloat linksMargin;
392
-
393
- /*!
394
- * Set the constant between links top and bottom of textview
395
- *
396
- * @discussion CGFloat
397
- * By default it is 10
398
- */
399
- @property (nonatomic) CGFloat linksTop;
400
-
401
- /*!
402
- * Set the constant between links bottom and bottom of box
403
- *
404
- * @discussion CGFloat
405
- * By default it is 10
406
- */
407
- @property (nonatomic) CGFloat linksBottom;
408
-
409
- /*!
410
- * Set the constant between links margin - useful when there is two links that will be displayed
411
- *
412
- * @discussion CGFloat
413
- * By default it is 10
414
- */
415
- @property (nonatomic) CGFloat marginBetweenLinks;
416
-
417
- /*!
418
- * Set the border width for links
419
- *
420
- * @discussion CGFloat
421
- * By default, it is not set
422
- */
423
- @property (nonatomic) CGFloat linkBorderWidth;
424
-
425
- /*!
426
- * Set the color of link Border
427
- *
428
- * @discussion UIColor
429
- * By default, it is not set
430
- */
431
- @property (nonatomic) UIColor *_Nullable linkBorderColor;
432
-
433
- /*!
434
- * Set the corner radius for links
435
- *
436
- * @discussion CGFloat
437
- * By default, it is not set
438
- */
439
- @property (nonatomic) CGFloat linkCornerRadius;
440
-
441
-
442
- /*!
443
- * Set the shadow color of all links
444
- *
445
- * @discussion UIColor
446
- * By default, it is not set
447
- */
448
- @property (nonatomic) UIColor *_Nullable linkShadowColor;
449
-
450
- /*!
451
- * Set the shadow opacity of all links
452
- *
453
- * @discussion CGFloat
454
- * By default, it is not set
455
- */
456
- @property (nonatomic) CGFloat linkShadowOpacity;
457
-
458
- /*!
459
- * Set the shadow radius of all links
460
- *
461
- * @discussion CGFloat
462
- * By default, it is not set
463
- */
464
- @property (nonatomic) CGFloat linkShadowRadius;
465
-
466
- /*!
467
- * Set the shadow offset of all links
468
- *
469
- * @discussion CGSize
470
- * By default, it is not set
471
- */
472
- @property (nonatomic) CGSize linkShadowOffset;
473
-
474
- /*!
475
- * Set the background color of link
476
- *
477
- * @discussion UIColor
478
- * By default, it is whiteColor
479
- */
480
- @property (nonatomic) UIColor *_Nullable linkBackgroundColor;
481
-
482
- /*!
483
- * Set the text color in link
484
- *
485
- * @discussion UIColor
486
- * By default, it is whiteColor
487
- */@property (nonatomic) UIColor *_Nullable linkTextColor;
488
-
489
- /*!
490
- * Set the font of links
491
- *
492
- * @discussion UIFont
493
- * By default, it is iOS default
494
- */
495
- @property (nonatomic) UIFont *_Nullable linkFont;
496
-
497
- /*!
498
- * Set the link content edge inset
499
- *
500
- * @discussion UIEdgeInsets
501
- * By default, it is not set
502
- */
503
- @property (nonatomic) UIEdgeInsets linkContentEdgeInsets;
504
-
505
- /*!
506
- * @abstract SMInAppContentStyleOptions constructor
507
- * @return SMInAppContentStyleOptions
508
- */
509
- + (instancetype _Nonnull) defaultStylingOptions;
510
-
511
- @end
@@ -1,35 +0,0 @@
1
- //
2
- // SMInAppContentType.h
3
- // MobileSDK
4
- //
5
- // Created by Gilbert Schakal on 02/03/16.
6
- // Copyright © 2016 Selligent. All rights reserved.
7
- //
8
-
9
- /*!
10
- *
11
- */
12
- typedef NS_OPTIONS (NSInteger, SMInAppContentType) {
13
-
14
- /*!
15
- * In App content of unknown type.
16
- */
17
- kSMInAppContentType_Unknown = -2,
18
-
19
- /*!
20
- * In App content of HTML type.
21
- */
22
- kSMInAppContentType_HTML = 1,
23
-
24
- /*!
25
- * In App content of URL type.
26
- */
27
- kSMInAppContentType_Url = 2,
28
-
29
- /*!
30
- * In App content of Image type.
31
- */
32
- kSMInAppContentType_Image = 3
33
-
34
-
35
- };
@@ -1,36 +0,0 @@
1
- //
2
- // SMInAppContentURLViewController.h
3
- // MobileSDK
4
- //
5
- // Created by Gilbert Schakal on 08/04/16.
6
- // Copyright © 2016 Selligent. All rights reserved.
7
- //
8
-
9
- #import "SMInAppContentViewController.h"
10
-
11
- /*!
12
- * A view controller for URL In App Content
13
- */
14
- @interface SMInAppContentURLViewController : SMInAppContentViewController
15
-
16
- /*!
17
- * 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 URL type
18
- *
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
20
- * @param category An NSString of the desired category of In App Content
21
- * @return An SMInAppContentURLViewController
22
- */
23
- + (instancetype _Nonnull) viewControllerForCategory:(NSString*_Nullable)category;
24
-
25
- /*!
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 URL type
27
- *
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
- * @param category An NSString of the desired category of In App Content
30
- * @param options An SMInAppContentStyleOptions object allowing you to customise the in app content
31
- * @return a SMInAppContentURLViewController
32
- * @see SMInAppContentStyleOptions
33
- */
34
- + (instancetype _Nonnull) viewControllerForCategory:(NSString*_Nullable)category AndOptions:(SMInAppContentStyleOptions*_Nullable)options;
35
-
36
- @end
@@ -1,31 +0,0 @@
1
- //
2
- // SMIACSimpleViewController.h
3
- // MobileSDK
4
- //
5
- // Created by Gilbert Schakal on 24/02/16.
6
- // Copyright © 2016 Selligent. All rights reserved.
7
- //
8
-
9
- #import <UIKit/UIKit.h>
10
-
11
- #import "SMInAppContentType.h"
12
- #import "SMInAppContentStyleOptions.h"
13
-
14
- @class SMInAppContentMessage;
15
-
16
- /*!
17
- * Parent class for SMInAppContentURLViewController, SMInAppContentHTMLViewController, SMInAppContentImageViewController
18
- */
19
- @interface SMInAppContentViewController : UIViewController
20
-
21
- /*!
22
- * NSString containing the category of the SMInAppContentViewController
23
- */
24
- @property (nonatomic,strong) NSString*_Nullable category;
25
-
26
- /*!
27
- * bool set with true when the SMInAppContentViewController is empty
28
- */
29
- @property (nonatomic) bool isEmpty;
30
-
31
- @end
@@ -1,51 +0,0 @@
1
- //
2
- // SMInAppMessage.h
3
- // MobileSDK
4
- //
5
- // Created by Gilbert Schakal on 19/05/15.
6
- // Copyright (c) 2015 Selligent. All rights reserved.
7
- //
8
-
9
- #import <Foundation/Foundation.h>
10
- #import "SMBaseMessage.h"
11
- #import "SMInAppMessageType.h"
12
-
13
- @interface SMInAppMessage : SMBaseMessage
14
-
15
- /*!
16
- * NSString instance providing the title of the inapp-notification
17
- */
18
- @property (readonly, nonatomic) NSString *_Nullable title;
19
-
20
- /*!
21
- * NSString instance providing the content of the inapp-notification
22
- */
23
- @property (readonly, nonatomic) NSString *_Nullable body;
24
-
25
- /*!
26
- * NSArray of SMNotificationAnnotationData objects for map inapp-notification
27
- */
28
- @property (readonly, nonatomic) NSArray *_Nullable arrayMapAnnotations;
29
-
30
- /*!
31
- * NSArray of SMLink objects from the inapp-notification
32
- */
33
- @property (readonly, nonatomic) NSArray *_Nullable arrayIAMLinks;
34
-
35
- /*!
36
- * SMInAppMessageType instance providing the in inapp-notification type
37
- * @see SMInAppMessageType
38
- */
39
- @property (readonly, nonatomic) SMInAppMessageType iamType;
40
-
41
- /*!
42
- * NSString instance providing the title of the remote-notification
43
- */
44
- @property (readonly, nonatomic) NSString *_Nullable apsTitle;
45
-
46
- /*!
47
- * NSString instance providing the body of the remote-notification
48
- */
49
- @property (readonly, nonatomic) NSString *_Nullable apsBody;
50
-
51
- @end
@@ -1,50 +0,0 @@
1
- //
2
- // SMInAppMessageType.h
3
- // MobileSDK
4
- //
5
- // Created by Gilbert Schakal on 24/9/2020.
6
- // Copyright © 2020 Selligent. All rights reserved.
7
- //
8
-
9
- typedef NS_ENUM (NSInteger, SMInAppMessageType) {
10
- /*!
11
- * In App message of unknown type.
12
- */
13
- kSMInAppMessageType_Unknown = -2,
14
-
15
- /*!
16
- * In App message of hidden type.
17
- */
18
- kSMInAppMessageType_Hidden = -1,
19
-
20
- /*!
21
- * In App message of alert type.
22
- */
23
- kSMInAppMessageType_Alert = 0,
24
-
25
- /*!
26
- * In App message of html type.
27
- */
28
- kSMInAppMessageType_HTML = 1,
29
-
30
- /*!
31
- * In App message of url type.
32
- */
33
- kSMInAppMessageType_Url = 2,
34
-
35
- /*!
36
- * In App message of image type.
37
- */
38
- kSMInAppMessageType_Image = 3,
39
-
40
- /*!
41
- * In App message of map type.
42
- */
43
- kSMInAppMessageType_Map = 4,
44
-
45
- /*!
46
- * In App message of passbook type.
47
- */
48
- kSMInAppMessageType_Passbook = 5
49
- };
50
-