Skip to content

Commit

Permalink
Fixed README
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-troshkov committed Aug 29, 2022
1 parent c223b04 commit c269c35
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,6 @@ CXDmpUserIdentifier* userId = [[CXDmpUserIdentifier alloc] initWithIdentifier:@"
CXPerformanceEventBuilder* builder = [CXPerformanceEventBuilder makeBuilderWithName:@"UserClickedOnButton#123" type:@"click" origin:@"xyz-sample" siteId:@"1234567890" andUserIds:@[userId]];
```
### Force send events ###
To dispatch events without adding to the queue, you can use the ```Cxense.forceReportEvent``` method
```swift
Cxense.forceReportEvent(event) { isSent, error in
...
}
```

**Builder functions for setting parameters:**
- `setTime(_ interval: TimeInterval)` - Set exact time of an event.
Expand Down Expand Up @@ -292,6 +283,15 @@ if (error != nil) {
[CXCxense reportEvent:event];
```
### Force send events ###
To dispatch events without adding to the queue, you can use the ```Cxense.forceReportEvent``` method
```swift
Cxense.forceReportEvent(event) { isSent, error in
...
}
```

### Track active time

The SDK can track active time for page view events. For example - how long user had read specific article in the application. That can be easily done by using following function with event's name:
Expand Down

0 comments on commit c269c35

Please sign in to comment.