@@ -244,6 +244,12 @@ If you want to display the support chat screen from the top-most view controller
244
244
await DevRev.showSupport (isAnimated: )
245
245
```
246
246
247
+ To create a new support conversation directly, use the following method:
248
+
249
+ ``` swift
250
+ await DevRev.createSupportConversation (isAnimated: )
251
+ ```
252
+
247
253
For example:
248
254
249
255
``` swift
@@ -255,6 +261,9 @@ await DevRev.showSupport(from: settingsViewController)
255
261
256
262
// Show the support chat screen from the top-most view controller, without an animation.
257
263
await DevRev.showSupport (isAnimated : false )
264
+
265
+ // Create a new support conversation directly from the top-most view controller.
266
+ await DevRev.createSupportConversation ()
258
267
```
259
268
### SwiftUI
260
269
@@ -354,6 +363,20 @@ The session recording feature includes the following methods to control the reco
354
363
| ` DevRev.stopRecording() ` | Ends the session recording and uploads it to the portal. |
355
364
| ` DevRev.pauseRecording() ` | Pauses the ongoing session recording. |
356
365
| ` DevRev.resumeRecording() ` | Resumes a paused session recording. |
366
+ | ` DevRev.processAllOnDemandSessions() ` | Stops the ongoing user recording and sends all on-demand sessions along with the current recording. |
367
+
368
+ You can also check the following flags for session recording:
369
+
370
+ ``` swift
371
+ // Check if session recording is currently active.
372
+ let isRecording = DevRev.isRecording
373
+
374
+ // Check if session monitoring is enabled.
375
+ let isMonitoringEnabled = DevRev.isMonitoringEnabled
376
+
377
+ // Check if on-demand sessions are enabled.
378
+ let areOnDemandSessionsEnabled = DevRev.areOnDemandSessionsEnabled
379
+ ```
357
380
358
381
### Session properties
359
382
@@ -395,7 +418,7 @@ You can implement your own masking logic by conforming to the `DevRev.MaskLocati
395
418
- ` DevRev.SnapshotMask ` : Describes the regions of a snapshot to be masked.
396
419
- ` DevRev.SnapshotMask.Location ` : Describes a masked region.
397
420
398
- #### Example
421
+ For example:
399
422
``` swift
400
423
import Foundation
401
424
import UIKit
@@ -435,7 +458,7 @@ DevRev.startTimer(_:properties:)
435
458
To stop a timer, use the following method:
436
459
437
460
``` swift
438
- DevRev.stopTimer (_:properties: )
461
+ DevRev.endTimer (_:properties: )
439
462
```
440
463
441
464
For example:
@@ -445,7 +468,7 @@ DevRev.startTimer("response-time", properties: ["id": "task-1337"])
445
468
446
469
// Perform the task that you want to measure.
447
470
448
- DevRev.stopTimer (" response-time" , properties : [" id" : " task-1337" ])
471
+ DevRev.endTimer (" response-time" , properties : [" id" : " task-1337" ])
449
472
```
450
473
451
474
### Screen tracking
0 commit comments