5
5
6
6
Copyright: (c) 2013 by Instabug, Inc., all rights reserved.
7
7
8
- Version: 1.1. 2
8
+ Version: 1.2
9
9
*/
10
10
11
11
// =============================================================================================
32
32
33
33
@constant InstabugFeedbackEventNone
34
34
No event will be registered to show the feedback form, you'll need to code your own and call the function ShowFeedbackForm
35
+
36
+ @constant InstabugFeedbackEventFloatingButton
37
+ Shows a floating button on top of all views, when pressed it takes a screenshot
35
38
*/
36
39
typedef enum {
37
40
InstabugFeedbackEventShake,
38
41
InstabugFeedbackEventScreenshot,
39
42
InstabugFeedbackEventThreeFingersSwipe,
40
- InstabugFeedbackEventNone
43
+ InstabugFeedbackEventNone,
44
+ InstabugFeedbackEventFloatingButton
41
45
} InstabugFeedbackEvent;
42
46
43
47
/* !
@@ -122,9 +126,6 @@ typedef enum{
122
126
// =============================================================================================
123
127
124
128
125
-
126
-
127
-
128
129
@interface Instabug : NSObject
129
130
130
131
// =============================================================================================
@@ -145,9 +146,6 @@ typedef enum{
145
146
// =============================================================================================
146
147
147
148
148
-
149
-
150
-
151
149
// =============================================================================================
152
150
// Other options to show the feedback form
153
151
// =============================================================================================
@@ -177,9 +175,6 @@ typedef enum{
177
175
// =============================================================================================
178
176
179
177
180
-
181
-
182
-
183
178
// =============================================================================================
184
179
// Sets the SDK parameters
185
180
// =============================================================================================
@@ -207,6 +202,23 @@ typedef enum{
207
202
*/
208
203
+(void )setEmail : (NSString *) email ;
209
204
205
+ /* !
206
+ @method setiPhoneShakingThreshold
207
+ @discussion Sets the threshold value of the shake gesture on iPhone/iPod Touch. The default value is 2.5
208
+ */
209
+ +(void )setiPhoneShakingThreshold : (double ) iPhoneShakingThreshold ;
210
+
211
+ /* !
212
+ @method setiPadShakingThreshold
213
+ @discussion Sets the threshold value of the shake gesture on iPad. The default value is 0.6
214
+ */
215
+ +(void )setiPadShakingThreshold : (double ) iPadShakingThreshold ;
216
+ // =============================================================================================
217
+
218
+
219
+ // =============================================================================================
220
+ // Sets the alerts parameters
221
+ // =============================================================================================
210
222
/* !
211
223
@method setEmailIsRequired
212
224
@discussion Sets the value of whether the email field is required or not
@@ -219,6 +231,18 @@ typedef enum{
219
231
*/
220
232
+(void )setEmailInvalidText : (NSString *) emailInvalidText ;
221
233
234
+ /* !
235
+ @method setCommentIsRequired
236
+ @discussion Sets the value of whether the comment field is required or not
237
+ */
238
+ +(void )setCommentIsRequired : (BOOL ) commentIsRequired ;
239
+
240
+ /* !
241
+ @method setCommentInvalidText
242
+ @discussion Sets the comment invalid alert text, shown if no comment was entered
243
+ */
244
+ +(void )setCommentInvalidText : (NSString *) commentInvalidText ;
245
+
222
246
/* !
223
247
@method setShowStartAlert
224
248
@discussion Sets the default value of the start alert, whether to show it or not
@@ -242,10 +266,13 @@ typedef enum{
242
266
@discussion Sets the thank you alert text, that gets shown after sending a feedback
243
267
*/
244
268
+(void )setThankYouAlertText : (NSString *) thankYouAlertText ;
245
- // =============================================================================================
246
-
247
-
248
269
270
+ /* !
271
+ @method setAlertsTitle
272
+ @discussion Sets the title of all future alerts
273
+ */
274
+ +(void )setAlertsTitle : (NSString *) alertsTitle ;
275
+ // =============================================================================================
249
276
250
277
251
278
// =============================================================================================
@@ -292,5 +319,17 @@ typedef enum{
292
319
@discussion Sets the email, comment and footer font color
293
320
*/
294
321
+(void )setTextFontColor : (UIColor*) color ;
322
+
323
+ /* !
324
+ @method setFloatingButtonForeColor
325
+ @discussion Sets the fore color of the floating button, if the floating button is selected
326
+ */
327
+ +(void )setFloatingButtonForeColor : (UIColor*) color ;
328
+
329
+ /* !
330
+ @method setFloatingButtonBackColor
331
+ @discussion Sets the back color of the floating button, if the floating button is selected
332
+ */
333
+ +(void )setFloatingButtonBackColor : (UIColor*) color ;
295
334
// =============================================================================================
296
335
@end
0 commit comments