10
10
11
11
#import < Foundation/Foundation.h>
12
12
#import < UIKit/UIKit.h>
13
- #import " IBGTypes.h"
13
+ #import < InstabugCore/ IBGTypes.h>
14
14
15
15
/* *
16
16
This is the API for using Instabug's SDK. For more details about the SDK integration,
@@ -118,6 +118,7 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r
118
118
*/
119
119
+ (void )addFileAttachmentWithURL : (NSURL *)fileURL ;
120
120
121
+
121
122
/* *
122
123
@brief Add a set of data as a file attachment to be sent with each report.
123
124
@@ -129,7 +130,6 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r
129
130
*/
130
131
+(void )addFileAttachmentWithData : (NSData *)data ;
131
132
132
-
133
133
/* *
134
134
@brief Clear list of files to be attached with each report.
135
135
@@ -451,6 +451,15 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r
451
451
*/
452
452
+ (void )setFloatingButtonEdge : (CGRectEdge)floatingButtonEdge withTopOffset : (double )floatingButtonOffsetFromTop ;
453
453
454
+ /* *
455
+ @brief Sets the default position at which the Instabug screen recording button will be shown. Different orientations are already handled.
456
+
457
+ @discussion Default for `position` is `bottomRight`.
458
+
459
+ @param position `topLeft` to show on the top left of screen , or `bottomRight` to show on the bottom right of scrren.
460
+ */
461
+ + (void )setVideoRecordingFloatingButtonPosition : (IBGPosition)position ;
462
+
454
463
/* *
455
464
@brief Sets the SDK's locale.
456
465
@@ -630,7 +639,7 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r
630
639
631
640
@discussion When only a single option is enabled, it become the default invocation mode.
632
641
If all options are disabled, bug reporting becomes the default invocation mode.
633
-
642
+
634
643
By default, all three options are enabled.
635
644
636
645
@param bugReportEnabled A boolean to indicate whether bug reports are enabled or disabled.
@@ -667,7 +676,7 @@ typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *r
667
676
@brief Remove all extra fields.
668
677
669
678
@discussion Use this method to remove all added extra fields.
670
- */
679
+ */
671
680
+ (void )removeExtraReportFields ;
672
681
673
682
/* *
@@ -865,7 +874,7 @@ OBJC_EXTERN void IBGLogError(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
865
874
/* *
866
875
@brief Used to reroute all your NSLogs to Instabug to be able to automatically include them with reports.
867
876
868
- @discussion For details on how to reroute your NSLogs to Instabug, see https ://docs.instabug.com/docs/ios- logging
877
+ @discussion For details on how to reroute your NSLogs to Instabug, see http ://docs.instabug.com/docs/logging
869
878
870
879
@param format Format string.
871
880
@param args Arguments list.
@@ -1095,7 +1104,7 @@ OBJC_EXTERN void IBGNSLogWithLevel(NSString *format, va_list args, IBGLogLevel l
1095
1104
1096
1105
To manually display any available surveys, call `+ [Instabug showSurveyIfAvailable]`.
1097
1106
1098
- Defaults to NO .
1107
+ Defaults to YES .
1099
1108
1100
1109
@param autoShowingSurveysEnabled A boolean to indicate whether the surveys auto showing are enabled or not.
1101
1110
*/
@@ -1148,10 +1157,14 @@ OBJC_EXTERN void IBGNSLogWithLevel(NSString *format, va_list args, IBGLogLevel l
1148
1157
1149
1158
/* *
1150
1159
@brief Sets the verbosity level of logs used to debug the Instabug SDK itself.
1160
+
1161
+ @discussion This API sets the verbosity level of logs used to debug The SDK. The defualt value in debug mode is IBGSDKDebugLogsLevelVerbose and in production is IBGSDKDebugLogsLevelError.
1151
1162
1152
1163
@param level Logs verbosity level.
1153
1164
*/
1154
1165
+ (void )setSDKDebugLogsLevel : (IBGSDKDebugLogsLevel)level ;
1155
1166
1156
1167
@end
1168
+
1169
+
1157
1170
NS_ASSUME_NONNULL_END
0 commit comments