-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathUXCamServiceAdapter.swift
45 lines (37 loc) · 1.11 KB
/
UXCamServiceAdapter.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import Foundation
/**
Adapter for the UXCam iOS SDK.
# Useful links:
- https://help.uxcam.com/hc/en-us/categories/115000129131-Developer-Guide
# Package example:
```
// swift-tools-version: 5.10
import PackageDescription
let package = Package(
name: "Example",
dependencies: [
.package(name: "Tracker", path: "./swift-event-tracker"),
.package(url: "https://github.com/uxcam/uxcam-ios-sdk", from: "3.0.0"),
],
targets: [
.target(name: "Example", dependencies: [.product(name: "UXCam", package: "uxcam-ios-sdk"), "Tracker"]),
]
)
```
# Integration example:
```
import Tracker
import UXCam
extension UXCam: UXCamServiceAdapter {}
```
*/
// sourcery: AutoMockable
public protocol UXCamServiceAdapter {
static func logEvent(_ eventName: String, withProperties: [String: Any]?)
static func optInOverall()
static func optInOverallStatus() -> Bool
static func optOutOverall()
static func setUserIdentity(_ userIdentity: String)
static func setUserProperty(_ propertyName: String, value: Any)
static func tagScreenName(_ screenName: String)
}