@@ -43,7 +43,9 @@ public String getName() {
4343 }
4444
4545 /**
46- * Sets the printed logs priority. Filter to one of the following levels.
46+ * This method is exporting a method
47+ * named `ibgSleep` to be accessible from JavaScript side. When this method is
48+ * called from JavaScript, it (sleeps) the current thread for 3 seconds.
4749 */
4850 @ ReactMethod
4951 public void ibgSleep () {
@@ -57,6 +59,14 @@ public void run() {
5759
5860 /**
5961 * Enables or disables APM.
62+ *
63+ * This function is exporting a method named
64+ * [setEnabled] to be accessible from JavaScript side. When this method is
65+ * called from JavaScript, it will set the `enabled` property of the [APM] class provided by the
66+ * Instabug SDK to the value passed as the `isEnabled` parameter. This property controls whether the
67+ * APM (Application Performance Monitoring) feature of Instabug is enabled or disabled based on the
68+ * boolean value passed to it.
69+ *
6070 * @param isEnabled boolean indicating enabled or disabled.
6171 */
6272 @ ReactMethod
@@ -75,6 +85,12 @@ public void run() {
7585
7686 /**
7787 * Enables or disables app launch tracking.
88+ *
89+ * This function is exporting a method named
90+ * `setAppLaunchEnabled` to be accessible from JavaScript side. When this
91+ * method is called from JavaScript, it will set the `coldAppLaunchEnabled` property of the `IBGAPM`
92+ * class provided by the Instabug SDK to the value passed as the `isEnabled` parameter.
93+ *
7894 * @param isEnabled boolean indicating enabled or disabled.
7995 */
8096 @ ReactMethod
@@ -92,7 +108,10 @@ public void run() {
92108 }
93109
94110 /**
95- * Ends app launch
111+ * This function is exporting a method named `endAppLaunch` to be
112+ * accessible from JavaScript side. When this method is called from
113+ * JavaScript, it will invoke the `endAppLaunch` method from the [APM] class provided by the
114+ * Instabug SDK. This method is used to signal the end of the app launch process.
96115 */
97116 @ ReactMethod
98117 public void endAppLaunch () {
@@ -110,6 +129,15 @@ public void run() {
110129
111130 /**
112131 * Enables or disables auto UI tracing
132+ *
133+ * This function is exporting a method named
134+ * [setAutoUITraceEnabled] to be accessible from JavaScript side. When this
135+ * method is called from JavaScript, it will set the `autoUITraceEnabled` property of the [APM]
136+ * class provided by the Instabug SDK to the value passed as the `isEnabled` parameter. This property
137+ * controls whether automatic tracing of UI interactions is enabled or disabled within the SDK. By
138+ * toggling this property, you can control whether the SDK captures data related to user interface
139+ * performance and behavior automatically.
140+ *
113141 * @param isEnabled boolean indicating enabled or disabled.
114142 */
115143 @ ReactMethod
@@ -281,6 +309,12 @@ public void run() {
281309
282310 /**
283311 * Starts a UI trace
312+ *
313+ * This function is exporting a method named
314+ * [startUITrace] to be accessible from JavaScript side. When this method is
315+ * called from JavaScript, it will invoke the [startUITrace] method from the [APM] class
316+ * provided by the Instabug SDK to start a new UI trace.
317+ *
284318 * @param name string name of the UI trace.
285319 */
286320 @ ReactMethod
@@ -298,7 +332,10 @@ public void run() {
298332 }
299333
300334 /**
301- * Ends the current running UI trace
335+ * This function is exporting a method named [endUITrace] to be
336+ * accessible from JavaScript side. When this method is called from
337+ * JavaScript, it will invoke the `endUITrace` method from the []APM] class provided by the Instabug
338+ * SDK. This method is used to terminate the currently active UI trace.
302339 */
303340 @ ReactMethod
304341 public void endUITrace () {
@@ -314,6 +351,73 @@ public void run() {
314351 });
315352 }
316353
354+ /**
355+ * The `networkLogAndroid` function logs network-related information using APMNetworkLogger in a React
356+ * Native module.
357+ *
358+ * @param requestStartTime The `requestStartTime` parameter in the `networkLogAndroid` method
359+ * represents the timestamp when the network request started. It is of type `double` and is passed as
360+ * a parameter to log network-related information.
361+ * @param requestDuration The `requestDuration` parameter in the `networkLogAndroid` method represents
362+ * the duration of the network request in milliseconds. It indicates the time taken for the request to
363+ * complete from the moment it was initiated until the response was received. This parameter helps in
364+ * measuring the performance of network requests and identifying any potential
365+ * @param requestHeaders requestHeaders is a string parameter that contains the headers of the network
366+ * request. It typically includes information such as the content type, authorization token, and any
367+ * other headers that were sent with the request.
368+ * @param requestBody The `requestBody` parameter in the `networkLogAndroid` method represents the
369+ * body of the HTTP request being logged. It contains the data that is sent as part of the request to
370+ * the server. This could include form data, JSON payload, XML data, or any other content that is
371+ * being transmitted
372+ * @param requestBodySize The `requestBodySize` parameter in the `networkLogAndroid` method represents
373+ * the size of the request body in bytes. It is a double value that indicates the size of the request
374+ * body being sent in the network request. This parameter is used to log information related to the
375+ * network request, including details
376+ * @param requestMethod The `requestMethod` parameter in the `networkLogAndroid` method represents the
377+ * HTTP method used in the network request, such as GET, POST, PUT, DELETE, etc. It indicates the type
378+ * of operation that the client is requesting from the server.
379+ * @param requestUrl The `requestUrl` parameter in the `networkLogAndroid` method represents the URL
380+ * of the network request being logged. It typically contains the address of the server to which the
381+ * request is being made, along with any additional path or query parameters required for the request.
382+ * This URL is essential for identifying the
383+ * @param requestContentType The `requestContentType` parameter in the `networkLogAndroid` method
384+ * represents the content type of the request being made. This could be values like
385+ * "application/json", "application/xml", "text/plain", etc., indicating the format of the data being
386+ * sent in the request body. It helps in specifying
387+ * @param responseHeaders The `responseHeaders` parameter in the `networkLogAndroid` method represents
388+ * the headers of the response received from a network request. These headers typically include
389+ * information such as content type, content length, server information, and any other metadata
390+ * related to the response. The `responseHeaders` parameter is expected to
391+ * @param responseBody The `responseBody` parameter in the `networkLogAndroid` method represents the
392+ * body of the response received from a network request. It contains the data or content sent back by
393+ * the server in response to the request made by the client. This could be in various formats such as
394+ * JSON, XML, HTML
395+ * @param responseBodySize The `responseBodySize` parameter in the `networkLogAndroid` method
396+ * represents the size of the response body in bytes. It is a double value that indicates the size of
397+ * the response body received from the network request. This parameter is used to log information
398+ * related to the network request and response, including
399+ * @param statusCode The `statusCode` parameter in the `networkLogAndroid` method represents the HTTP
400+ * status code of the network request/response. It indicates the status of the HTTP response, such as
401+ * success (200), redirection (3xx), client errors (4xx), or server errors (5xx). This parameter is
402+ * @param responseContentType The `responseContentType` parameter in the `networkLogAndroid` method
403+ * represents the content type of the response received from the network request. It indicates the
404+ * format of the data in the response, such as JSON, XML, HTML, etc. This information is useful for
405+ * understanding how to parse and handle the
406+ * @param errorDomain The `errorDomain` parameter in the `networkLogAndroid` method is used to specify
407+ * the domain of an error, if any occurred during the network request. If there was no error, this
408+ * parameter will be `null`.
409+ * @param w3cAttributes The `w3cAttributes` parameter in the `networkLogAndroid` method is a
410+ * ReadableMap object that contains additional attributes related to W3C external trace. It may
411+ * include the following key-value pairs:
412+ * @param gqlQueryName The `gqlQueryName` parameter in the `networkLogAndroid` method represents the
413+ * name of the GraphQL query being executed. It is a nullable parameter, meaning it can be null if no
414+ * GraphQL query name is provided. This parameter is used to log information related to GraphQL
415+ * queries in the network logging
416+ * @param serverErrorMessage The `serverErrorMessage` parameter in the `networkLogAndroid` method is
417+ * used to pass any error message received from the server during network communication. This message
418+ * can provide additional details about any errors that occurred on the server side, helping in
419+ * debugging and troubleshooting network-related issues.
420+ */
317421 @ ReactMethod
318422 private void networkLogAndroid (final double requestStartTime ,
319423 final double requestDuration ,
0 commit comments