@@ -235,7 +235,7 @@ public void appendTags(ReadableArray tags) {
235
235
/**
236
236
* Change Locale of Instabug UI elements(defaults to English)
237
237
*
238
- * @param String instabugLocale
238
+ * @param instabugLocale
239
239
*/
240
240
@ ReactMethod
241
241
public void changeLocale (String instabugLocale ) {
@@ -337,7 +337,7 @@ public void showIntroMessage() {
337
337
/**
338
338
* Set the primary color that the SDK will use to tint certain UI elements in the SDK
339
339
*
340
- * @param primaryColorValue The value of the primary color ,
340
+ * @param primaryColor The value of the primary color ,
341
341
* whatever this color was parsed from a resource color or hex color
342
342
* or RGB color values
343
343
*/
@@ -372,12 +372,8 @@ public void setAttachmentTypesEnabled(boolean screenshot, boolean extraScreensho
372
372
373
373
/**
374
374
* Appends a log message to Instabug internal log
375
- * <p>
376
375
* These logs are then sent along the next uploaded report. All log messages are timestamped
377
- * <br/>
378
376
* Logs aren't cleared per single application run. If you wish to reset the logs, use
379
- * {@link #clearLog()}
380
- * </p>
381
377
* Note: logs passed to this method are <b>NOT</b> printed to Logcat
382
378
*
383
379
* @param message log message
@@ -394,7 +390,7 @@ public void IBGLog(String message) {
394
390
/**
395
391
* Gets tags.
396
392
*
397
- * @return all tags added using {@link #addTags(String...)}
393
+ * @return all tags added
398
394
* @see #resetTags()
399
395
*/
400
396
@ ReactMethod
@@ -417,8 +413,8 @@ public void getTags(Callback tagsCallback) {
417
413
* Set the user identity.
418
414
* Instabug will pre-fill the user email in reports.
419
415
*
420
- * @param username Username.
421
- * @param email User's default email
416
+ * @param userName Username.
417
+ * @param userEmail User's default email
422
418
*/
423
419
@ ReactMethod
424
420
public void identifyUser (String userName , String userEmail ) {
@@ -430,7 +426,7 @@ public void identifyUser(String userName, String userEmail) {
430
426
}
431
427
432
428
/**
433
- * Reset ALL tags added using {@link #addTags(String...)}
429
+ * Reset ALL tags added
434
430
*/
435
431
@ ReactMethod
436
432
public void resetTags () {
@@ -586,7 +582,9 @@ public void setDebugEnabled(boolean isDebugEnabled) {
586
582
/**
587
583
* Report a caught exception to Instabug dashboard
588
584
*
589
- * @param throwable the exception to be reported
585
+ * @param stack the exception to be reported
586
+ * @param message the message of the exception to be reported
587
+ * @param errorIdentifier used to group issues manually reported
590
588
*/
591
589
@ ReactMethod
592
590
public void reportJsException (ReadableArray stack , String message , String errorIdentifier ) {
@@ -625,7 +623,6 @@ public void reportJsException(ReadableArray stack, String message, String errorI
625
623
* </p>
626
624
* Note: logs passed to this method are <b>NOT</b> printed to Logcat
627
625
*
628
- * @param logMessage The message you would like logged
629
626
* @param level the level
630
627
* @param message the message
631
628
*/
@@ -774,7 +771,7 @@ public void setColorTheme(String theme) {
774
771
* shows up on your Instabug dashboard as a tag to make filtering
775
772
* through issues easier.
776
773
*
777
- * @param reportCategories the report categories list which is a list of ReportCategory model
774
+ * @param categoriesTitles the report categories list which is a list of ReportCategory model
778
775
*/
779
776
@ ReactMethod
780
777
public void setReportCategories (ReadableArray categoriesTitles ) {
@@ -798,7 +795,7 @@ public void setReportCategories(ReadableArray categoriesTitles) {
798
795
* sending reports.
799
796
* Defaults to YES.
800
797
*
801
- * @param {boolean} isEmailFieldRequired A boolean to indicate whether email
798
+ * @param isEmailFieldRequired A boolean to indicate whether email
802
799
* field is required or not.
803
800
*/
804
801
@ ReactMethod
@@ -814,7 +811,7 @@ public void setEmailFieldRequired(boolean isEmailFieldRequired) {
814
811
* Sets whether users are required to enter a comment or not when sending reports.
815
812
* Defaults to NO.
816
813
*
817
- * @param {boolean} isCommentFieldRequired A boolean to indicate whether comment
814
+ * @param isCommentFieldRequired A boolean to indicate whether comment
818
815
* field is required or not.
819
816
*/
820
817
@ ReactMethod
@@ -830,8 +827,8 @@ public void setCommentFieldRequired(boolean isCommentFieldRequired) {
830
827
* Overrides any of the strings shown in the SDK with custom ones.
831
828
* Allows you to customize any of the strings shown to users in the SDK.
832
829
*
833
- * @param {string} string String value to override the default one.
834
- * @param {strings} key Key of string to override.
830
+ * @param string String value to override the default one.
831
+ * @param key Key of string to override.
835
832
*/
836
833
@ ReactMethod
837
834
public void setString (String string , String key ) {
@@ -863,7 +860,7 @@ public void logOut() {
863
860
* By default, screenshot view is shown when reporting a bug, but not when
864
861
* sending feedback.
865
862
*
866
- * @param {boolean} willSkipScreenshotAnnotation sets whether screenshot view is
863
+ * @param willSkipScreenshotAnnotation sets whether screenshot view is
867
864
* shown or not. Passing YES will show screenshot view for both feedback and
868
865
* bug reporting, while passing NO will disable it for both.
869
866
*/
@@ -880,7 +877,7 @@ public void setWillSkipScreenshotAnnotation(boolean willSkipScreenshotAnnotation
880
877
* Logs a user event that happens through the lifecycle of the application.
881
878
* Logged user events are going to be sent with each report, as well as at the end of a session.
882
879
*
883
- * @param {string} name Event name.
880
+ * @param name Event name.
884
881
*/
885
882
@ ReactMethod
886
883
public void logUserEventWithName (String name ) {
@@ -896,8 +893,8 @@ public void logUserEventWithName(String name) {
896
893
* Logged user events are going to be sent with each report, as well as at the end of a
897
894
* session.
898
895
*
899
- * @param {string} name Event name.
900
- * @param {ReadableMap} params An optional ReadableMap to be associated with the event.
896
+ * @param name Event name.
897
+ * @param params An optional ReadableMap to be associated with the event.
901
898
*/
902
899
@ ReactMethod
903
900
public void logUserEventWithNameAndParams (String name , ReadableMap params ) {
@@ -924,7 +921,7 @@ public void logUserEventWithNameAndParams(String name, ReadableMap params) {
924
921
* This block is executed on the UI thread. Could be used for performing any
925
922
* UI changes before the SDK's UI is shown.
926
923
*
927
- * @param {preInvocationHandler} preInvocationHandler - A callback that gets executed before
924
+ * @param preInvocationHandler - A callback that gets executed before
928
925
* invoking the SDK
929
926
*/
930
927
@ ReactMethod
@@ -947,7 +944,7 @@ public void run() {
947
944
* This block is executed in the background before sending each report. Could
948
945
* be used for attaching logs and extra data to reports.
949
946
*
950
- * @param {preSendingHandler} preSendingHandler - A callback that gets executed before
947
+ * @param preSendingHandler - A callback that gets executed before
951
948
* sending each bug
952
949
* report.
953
950
*/
@@ -971,7 +968,7 @@ public void run() {
971
968
* This block is executed on the UI thread. Could be used for performing any
972
969
* UI changes after the SDK's UI is dismissed.
973
970
*
974
- * @param {postInvocationHandler} postInvocationHandler - A callback to get executed after
971
+ * @param postInvocationHandler - A callback to get executed after
975
972
* dismissing the SDK.
976
973
*/
977
974
@ ReactMethod
@@ -996,7 +993,7 @@ public void onSdkDismissed(DismissType issueState, Bug.Type bugType) {
996
993
/**
997
994
* Show any valid survey if exist
998
995
*
999
- * @return return true if a valid survey was shown otherwise false
996
+ * @return true if a valid survey was shown otherwise false
1000
997
*/
1001
998
@ ReactMethod
1002
999
public void showSurveysIfAvailable () {
@@ -1010,7 +1007,7 @@ public void showSurveysIfAvailable() {
1010
1007
/**
1011
1008
* Show any valid survey if exist
1012
1009
*
1013
- * @return return true if a valid survey was shown otherwise false
1010
+ * @return true if a valid survey was shown otherwise false
1014
1011
*/
1015
1012
@ ReactMethod
1016
1013
public void setSurveysEnabled (boolean surveysEnabled ) {
@@ -1040,7 +1037,7 @@ public void setIntroMessageEnabled(boolean enabled) {
1040
1037
* WARNING: This runs on your application's main UI thread. Please do not include
1041
1038
* any blocking operations to avoid ANRs.
1042
1039
*
1043
- * @param preShowingSurveyRunnable to run on the UI thread before showing any valid survey
1040
+ * @param willShowSurveyHandler to run on the UI thread before showing any valid survey
1044
1041
*/
1045
1042
@ ReactMethod
1046
1043
public void setWillShowSurveyHandler (final Callback willShowSurveyHandler ) {
@@ -1062,7 +1059,7 @@ public void run() {
1062
1059
* WARNING: This runs on your application's main UI thread. Please do not include
1063
1060
* any blocking operations to avoid ANRs.
1064
1061
*
1065
- * @param afterShowingSurveyRunnable to run on the UI thread after showing any valid survey
1062
+ * @param didDismissSurveyHandler to run on the UI thread after showing any valid survey
1066
1063
*/
1067
1064
@ ReactMethod
1068
1065
public void setDidDismissSurveyHandler (final Callback didDismissSurveyHandler ) {
@@ -1086,9 +1083,9 @@ public void run() {
1086
1083
* none is enabled, Bug
1087
1084
* reporting becomes the default invocation option.
1088
1085
*
1089
- * @param {boolean} chat weather Talk to us is enable or not
1090
- * @param {boolean} bug weather Report a Problem is enable or not
1091
- * @param {boolean} feedback weather General Feedback is enable or not
1086
+ * @param chat weather Talk to us is enable or not
1087
+ * @param bug weather Report a Problem is enable or not
1088
+ * @param feedback weather General Feedback is enable or not
1092
1089
*/
1093
1090
@ ReactMethod
1094
1091
public void setPromptOptionsEnabled (boolean chat , boolean bug , boolean feedback ) {
@@ -1118,7 +1115,7 @@ public void clearFileAttachment() {
1118
1115
* you could increase the shaking difficulty level by
1119
1116
* increasing the `350` value and vice versa.
1120
1117
*
1121
- * @param {number} androidThreshold Threshold for android devices.
1118
+ * @param androidThreshold Threshold for android devices.
1122
1119
*/
1123
1120
@ ReactMethod
1124
1121
public void setShakingThresholdForAndroid (int androidThreshold ) {
@@ -1132,7 +1129,7 @@ public void setShakingThresholdForAndroid(int androidThreshold) {
1132
1129
/**
1133
1130
* Sets a block of code that gets executed when a new message is received.
1134
1131
*
1135
- * @param {onNewMessageHandler} onNewMessageHandler - A callback that gets
1132
+ * @param onNewMessageHandler - A callback that gets
1136
1133
* executed when a new message is received.
1137
1134
*/
1138
1135
@ ReactMethod
0 commit comments