FabricTracker

open class FabricTracker : Tracker

Fabric Tracker

For this tracker to work, it is necessary to insert the Fabric and Crashlytics configuration into the Info.plist, and add a run script phase that calls Fabric.framework/run with the token.

  • Start the tracking. This function verifies that the Fabric key has been defined in the Application Info.plist

    Declaration

    Swift

    open override func start()
  • Track data to the framework. This is called by StanwoodAnalytics. Only the parameters eventName, name and itemId are tracked using the CLSLogv function.

    Declaration

    Swift

    override open func track(trackingParameters: TrackingParameters)

    Parameters

    trackingParameters
  • Set Tracking. No implemented here is there is no switch for it in the framework. The change will only take place on the next app start.

    Declaration

    Swift

    override open func setTracking(enabled: Bool)

    Parameters

    enabled

    enable tracking

  • Track NSError to Crashlytics recordError method.

    Declaration

    Swift

    override open func track(error: NSError)

    Parameters

    error

    NSError

  • Use this for tracking custom keys and values.

    The user name, email and identifier are set using the keys definied in the analytics class.

    Sends data types to Crashlytics: Bool, Int32, Float, String or and object.

    Declaration

    Swift

    override open func track(trackerKeys: TrackerKeys)
  • The builder class for this tracker. Although the application is a required parameter, it is not used.

    See more

    Declaration

    Swift

    open class FabricBuilder : Tracker.Builder