|
14 | 14 | #import <Instabug/IBGCrashReporting.h>
|
15 | 15 | #import <Instabug/IBGSurveys.h>
|
16 | 16 | #import <Instabug/IBGLog.h>
|
| 17 | +#import <Instabug/IBGTypes.h> |
17 | 18 |
|
18 | 19 | @interface InstabugReactBridge : RCTEventEmitter <RCTBridgeModule>
|
19 | 20 |
|
20 |
| -- (void)showSurveyWithToken:(NSString *)surveyToken; |
| 21 | +/* |
| 22 | + +------------------------------------------------------------------------+ |
| 23 | + | Instabug Module | |
| 24 | + +------------------------------------------------------------------------+ |
| 25 | + */ |
21 | 26 |
|
| 27 | +- (void)startWithToken:(NSString *)token invocationEvents:(NSArray *)invocationEventsArray; |
22 | 28 |
|
23 |
| -/***********Bug Reporting*****************/ |
| 29 | +- (void)setUserData:(NSString *)userData; |
| 30 | + |
| 31 | +- (void)setTrackUserSteps:(BOOL)isEnabled; |
| 32 | + |
| 33 | +- (void)setSessionProfilerEnabled:(BOOL)sessionProfilerEnabled; |
| 34 | + |
| 35 | +- (void)setPushNotificationsEnabled:(BOOL)isPushNotificationEnabled; |
| 36 | + |
| 37 | +- (void)setLocale:(IBGLocale)locale; |
| 38 | + |
| 39 | +- (void)setColorTheme:(IBGColorTheme)colorTheme; |
| 40 | + |
| 41 | +- (void)setPrimaryColor:(UIColor *)color; |
| 42 | + |
| 43 | +- (void)appendTags:(NSArray *)tags; |
| 44 | + |
| 45 | +- (void)resetTags; |
| 46 | + |
| 47 | +- (void)getTags:(RCTResponseSenderBlock)callBack; |
| 48 | + |
| 49 | +- (void)setString:(NSString *)value toKey:(NSString *)key; |
| 50 | + |
| 51 | +- (void)identifyUserWithEmail:(NSString *)email name:(NSString *)name; |
| 52 | + |
| 53 | +- (void)logOut; |
| 54 | + |
| 55 | +- (void)logUserEventWithName:(NSString *)name; |
24 | 56 |
|
| 57 | +- (void)logVerbose:(NSString *)log; |
| 58 | + |
| 59 | +- (void)setReproStepsMode:(IBGUserStepsMode)reproStepsMode; |
| 60 | + |
| 61 | +- (void)setUserAttribute:(NSString *)key withValue:(NSString *)value; |
| 62 | + |
| 63 | +- (void)getUserAttribute:(NSString *)key callback:(RCTResponseSenderBlock)callback; |
| 64 | + |
| 65 | +- (void)removeUserAttribute:(NSString *)key; |
| 66 | + |
| 67 | +- (void)getAllUserAttributes:(RCTResponseSenderBlock)callback; |
| 68 | + |
| 69 | +- (void)clearAllUserAttributes; |
| 70 | + |
| 71 | +- (void)showWelcomeMessageWithMode:(IBGWelcomeMessageMode)welcomeMessageMode; |
| 72 | + |
| 73 | +- (void)setWelcomeMessageMode:(IBGWelcomeMessageMode)welcomeMessageMode; |
| 74 | + |
| 75 | +- (void)setFileAttachment:(NSString *)fileLocation; |
| 76 | + |
| 77 | +- (void)show; |
| 78 | +/* |
| 79 | + +------------------------------------------------------------------------+ |
| 80 | + | Surveys Module | |
| 81 | + +------------------------------------------------------------------------+ |
| 82 | + */ |
| 83 | + |
| 84 | +- (void)showSurveyWithToken:(NSString *)surveyToken; |
| 85 | + |
| 86 | +/***********Bug Reporting*****************/ |
25 | 87 |
|
26 |
| -- (void)setBugReportingEnabled:(BOOL) isEnabled; |
| 88 | +- (void)setBugReportingEnabled:(BOOL)isEnabled; |
27 | 89 |
|
28 |
| -- (void)setInvocationEvents:(NSArray*)invocationEventsArray; |
| 90 | +- (void)setInvocationEvents:(NSArray *)invocationEventsArray; |
29 | 91 |
|
30 | 92 | - (void)invoke;
|
31 | 93 |
|
32 |
| -- (void)setInvocationOptions:(NSArray*)invocationOptionsArray; |
| 94 | +- (void)setInvocationOptions:(NSArray *)invocationOptionsArray; |
33 | 95 |
|
34 |
| -- (void)invokeWithInvocationModeAndOptions:(IBGInvocationMode)invocationMode options:(NSArray*)options; |
| 96 | +- (void)invokeWithInvocationModeAndOptions:(IBGInvocationMode)invocationMode options:(NSArray *)options; |
35 | 97 |
|
36 | 98 | - (void)setPreInvocationHandler:(RCTResponseSenderBlock)callBack;
|
37 | 99 |
|
|
45 | 107 |
|
46 | 108 | - (void)setExtendedBugReportMode:(IBGExtendedBugReportMode)extendedBugReportMode;
|
47 | 109 |
|
48 |
| -- (void)setReportTypes:(NSArray*)types; |
| 110 | +- (void)setReportTypes:(NSArray *)types; |
49 | 111 |
|
50 |
| -- (void)showBugReportingWithReportTypeAndOptions:(IBGBugReportingReportType) type: (NSArray*) options; |
| 112 | +- (void)showBugReportingWithReportTypeAndOptions:(IBGBugReportingReportType)type |
| 113 | + :(NSArray *)options; |
51 | 114 |
|
52 |
| -- (void)setAutoScreenRecordingEnabled:(BOOL) enabled; |
| 115 | +- (void)setAutoScreenRecordingEnabled:(BOOL)enabled; |
53 | 116 |
|
54 |
| -- (void)setAutoScreenRecordingMaxDuration:(CGFloat) duration; |
| 117 | +- (void)setAutoScreenRecordingMaxDuration:(CGFloat)duration; |
55 | 118 |
|
56 |
| -- (void)setViewHierarchyEnabled:(BOOL) viewHierarchyEnabled; |
| 119 | +- (void)setViewHierarchyEnabled:(BOOL)viewHierarchyEnabled; |
57 | 120 |
|
58 | 121 | @end
|
0 commit comments