RichieAnalytics

public protocol RichieAnalytics

RichieAnalytics is the protocol for types that accept analytics events.

  • Undocumented

    Declaration

    Swift

    func startSession()
  • Undocumented

    Declaration

    Swift

    func resume()
  • Undocumented

    Declaration

    Swift

    func close()
  • Update the random screen identifier associated with future analytics events.

    Declaration

    Swift

    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

    func updateCurrentScreenAnalyticsData(_ analyticsData: [AnyHashable : Any])
  • Undocumented

    Declaration

    Swift

    func addEvent(_ event: RichieAnalyticsEvent, attributes: [String : Any], forceBackground: Bool)
  • Add values to be present in every event.

    Declaration

    Swift

    func addContextAttributeValue(_ value: Any, forKey key: String)
  • Undocumented

    Declaration

    Swift

    func removeContextAttribute(_ attribute: String)
  • Values typically provided by an external source to be present in every event.

    Declaration

    Swift

    func setGlobalAttributes(_ attributes: [AnyHashable : Any])
  • Current context attributes that will be present in every event.

    Does not include values set with setGlobalAttributes(_:).

    Declaration

    Swift

    func contextAttributes() -> [AnyHashable : Any]
  • addEvent(_:attributes:) Extension method

    Undocumented

    Declaration

    Swift

    func addEvent(_ event: RichieAnalyticsEvent, attributes: [String : Any] = [:])