@@ -64,7 +64,7 @@ module.exports = {
6464 * @param {string } fileLocation Path to a file that's going to be attached
6565 * to each report.
6666 */
67- // Not yet testsed
67+ // Not yet tested
6868 setFileAttachment : function ( fileLocation ) {
6969 Instabug . setFileAttachment ( fileLocation ) ;
7070 } ,
@@ -124,14 +124,14 @@ module.exports = {
124124
125125 /**
126126 * Sets a block of code to be executed just before the SDK's UI is presented.
127- * This block is executed on the UI thread. Could be used for performing any
127+ * This block is executed on the UI thread. Could be used for performing any
128128 * UI changes before the SDK's UI is shown.
129- * @callback preSendingHandler
129+ * @callback preSendingHandler
130130 */
131131
132132 /**
133133 * Sets a block of code to be executed just before the SDK's UI is presented.
134- * This block is executed on the UI thread. Could be used for performing any
134+ * This block is executed on the UI thread. Could be used for performing any
135135 * UI changes before the SDK's UI is shown.
136136 * @param {preInvocationHandler } preInvocationHandler - A callback that gets executed before invoking the SDK
137137 */
@@ -147,10 +147,10 @@ module.exports = {
147147
148148 /**
149149 * A callback that gets executed after the SDK's UI is dismissed.
150- * @callback postInvocationHandler
150+ * @callback postInvocationHandler
151151 * @param {dismissType } dismissType How the SDK was dismissed.
152- * @param {reportType } reportType Type of report that has been sent. Will be set
153- * to IBGReportTypeBug in case the SDK has been dismissed without selecting a
152+ * @param {reportType } reportType Type of report that has been sent. Will be set
153+ * to IBGReportTypeBug in case the SDK has been dismissed without selecting a
154154 * report type, so you might need to check issueState before reportType
155155 */
156156
@@ -161,7 +161,7 @@ module.exports = {
161161 * @param {postInvocationHandler } postInvocationHandler - A callback to get executed after
162162 * dismissing the SDK.
163163 */
164- setPostInvocatioHandler : function ( postInvocationHandler ) {
164+ setPostInvocationHandler : function ( postInvocationHandler ) {
165165 Instabug . addListener ( 'IBGpostInvocationHandler' ) ;
166166 NativeAppEventEmitter . addListener (
167167 'IBGpostInvocationHandler' ,
@@ -170,7 +170,7 @@ module.exports = {
170170 }
171171 ) ;
172172
173- Instabug . setPostInvocatioHandler ( postInvocationHandler ) ;
173+ Instabug . setPostInvocationHandler ( postInvocationHandler ) ;
174174 } ,
175175
176176 /**
@@ -204,26 +204,26 @@ module.exports = {
204204 * Enables/disables screenshot view when reporting a bug/improvement.
205205 * By default, screenshot view is shown when reporting a bug, but not when
206206 * sending feedback.
207- * @param {boolean } willSkipeScreenshotAnnotation sets whether screenshot view is
207+ * @param {boolean } willSkipScreenshotAnnotation sets whether screenshot view is
208208 * shown or not. Passing YES will show screenshot view for both feedback and
209209 * bug reporting, while passing NO will disable it for both.
210210 */
211- setWillSkipScreenshotAnnotation : function ( willSkipeScreenshotAnnotation ) {
212- Instabug . setWillSkipScreenshotAnnotation ( willSkipeScreenshotAnnotation ) ;
211+ setWillSkipScreenshotAnnotation : function ( willSkipScreenshotAnnotation ) {
212+ Instabug . setWillSkipScreenshotAnnotation ( willSkipScreenshotAnnotation ) ;
213213 } ,
214214
215215 /**
216216 * return callback
217217 * @callback messageCountCallback
218- * @param {number } responseCount Notifications count, or -1 incase the SDK has
218+ * @param {number } responseCount Notifications count, or -1 incase the SDK has
219219 * not been initialized.
220220 */
221221
222222 /**
223223 * Returns the number of unread messages the user currently has.
224224 * Use this method to get the number of unread messages the user
225225 * has, then possibly notify them about it with your own UI.
226- * @param {messageCountCallback } messageCountCallback callback with argument
226+ * @param {messageCountCallback } messageCountCallback callback with argument
227227 * Notifications count, or -1 incase the SDK has not been initialized.
228228 */
229229 getUnreadMessagesCount : function ( messageCountCallback ) {
@@ -233,7 +233,7 @@ module.exports = {
233233 /**
234234 * Sets the event that invoke the feedback form.
235235 * Default is set by `Instabug.startWithToken`.
236- * @param {invocattionEvent } invocationEvent Event that invokes the
236+ * @param {invocationEvent } invocationEvent Event that invokes the
237237 * feedback form.
238238 */
239239 setInvocationEvent : function ( invocationEvent ) {
@@ -278,8 +278,8 @@ module.exports = {
278278 * @param {number } iPhoneShakingThreshold Threshold for iPhone.
279279 * @param {number } iPadShakingThreshold Threshold for iPad.
280280 */
281- setShakingThresholdForiPhone : function ( iphoneThreshold , ipadThreshold ) {
282- Instabug . setShakingThresholdForiPhone ( iphoneThreshold , ipadThreshold ) ;
281+ setShakingThresholdForIPhone : function ( iPhoneShakingThreshold , iPadShakingThreshold ) {
282+ Instabug . setShakingThresholdForIPhone ( iPhoneShakingThreshold , iPadShakingThreshold ) ;
283283 } ,
284284
285285 /**
@@ -289,7 +289,7 @@ module.exports = {
289289 * Default for `floatingButtonOffsetFromTop` is 50
290290 * @param {rectEdge } floatingButtonEdge `maxX` to show on the right,
291291 * or `minX` to show on the left.
292- * @param {numnber } offsetFromTop floatingButtonOffsetFromTop Top offset for
292+ * @param {number } offsetFromTop floatingButtonOffsetFromTop Top offset for
293293 * floating button.
294294 */
295295 setFloatingButtonEdge : function ( floatingButtonEdge , offsetFromTop ) {
@@ -321,11 +321,11 @@ module.exports = {
321321 Instabug . setIntroMessageEnabled ( isIntroMessageEnabled ) ;
322322 } ,
323323
324- /**
325- * Sets the color theme of the SDK's whole UI.
326- * @param {colorTheme) colorTheme An `colorTheme` to set
327- * the SDK's UI to.
328- */
324+ /**
325+ * Sets the color theme of the SDK's whole UI.
326+ * the SDK's UI to.
327+ * @param colorTheme
328+ */
329329 setColorTheme : function ( colorTheme ) {
330330 Instabug . setColorTheme ( colorTheme ) ;
331331 } ,
@@ -335,7 +335,7 @@ module.exports = {
335335 * Sets the color of UI elements indicating interactivity or call to action.
336336 * To use, import processColor and pass to it with argument the color hex
337337 * as argument.
338- * @param {color } color A color to set the UI elements of the SDK to.
338+ * @param {color } primaryColor A color to set the UI elements of the SDK to.
339339 */
340340 setPrimaryColor : function ( primaryColor ) {
341341 Instabug . setPrimaryColor ( primaryColor ) ;
@@ -383,8 +383,8 @@ module.exports = {
383383
384384 /**
385385 * Sets whether attachments in bug reporting and in-app messaging are enabled or not.
386- * @param {boolean } screenShot A boolean to enable or disable screenshot attachments.
387- * @param {boolean } extraScreenShot A boolean to enable or disable extra
386+ * @param {boolean } screenshot A boolean to enable or disable screenshot attachments.
387+ * @param {boolean } extraScreenshot A boolean to enable or disable extra
388388 * screenshot attachments.
389389 * @param {boolean } galleryImage A boolean to enable or disable gallery image
390390 * attachments. In iOS 10+,NSPhotoLibraryUsageDescription should be set in
@@ -415,10 +415,10 @@ module.exports = {
415415
416416 /**
417417 * Sets a block of code that gets executed when a new message is received.
418- * @param {onNewMessgaeHandler } onNewMessgaeHandler - A callback that gets
418+ * @param {onNewMessgaeHandler } onNewMessageHandler - A callback that gets
419419 * executed when a new message is received.
420420 */
421- setOnNewMessageHandler : function ( onNewMessgaeHandler ) {
421+ setOnNewMessageHandler : function ( onNewMessageHandler ) {
422422 Instabug . addListener ( 'IBGonNewMessageHandler' ) ;
423423 NativeAppEventEmitter . addListener (
424424 'IBGonNewMessageHandler' ,
@@ -433,11 +433,11 @@ module.exports = {
433433 * When only a single option is enabled, it become the default invocation mode.
434434 * If all options are disabled, bug reporting becomes the default invocation mode.
435435 * By default, all three options are enabled.
436- * @param {boolean } bugReportEnabled A boolean to indicate whether bug reports
436+ * @param {boolean } isBugReportingEnabled A boolean to indicate whether bug reports
437437 * are enabled or disabled.
438- * @param {boolean } feedbackEnabled A boolean to indicate whether feedback is
438+ * @param {boolean } isFeedbackReportingEnabled A boolean to indicate whether feedback is
439439 * enabled or disabled.
440- * @param {boolean } chatEnabled A boolean to indicate whether chat is enabled
440+ * @param {boolean } isChatEnabled A boolean to indicate whether chat is enabled
441441 * or disabled.
442442 */
443443 setPromptOptions : function ( isBugReportingEnabled , isFeedbackReportingEnabled , isChatEnabled ) {
@@ -447,7 +447,7 @@ module.exports = {
447447 /**
448448 * return callback
449449 * @callback isInstabugNotificationCallback
450- * @param {boolean } isInstabugNotification
450+ * @param {boolean } isInstabugNotification
451451 */
452452
453453 /**
@@ -539,7 +539,7 @@ module.exports = {
539539 light : Instabug . colorThemeLight ,
540540 dark : Instabug . colorThemeDark
541541 } ,
542- /**
542+ /**
543543 * Rectangle edges
544544 * @readonly
545545 * @enum {number}
@@ -593,6 +593,6 @@ module.exports = {
593593 chatsHeaderTitle : Instabug . chatsHeaderTitle ,
594594 team : Instabug . team ,
595595 messageNotification : Instabug . messageNotification ,
596- messagesNotifiactionAndOthers : Instabug . messagesNotifiactionAndOthers
596+ messagesNotificationAndOthers : Instabug . messagesNotificationAndOthers
597597 }
598598}
0 commit comments