@@ -112,8 +112,7 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
112
112
private final String ADD_EXTRA_SCREENSHOT = "addExtraScreenshot" ;
113
113
private final String ADD_VIDEO = "addVideoMessage" ;
114
114
115
- private final String AUDIO_RECORDING_PERMISSION_DENIED =
116
- "audioRecordingPermissionDeniedMessage" ;
115
+ private final String AUDIO_RECORDING_PERMISSION_DENIED = "audioRecordingPermissionDeniedMessage" ;
117
116
118
117
private final String VOICE_MESSAGE_PRESS_AND_HOLD_TO_RECORD = "recordingMessageToHoldText" ;
119
118
private final String VOICE_MESSAGE_RELEASE_TO_ATTACH = "recordingMessageToReleaseText" ;
@@ -237,7 +236,7 @@ public void appendTags(ReadableArray tags) {
237
236
/**
238
237
* Change Locale of Instabug UI elements(defaults to English)
239
238
*
240
- * @param String instabugLocale
239
+ * @param instabugLocale
241
240
*/
242
241
@ ReactMethod
243
242
public void changeLocale (String instabugLocale ) {
@@ -353,7 +352,7 @@ public void showIntroMessage() {
353
352
/**
354
353
* Set the primary color that the SDK will use to tint certain UI elements in the SDK
355
354
*
356
- * @param primaryColorValue The value of the primary color ,
355
+ * @param primaryColor The value of the primary color ,
357
356
* whatever this color was parsed from a resource color or hex color
358
357
* or RGB color values
359
358
*/
@@ -387,12 +386,8 @@ public void setEnabledAttachmentTypes(boolean screenshot, boolean extraScreensho
387
386
388
387
/**
389
388
* Appends a log message to Instabug internal log
390
- * <p>
391
389
* These logs are then sent along the next uploaded report. All log messages are timestamped
392
- * <br/>
393
390
* Logs aren't cleared per single application run. If you wish to reset the logs, use
394
- * {@link #clearLog()}
395
- * </p>
396
391
* Note: logs passed to this method are <b>NOT</b> printed to Logcat
397
392
*
398
393
* @param message log message
@@ -409,7 +404,7 @@ public void IBGLog(String message) {
409
404
/**
410
405
* Gets tags.
411
406
*
412
- * @return all tags added using {@link #addTags(String...)}
407
+ * @return all tags added
413
408
* @see #resetTags()
414
409
*/
415
410
@ ReactMethod
@@ -432,8 +427,8 @@ public void getTags(Callback tagsCallback) {
432
427
* Set the user identity.
433
428
* Instabug will pre-fill the user email in reports.
434
429
*
435
- * @param username Username.
436
- * @param email User's default email
430
+ * @param userName Username.
431
+ * @param userEmail User's default email
437
432
*/
438
433
@ ReactMethod
439
434
public void identifyUser (String userName , String userEmail ) {
@@ -445,7 +440,7 @@ public void identifyUser(String userName, String userEmail) {
445
440
}
446
441
447
442
/**
448
- * Reset ALL tags added using {@link #addTags(String...)}
443
+ * Reset ALL tags added
449
444
*/
450
445
@ ReactMethod
451
446
public void resetTags () {
@@ -601,7 +596,9 @@ public void setDebugEnabled(boolean isDebugEnabled) {
601
596
/**
602
597
* Report a caught exception to Instabug dashboard
603
598
*
604
- * @param throwable the exception to be reported
599
+ * @param stack the exception to be reported
600
+ * @param message the message of the exception to be reported
601
+ * @param errorIdentifier used to group issues manually reported
605
602
*/
606
603
@ ReactMethod
607
604
public void reportJsException (ReadableArray stack , String message , String errorIdentifier ) {
@@ -640,7 +637,6 @@ public void reportJsException(ReadableArray stack, String message, String errorI
640
637
* </p>
641
638
* Note: logs passed to this method are <b>NOT</b> printed to Logcat
642
639
*
643
- * @param logMessage The message you would like logged
644
640
* @param level the level
645
641
* @param message the message
646
642
*/
@@ -825,7 +821,7 @@ public void setColorTheme(String theme) {
825
821
* shows up on your Instabug dashboard as a tag to make filtering
826
822
* through issues easier.
827
823
*
828
- * @param reportCategories the report categories list which is a list of ReportCategory model
824
+ * @param categoriesTitles the report categories list which is a list of ReportCategory model
829
825
*/
830
826
@ ReactMethod
831
827
public void setReportCategories (ReadableArray categoriesTitles ) {
@@ -849,7 +845,7 @@ public void setReportCategories(ReadableArray categoriesTitles) {
849
845
* sending reports.
850
846
* Defaults to YES.
851
847
*
852
- * @param {boolean} isEmailFieldRequired A boolean to indicate whether email
848
+ * @param isEmailFieldRequired A boolean to indicate whether email
853
849
* field is required or not.
854
850
*/
855
851
@ ReactMethod
@@ -865,7 +861,7 @@ public void setEmailFieldRequired(boolean isEmailFieldRequired) {
865
861
* Sets whether users are required to enter a comment or not when sending reports.
866
862
* Defaults to NO.
867
863
*
868
- * @param {boolean} isCommentFieldRequired A boolean to indicate whether comment
864
+ * @param isCommentFieldRequired A boolean to indicate whether comment
869
865
* field is required or not.
870
866
*/
871
867
@ ReactMethod
@@ -881,8 +877,8 @@ public void setCommentFieldRequired(boolean isCommentFieldRequired) {
881
877
* Overrides any of the strings shown in the SDK with custom ones.
882
878
* Allows you to customize any of the strings shown to users in the SDK.
883
879
*
884
- * @param {string} string String value to override the default one.
885
- * @param {strings} key Key of string to override.
880
+ * @param string String value to override the default one.
881
+ * @param key Key of string to override.
886
882
*/
887
883
@ ReactMethod
888
884
public void setString (String string , String key ) {
@@ -914,7 +910,7 @@ public void logOut() {
914
910
* By default, screenshot view is shown when reporting a bug, but not when
915
911
* sending feedback.
916
912
*
917
- * @param {boolean} willSkipScreenshotAnnotation sets whether screenshot view is
913
+ * @param willSkipScreenshotAnnotation sets whether screenshot view is
918
914
* shown or not. Passing YES will show screenshot view for both feedback and
919
915
* bug reporting, while passing NO will disable it for both.
920
916
*/
@@ -931,7 +927,7 @@ public void setWillSkipScreenshotAnnotation(boolean willSkipScreenshotAnnotation
931
927
* Logs a user event that happens through the lifecycle of the application.
932
928
* Logged user events are going to be sent with each report, as well as at the end of a session.
933
929
*
934
- * @param {string} name Event name.
930
+ * @param name Event name.
935
931
*/
936
932
@ ReactMethod
937
933
public void logUserEventWithName (String name ) {
@@ -947,8 +943,8 @@ public void logUserEventWithName(String name) {
947
943
* Logged user events are going to be sent with each report, as well as at the end of a
948
944
* session.
949
945
*
950
- * @param {string} name Event name.
951
- * @param {ReadableMap} params An optional ReadableMap to be associated with the event.
946
+ * @param name Event name.
947
+ * @param params An optional ReadableMap to be associated with the event.
952
948
*/
953
949
@ ReactMethod
954
950
public void logUserEventWithNameAndParams (String name , ReadableMap params ) {
@@ -975,7 +971,7 @@ public void logUserEventWithNameAndParams(String name, ReadableMap params) {
975
971
* This block is executed on the UI thread. Could be used for performing any
976
972
* UI changes before the SDK's UI is shown.
977
973
*
978
- * @param {preInvocationHandler} preInvocationHandler - A callback that gets executed before
974
+ * @param preInvocationHandler - A callback that gets executed before
979
975
* invoking the SDK
980
976
*/
981
977
@ ReactMethod
@@ -998,7 +994,7 @@ public void run() {
998
994
* This block is executed in the background before sending each report. Could
999
995
* be used for attaching logs and extra data to reports.
1000
996
*
1001
- * @param {preSendingHandler} preSendingHandler - A callback that gets executed before
997
+ * @param preSendingHandler - A callback that gets executed before
1002
998
* sending each bug
1003
999
* report.
1004
1000
*/
@@ -1022,7 +1018,7 @@ public void run() {
1022
1018
* This block is executed on the UI thread. Could be used for performing any
1023
1019
* UI changes after the SDK's UI is dismissed.
1024
1020
*
1025
- * @param {postInvocationHandler} postInvocationHandler - A callback to get executed after
1021
+ * @param postInvocationHandler - A callback to get executed after
1026
1022
* dismissing the SDK.
1027
1023
*/
1028
1024
@ ReactMethod
@@ -1047,7 +1043,7 @@ public void onSdkDismissed(DismissType issueState, Bug.Type bugType) {
1047
1043
/**
1048
1044
* Show any valid survey if exist
1049
1045
*
1050
- * @return return true if a valid survey was shown otherwise false
1046
+ * @return true if a valid survey was shown otherwise false
1051
1047
*/
1052
1048
@ ReactMethod
1053
1049
public void showSurveysIfAvailable () {
@@ -1061,7 +1057,7 @@ public void showSurveysIfAvailable() {
1061
1057
/**
1062
1058
* Show any valid survey if exist
1063
1059
*
1064
- * @return return true if a valid survey was shown otherwise false
1060
+ * @return true if a valid survey was shown otherwise false
1065
1061
*/
1066
1062
@ ReactMethod
1067
1063
public void setSurveysEnabled (boolean surveysEnabled ) {
@@ -1091,7 +1087,7 @@ public void setIntroMessageEnabled(boolean enabled) {
1091
1087
* WARNING: This runs on your application's main UI thread. Please do not include
1092
1088
* any blocking operations to avoid ANRs.
1093
1089
*
1094
- * @param preShowingSurveyRunnable to run on the UI thread before showing any valid survey
1090
+ * @param willShowSurveyHandler to run on the UI thread before showing any valid survey
1095
1091
*/
1096
1092
@ ReactMethod
1097
1093
public void setWillShowSurveyHandler (final Callback willShowSurveyHandler ) {
@@ -1113,7 +1109,7 @@ public void run() {
1113
1109
* WARNING: This runs on your application's main UI thread. Please do not include
1114
1110
* any blocking operations to avoid ANRs.
1115
1111
*
1116
- * @param afterShowingSurveyRunnable to run on the UI thread after showing any valid survey
1112
+ * @param didDismissSurveyHandler to run on the UI thread after showing any valid survey
1117
1113
*/
1118
1114
@ ReactMethod
1119
1115
public void setDidDismissSurveyHandler (final Callback didDismissSurveyHandler ) {
@@ -1137,9 +1133,9 @@ public void run() {
1137
1133
* none is enabled, Bug
1138
1134
* reporting becomes the default invocation option.
1139
1135
*
1140
- * @param {boolean} chat weather Talk to us is enable or not
1141
- * @param {boolean} bug weather Report a Problem is enable or not
1142
- * @param {boolean} feedback weather General Feedback is enable or not
1136
+ * @param chat weather Talk to us is enable or not
1137
+ * @param bug weather Report a Problem is enable or not
1138
+ * @param feedback weather General Feedback is enable or not
1143
1139
*/
1144
1140
@ ReactMethod
1145
1141
public void setPromptOptionsEnabled (boolean chat , boolean bug , boolean feedback ) {
@@ -1169,7 +1165,7 @@ public void clearFileAttachment() {
1169
1165
* you could increase the shaking difficulty level by
1170
1166
* increasing the `350` value and vice versa.
1171
1167
*
1172
- * @param {number} androidThreshold Threshold for android devices.
1168
+ * @param androidThreshold Threshold for android devices.
1173
1169
*/
1174
1170
@ ReactMethod
1175
1171
public void setShakingThresholdForAndroid (int androidThreshold ) {
@@ -1183,7 +1179,7 @@ public void setShakingThresholdForAndroid(int androidThreshold) {
1183
1179
/**
1184
1180
* Sets a block of code that gets executed when a new message is received.
1185
1181
*
1186
- * @param {onNewMessageHandler} onNewMessageHandler - A callback that gets
1182
+ * @param onNewMessageHandler - A callback that gets
1187
1183
* executed when a new message is received.
1188
1184
*/
1189
1185
@ ReactMethod
0 commit comments