Builder

open class Builder

The builder for the tracker.

  • Init function. Pass in the application context as it is a required parameter. The key is optional.

    Declaration

    Swift

    public init(context: UIApplication, key: String? = nil)

    Parameters

    context

    The UIApplication context.

    key

    The key to enable the analytics framework.

  • Build the tracker.

    Declaration

    Swift

    open func build() -> Tracker

    Return Value

    The configured Tracker object.

  • Enable the debug mode for the framework if aplicable. Returns the builder so that it can be chained.

    Declaration

    Swift

    open func setDebug(enabled: Bool) -> Builder

    Parameters

    enable

    Enable the debug mode.

    Return Value

    The builder object

  • Enable the logging feature if the framework supports it. Returns the builder so that it can be chained.

    Declaration

    Swift

    open func setLogging(enabled: Bool) -> Builder

    Parameters

    enable

    Enable the logging mode.

    Return Value

    The builder object

  • Enable the exception tracking feature if the framework supports it. Returns the builder so that it can be chained.

    Declaration

    Swift

    open func setExceptionTracking(enabled: Bool) -> Builder

    Parameters

    enable

    Enable exception tracking.

    Return Value

    The builder object