Publish Score iOS SDK 0.5.0
This commit is contained in:
@@ -17,3 +17,6 @@ public typealias DeliveryMode = ScoreTrackerKit.DeliveryMode
|
||||
public typealias PiiOptions = ScoreTrackerKit.PiiOptions
|
||||
public typealias PiiRule = ScoreTrackerKit.PiiRule
|
||||
public typealias PiiAction = ScoreTrackerKit.PiiAction
|
||||
/// The support snapshot returned by `ScoreClient.inspect()` (#490); its nested
|
||||
/// types are reached through it (`snapshot.identity.hasToken`).
|
||||
public typealias InspectSnapshot = ScoreTrackerKit.InspectSnapshot
|
||||
|
||||
@@ -120,6 +120,13 @@ public final class ScoreClient {
|
||||
public var anonymousId: String { tracker.anonymousId }
|
||||
public var pending: Int { Int(tracker.pending()) }
|
||||
|
||||
/// The tracker's state for support (#490): consent, queue depth and oldest
|
||||
/// event, identity (the token only as `hasToken`), the last flush, and the
|
||||
/// link and replay state. Attach `inspectJson()` to any bug report.
|
||||
public func inspect() -> InspectSnapshot { tracker.inspect() }
|
||||
/// `inspect()` as JSON, ready to paste into a bug report.
|
||||
public func inspectJson() -> String { tracker.inspectJson() }
|
||||
|
||||
// MARK: - Tracking
|
||||
|
||||
/// Track a typed loyalty event — the preferred form (#485). `Events` is
|
||||
|
||||
Reference in New Issue
Block a user