@@ -112,8 +112,7 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
112112 private final String ADD_EXTRA_SCREENSHOT = "addExtraScreenshot" ;
113113 private final String ADD_VIDEO = "addVideoMessage" ;
114114
115- private final String AUDIO_RECORDING_PERMISSION_DENIED =
116- "audioRecordingPermissionDeniedMessage" ;
115+ private final String AUDIO_RECORDING_PERMISSION_DENIED = "audioRecordingPermissionDeniedMessage" ;
117116
118117 private final String VOICE_MESSAGE_PRESS_AND_HOLD_TO_RECORD = "recordingMessageToHoldText" ;
119118 private final String VOICE_MESSAGE_RELEASE_TO_ATTACH = "recordingMessageToReleaseText" ;
@@ -237,7 +236,7 @@ public void appendTags(ReadableArray tags) {
237236 /**
238237 * Change Locale of Instabug UI elements(defaults to English)
239238 *
240- * @param String instabugLocale
239+ * @param instabugLocale
241240 */
242241 @ ReactMethod
243242 public void changeLocale (String instabugLocale ) {
@@ -353,7 +352,7 @@ public void showIntroMessage() {
353352 /**
354353 * Set the primary color that the SDK will use to tint certain UI elements in the SDK
355354 *
356- * @param primaryColorValue The value of the primary color ,
355+ * @param primaryColor The value of the primary color ,
357356 * whatever this color was parsed from a resource color or hex color
358357 * or RGB color values
359358 */
@@ -387,12 +386,8 @@ public void setEnabledAttachmentTypes(boolean screenshot, boolean extraScreensho
387386
388387 /**
389388 * Appends a log message to Instabug internal log
390- * <p>
391389 * These logs are then sent along the next uploaded report. All log messages are timestamped
392- * <br/>
393390 * Logs aren't cleared per single application run. If you wish to reset the logs, use
394- * {@link #clearLog()}
395- * </p>
396391 * Note: logs passed to this method are <b>NOT</b> printed to Logcat
397392 *
398393 * @param message log message
@@ -409,7 +404,7 @@ public void IBGLog(String message) {
409404 /**
410405 * Gets tags.
411406 *
412- * @return all tags added using {@link #addTags(String...)}
407+ * @return all tags added
413408 * @see #resetTags()
414409 */
415410 @ ReactMethod
@@ -432,8 +427,8 @@ public void getTags(Callback tagsCallback) {
432427 * Set the user identity.
433428 * Instabug will pre-fill the user email in reports.
434429 *
435- * @param username Username.
436- * @param email User's default email
430+ * @param userName Username.
431+ * @param userEmail User's default email
437432 */
438433 @ ReactMethod
439434 public void identifyUser (String userName , String userEmail ) {
@@ -445,7 +440,7 @@ public void identifyUser(String userName, String userEmail) {
445440 }
446441
447442 /**
448- * Reset ALL tags added using {@link #addTags(String...)}
443+ * Reset ALL tags added
449444 */
450445 @ ReactMethod
451446 public void resetTags () {
@@ -601,7 +596,9 @@ public void setDebugEnabled(boolean isDebugEnabled) {
601596 /**
602597 * Report a caught exception to Instabug dashboard
603598 *
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
605602 */
606603 @ ReactMethod
607604 public void reportJsException (ReadableArray stack , String message , String errorIdentifier ) {
@@ -640,7 +637,6 @@ public void reportJsException(ReadableArray stack, String message, String errorI
640637 * </p>
641638 * Note: logs passed to this method are <b>NOT</b> printed to Logcat
642639 *
643- * @param logMessage The message you would like logged
644640 * @param level the level
645641 * @param message the message
646642 */
@@ -825,7 +821,7 @@ public void setColorTheme(String theme) {
825821 * shows up on your Instabug dashboard as a tag to make filtering
826822 * through issues easier.
827823 *
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
829825 */
830826 @ ReactMethod
831827 public void setReportCategories (ReadableArray categoriesTitles ) {
@@ -849,7 +845,7 @@ public void setReportCategories(ReadableArray categoriesTitles) {
849845 * sending reports.
850846 * Defaults to YES.
851847 *
852- * @param {boolean} isEmailFieldRequired A boolean to indicate whether email
848+ * @param isEmailFieldRequired A boolean to indicate whether email
853849 * field is required or not.
854850 */
855851 @ ReactMethod
@@ -865,7 +861,7 @@ public void setEmailFieldRequired(boolean isEmailFieldRequired) {
865861 * Sets whether users are required to enter a comment or not when sending reports.
866862 * Defaults to NO.
867863 *
868- * @param {boolean} isCommentFieldRequired A boolean to indicate whether comment
864+ * @param isCommentFieldRequired A boolean to indicate whether comment
869865 * field is required or not.
870866 */
871867 @ ReactMethod
@@ -881,8 +877,8 @@ public void setCommentFieldRequired(boolean isCommentFieldRequired) {
881877 * Overrides any of the strings shown in the SDK with custom ones.
882878 * Allows you to customize any of the strings shown to users in the SDK.
883879 *
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.
886882 */
887883 @ ReactMethod
888884 public void setString (String string , String key ) {
@@ -914,7 +910,7 @@ public void logOut() {
914910 * By default, screenshot view is shown when reporting a bug, but not when
915911 * sending feedback.
916912 *
917- * @param {boolean} willSkipScreenshotAnnotation sets whether screenshot view is
913+ * @param willSkipScreenshotAnnotation sets whether screenshot view is
918914 * shown or not. Passing YES will show screenshot view for both feedback and
919915 * bug reporting, while passing NO will disable it for both.
920916 */
@@ -931,7 +927,7 @@ public void setWillSkipScreenshotAnnotation(boolean willSkipScreenshotAnnotation
931927 * Logs a user event that happens through the lifecycle of the application.
932928 * Logged user events are going to be sent with each report, as well as at the end of a session.
933929 *
934- * @param {string} name Event name.
930+ * @param name Event name.
935931 */
936932 @ ReactMethod
937933 public void logUserEventWithName (String name ) {
@@ -947,8 +943,8 @@ public void logUserEventWithName(String name) {
947943 * Logged user events are going to be sent with each report, as well as at the end of a
948944 * session.
949945 *
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.
952948 */
953949 @ ReactMethod
954950 public void logUserEventWithNameAndParams (String name , ReadableMap params ) {
@@ -975,7 +971,7 @@ public void logUserEventWithNameAndParams(String name, ReadableMap params) {
975971 * This block is executed on the UI thread. Could be used for performing any
976972 * UI changes before the SDK's UI is shown.
977973 *
978- * @param {preInvocationHandler} preInvocationHandler - A callback that gets executed before
974+ * @param preInvocationHandler - A callback that gets executed before
979975 * invoking the SDK
980976 */
981977 @ ReactMethod
@@ -998,7 +994,7 @@ public void run() {
998994 * This block is executed in the background before sending each report. Could
999995 * be used for attaching logs and extra data to reports.
1000996 *
1001- * @param {preSendingHandler} preSendingHandler - A callback that gets executed before
997+ * @param preSendingHandler - A callback that gets executed before
1002998 * sending each bug
1003999 * report.
10041000 */
@@ -1022,7 +1018,7 @@ public void run() {
10221018 * This block is executed on the UI thread. Could be used for performing any
10231019 * UI changes after the SDK's UI is dismissed.
10241020 *
1025- * @param {postInvocationHandler} postInvocationHandler - A callback to get executed after
1021+ * @param postInvocationHandler - A callback to get executed after
10261022 * dismissing the SDK.
10271023 */
10281024 @ ReactMethod
@@ -1047,7 +1043,7 @@ public void onSdkDismissed(DismissType issueState, Bug.Type bugType) {
10471043 /**
10481044 * Show any valid survey if exist
10491045 *
1050- * @return return true if a valid survey was shown otherwise false
1046+ * @return true if a valid survey was shown otherwise false
10511047 */
10521048 @ ReactMethod
10531049 public void showSurveysIfAvailable () {
@@ -1061,7 +1057,7 @@ public void showSurveysIfAvailable() {
10611057 /**
10621058 * Show any valid survey if exist
10631059 *
1064- * @return return true if a valid survey was shown otherwise false
1060+ * @return true if a valid survey was shown otherwise false
10651061 */
10661062 @ ReactMethod
10671063 public void setSurveysEnabled (boolean surveysEnabled ) {
@@ -1091,7 +1087,7 @@ public void setIntroMessageEnabled(boolean enabled) {
10911087 * WARNING: This runs on your application's main UI thread. Please do not include
10921088 * any blocking operations to avoid ANRs.
10931089 *
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
10951091 */
10961092 @ ReactMethod
10971093 public void setWillShowSurveyHandler (final Callback willShowSurveyHandler ) {
@@ -1113,7 +1109,7 @@ public void run() {
11131109 * WARNING: This runs on your application's main UI thread. Please do not include
11141110 * any blocking operations to avoid ANRs.
11151111 *
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
11171113 */
11181114 @ ReactMethod
11191115 public void setDidDismissSurveyHandler (final Callback didDismissSurveyHandler ) {
@@ -1137,9 +1133,9 @@ public void run() {
11371133 * none is enabled, Bug
11381134 * reporting becomes the default invocation option.
11391135 *
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
11431139 */
11441140 @ ReactMethod
11451141 public void setPromptOptionsEnabled (boolean chat , boolean bug , boolean feedback ) {
@@ -1169,7 +1165,7 @@ public void clearFileAttachment() {
11691165 * you could increase the shaking difficulty level by
11701166 * increasing the `350` value and vice versa.
11711167 *
1172- * @param {number} androidThreshold Threshold for android devices.
1168+ * @param androidThreshold Threshold for android devices.
11731169 */
11741170 @ ReactMethod
11751171 public void setShakingThresholdForAndroid (int androidThreshold ) {
@@ -1183,7 +1179,7 @@ public void setShakingThresholdForAndroid(int androidThreshold) {
11831179 /**
11841180 * Sets a block of code that gets executed when a new message is received.
11851181 *
1186- * @param {onNewMessageHandler} onNewMessageHandler - A callback that gets
1182+ * @param onNewMessageHandler - A callback that gets
11871183 * executed when a new message is received.
11881184 */
11891185 @ ReactMethod
0 commit comments