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