Skip to content

Commit 23ed603

Browse files
Add Instabug module methods to InstabugReactBridge.h
1 parent 9b512c8 commit 23ed603

File tree

1 file changed

+74
-11
lines changed

1 file changed

+74
-11
lines changed

ios/RNInstabug/InstabugReactBridge.h

Lines changed: 74 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,86 @@
1414
#import <Instabug/IBGCrashReporting.h>
1515
#import <Instabug/IBGSurveys.h>
1616
#import <Instabug/IBGLog.h>
17+
#import <Instabug/IBGTypes.h>
1718

1819
@interface InstabugReactBridge : RCTEventEmitter <RCTBridgeModule>
1920

20-
- (void)showSurveyWithToken:(NSString *)surveyToken;
21+
/*
22+
+------------------------------------------------------------------------+
23+
| Instabug Module |
24+
+------------------------------------------------------------------------+
25+
*/
2126

27+
- (void)startWithToken:(NSString *)token invocationEvents:(NSArray *)invocationEventsArray;
2228

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;
2456

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*****************/
2587

26-
- (void)setBugReportingEnabled:(BOOL) isEnabled;
88+
- (void)setBugReportingEnabled:(BOOL)isEnabled;
2789

28-
- (void)setInvocationEvents:(NSArray*)invocationEventsArray;
90+
- (void)setInvocationEvents:(NSArray *)invocationEventsArray;
2991

3092
- (void)invoke;
3193

32-
- (void)setInvocationOptions:(NSArray*)invocationOptionsArray;
94+
- (void)setInvocationOptions:(NSArray *)invocationOptionsArray;
3395

34-
- (void)invokeWithInvocationModeAndOptions:(IBGInvocationMode)invocationMode options:(NSArray*)options;
96+
- (void)invokeWithInvocationModeAndOptions:(IBGInvocationMode)invocationMode options:(NSArray *)options;
3597

3698
- (void)setPreInvocationHandler:(RCTResponseSenderBlock)callBack;
3799

@@ -45,14 +107,15 @@
45107

46108
- (void)setExtendedBugReportMode:(IBGExtendedBugReportMode)extendedBugReportMode;
47109

48-
- (void)setReportTypes:(NSArray*)types;
110+
- (void)setReportTypes:(NSArray *)types;
49111

50-
- (void)showBugReportingWithReportTypeAndOptions:(IBGBugReportingReportType) type: (NSArray*) options;
112+
- (void)showBugReportingWithReportTypeAndOptions:(IBGBugReportingReportType)type
113+
:(NSArray *)options;
51114

52-
- (void)setAutoScreenRecordingEnabled:(BOOL) enabled;
115+
- (void)setAutoScreenRecordingEnabled:(BOOL)enabled;
53116

54-
- (void)setAutoScreenRecordingMaxDuration:(CGFloat) duration;
117+
- (void)setAutoScreenRecordingMaxDuration:(CGFloat)duration;
55118

56-
- (void)setViewHierarchyEnabled:(BOOL) viewHierarchyEnabled;
119+
- (void)setViewHierarchyEnabled:(BOOL)viewHierarchyEnabled;
57120

58121
@end

0 commit comments

Comments
 (0)