Skip to content

Commit 2dfa7c8

Browse files
committed
Update the Cordova SDK documentation
1 parent 7cc2fb2 commit 2dfa7c8

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

fern/docs/pages/sdks/mobile/cordova/features.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ DevRev.showSupport(successCallback, errorCallback)
201201
You can initiate a new support conversation directly from your app. This method displays the support chat screen and simultaneously creates a new conversation.
202202

203203
```javascript
204-
DevRev.createSupportConversation(isAnimated, successCallback, errorCallback)
204+
DevRev.createSupportConversation(successCallback, errorCallback)
205205
```
206206

207207
## In-app link handling
@@ -220,6 +220,14 @@ You can further customize the behavior by setting the `setShouldDismissModalsOnO
220220
DevRev.setShouldDismissModalsOnOpenLink(value, successCallback, errorCallback)
221221
```
222222

223+
## Dynamic theme configuration
224+
225+
The DevRev SDK allows you to configure the theme dynamically based on the system appearance, or use the theme configured on the DevRev portal. By default, the theme will be dynamic and follow the system appearance.
226+
227+
```javascript
228+
DevRev.setPrefersSystemTheme(value, successCallback, errorCallback)
229+
```
230+
223231
## Analytics
224232

225233
The DevRev SDK allows you to send custom analytic events by using a properties map. You can track these events using the following function:
@@ -262,7 +270,7 @@ The session recording feature includes the following methods to control the reco
262270
|`DevRev.stopRecording(successCallback, errorCallback)` | Ends the session recording and uploads it to the portal. |
263271
|`DevRev.pauseRecording(successCallback, errorCallback)` | Pauses the ongoing session recording. |
264272
|`DevRev.resumeRecording(successCallback, errorCallback)` | Resumes a paused session recording. |
265-
|`DevRev.processAllOnDemandSessions(successCallback, errorCallback)` | Manually triggers processing of all on-demand sessions. |
273+
|`DevRev.processAllOnDemandSessions(successCallback, errorCallback)` | Stops the ongoing user recording and sends all on-demand sessions along with the current recording. |
266274

267275
### Session properties
268276

@@ -327,18 +335,10 @@ You can manually update the state using the following methods:
327335

328336
```javascript
329337
// Mark the transition as started.
330-
DevRev.setInScreenTransitioning(true)
338+
DevRev.setInScreenTransitioning(true, successCallback, errorCallback)
331339

332340
// Mark the transition as ended.
333-
DevRev.setInScreenTransitioning(false)
334-
```
335-
336-
## Dynamic theme configuration
337-
338-
The DevRev SDK allows you to configure the theme dynamically based on the system appearance, or use the theme configured on the DevRev portal. By default, the theme will be dynamic and follow the system appearance.
339-
340-
```javascript
341-
DevRev.setPrefersSystemTheme(value, successCallback, errorCallback)
341+
DevRev.setInScreenTransitioning(false, successCallback, errorCallback)
342342
```
343343

344344
## Push notifications

fern/docs/pages/sdks/mobile/cordova/migration-guide.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ This guide and chart should help facilitate the transition from the legacy UserE
1515
| Session Properties | `UserExperior.setUserProperties(userProperties)` | `DevRev.addSessionProperties(properties, successCallback, errorCallback)`<br />`DevRev.clearSessionProperties(successCallback, errorCallback)` |
1616
| Masking Sensitive Data | `<input type="text" placeholder="Enter Username" name="username" required class="ue-mask">`<br />`<input type="text" placeholder="Enter Username" name="username" required class="ue-unmask">` | `<input type="text" placeholder="Enter Username" name="username" required class="devrev-mask">`<br />`<input type="text" placeholder="Enter Username" name="username" required class="devrev-unmask">` |
1717
| Timers | `UserExperior.startTimer(timerName, properties)`<br /> `UserExperior.endTimer(timerName, properties)` | `DevRev.startTimer(name, properties, successCallback, errorCallback)`<br /> `DevRev.endTimer(name, properties, successCallback, errorCallback)` |
18-
| PLuG support chat | Not supported. | `DevRev.showSupport(successCallback, errorCallback)`<br /> `DevRev.createSupportConversation(isAnimated, successCallback, errorCallback)`<br /> `DevRev.setShouldDismissModalsOnOpenLink(value, successCallback, errorCallback)`<br /> `DevRev.setInAppLinkHandler(handler, successCallback, errorCallback)` |
18+
| PLuG support chat | Not supported. | `DevRev.showSupport(successCallback, errorCallback)`<br /> `DevRev.createSupportConversation(successCallback, errorCallback)`<br /> `DevRev.setShouldDismissModalsOnOpenLink(value, successCallback, errorCallback)`<br /> `DevRev.setInAppLinkHandler(handler, successCallback, errorCallback)` |
1919
| Push Notifications | Not supported. | `DevRev.registerDeviceToken(deviceToken, deviceID, successCallback, errorCallback)`<br /> `DevRev.unregisterDevice(deviceID, successCallback, errorCallback)`<br />`DevRev.processPushNotification(payload, successCallback, errorCallback)` |

0 commit comments

Comments
 (0)