RichieAnalytics
@MainActor
public protocol RichieAnalytics
RichieAnalytics
is the protocol for types that accept analytics events.
-
Undocumented
Declaration
Swift
@MainActor func startSession()
-
Undocumented
Declaration
Swift
@MainActor func resume()
-
Undocumented
Declaration
Swift
@MainActor func close()
-
Update the random screen identifier associated with future analytics events.
Declaration
Swift
@MainActor func updateScreenId()
-
Update analytics data for use as
previous_analytics_data
. When you call this,previous_analytics_data
will be set to the value provided by the previous call to this method.Declaration
Swift
@MainActor func updateCurrentScreenAnalyticsData(_ analyticsData: [String : Any])
-
Undocumented
Declaration
Swift
@MainActor func addEvent(_ event: RichieAnalyticsEvent, attributes: [String : Any], forceBackground: Bool)
-
Add values to be present in every event.
Declaration
Swift
@MainActor func addContextAttributeValue(_ value: Any, forKey key: String)
-
Undocumented
Declaration
Swift
@MainActor func removeContextAttribute(_ attribute: String)
-
Values typically provided by an external source to be present in every event.
Declaration
Swift
@MainActor func setGlobalAttributes(_ attributes: [String : Any])
-
Current context attributes that will be present in every event.
Does not include values set with
setGlobalAttributes(_:)
.Declaration
Swift
@MainActor func contextAttributes() -> [String : Any]
-
addEvent(_:
Extension methodattributes: ) Undocumented
Declaration
Swift
@MainActor func addEvent(_ event: RichieAnalyticsEvent, attributes: [String : Any] = [:])