@@ -20,7 +20,7 @@ FOUNDATION_EXPORT double ApptentiveVersionNumber;
20
20
FOUNDATION_EXPORT const unsigned char ApptentiveVersionString[];
21
21
22
22
/* * The version number of the Apptentive SDK. */
23
- #define kApptentiveVersionString @" 5.2.9 "
23
+ #define kApptentiveVersionString @" 5.2.10 "
24
24
25
25
/* * The version number of the Apptentive API platform. */
26
26
#define kApptentiveAPIVersionString @" 9"
@@ -84,7 +84,7 @@ extern NSNotificationName const ApptentiveSurveySentNotification;
84
84
extern NSNotificationName const ApptentiveMessageSentNotification;
85
85
86
86
/* * Notification user info key whose value indicates whether the message was sent by the user or using a sendAttachment method. */
87
- extern NSString * const ApptentiveSentByUserKey;
87
+ extern NSString *const ApptentiveSentByUserKey;
88
88
89
89
/* * Error domain for the Apptentive SDK */
90
90
extern NSString *const ApptentiveErrorDomain;
@@ -127,6 +127,16 @@ typedef NS_ENUM(NSUInteger, ApptentiveLogLevel) {
127
127
ApptentiveLogLevelVerbose = 6
128
128
};
129
129
130
+ @interface TermsAndConditions : NSObject <NSCopying >
131
+
132
+ @property (nullable , strong , nonatomic , readonly ) NSString *bodyText;
133
+ @property (nullable , strong , nonatomic , readonly ) NSString *linkText;
134
+ @property (nullable , strong , nonatomic , readonly ) NSURL *linkURL;
135
+
136
+ - (instancetype )initWithBodyText : (nullable NSString *)bodyText linkText : (nullable NSString *)linkText linkURL : (nullable NSURL *)linkURL ;
137
+
138
+ @end
139
+
130
140
/* *
131
141
An `ApptentiveConfiguration` instance is used to pass configuration
132
142
parameters into the `-registerWithConfiguration:` method.
@@ -164,6 +174,9 @@ typedef NS_ENUM(NSUInteger, ApptentiveLogLevel) {
164
174
/* * If set, shows a button in Surveys and Message Center that presents information about Apptentive including a link to our privacy policy. */
165
175
@property (assign , nonatomic ) BOOL showInfoButton;
166
176
177
+ /* * If set, shows a valid combination of terms & conditions and/or a link with an optional text mask, below the submit button in Surveys. */
178
+ @property (copy , nonatomic , nullable ) TermsAndConditions* surveyTermsAndConditions;
179
+
167
180
/* *
168
181
Returns an instance of the `ApptentiveConfiguration` class
169
182
initialized with the specified parameters.
@@ -246,6 +259,9 @@ typedef NS_ENUM(NSUInteger, ApptentiveLogLevel) {
246
259
247
260
@property (readonly , nonatomic ) BOOL showInfoButton;
248
261
262
+ @property (copy , nonatomic , nullable , readonly ) TermsAndConditions* surveyTermsAndConditions;
263
+
264
+
249
265
/* * An object conforming to the `ApptentiveDelegate` protocol.
250
266
If a `nil` value is passed for the view controller into methods such as `-engage:fromViewController`,
251
267
the SDK will request a view controller from the delegate from which to present an interaction.
0 commit comments