DefaultTrackerDelegate

public class DefaultTrackerDelegate: NSObject, TrackerDelegate

Helper to provide a simple tracker delegate that log all messages pushed by the SDK (verbose, warning, error…) Note: tracker.delegate is a weak var, so you have to reference the DefaultTrackerDelegate strongly somewhere. tracker.delegate = DefaultTrackerDelegate() // not working because the variable will be dealloc at the end of the function.

  • Helper to provide a simple tracker delegate that log all messages pushed by the SDK (verbose, warning, error…) Note: tracker.delegate is a weak var, so you have to reference the DefaultTrackerDelegate strongly somewhere. tracker.delegate = DefaultTrackerDelegate() // not working because the variable will be dealloc at the end of the function.

    Declaration

    Swift

    public func trackerNeedsFirstLaunchApproval(_ message: String)

    Parameters

    message

    approval message for confidentiality

  • Helper to provide a simple tracker delegate that log all messages pushed by the SDK (verbose, warning, error…) Note: tracker.delegate is a weak var, so you have to reference the DefaultTrackerDelegate strongly somewhere. tracker.delegate = DefaultTrackerDelegate() // not working because the variable will be dealloc at the end of the function.

    Declaration

    Swift

    public func buildDidEnd(_ status: HitStatus, message: String)

    Parameters

    status

    status of hit building

    message

    query string or error message

  • Helper to provide a simple tracker delegate that log all messages pushed by the SDK (verbose, warning, error…) Note: tracker.delegate is a weak var, so you have to reference the DefaultTrackerDelegate strongly somewhere. tracker.delegate = DefaultTrackerDelegate() // not working because the variable will be dealloc at the end of the function.

    Declaration

    Swift

    public func sendDidEnd(_ status: HitStatus, message: String)

    Parameters

    status

    status of hit sending

    message

    querystring or http response message

  • Helper to provide a simple tracker delegate that log all messages pushed by the SDK (verbose, warning, error…) Note: tracker.delegate is a weak var, so you have to reference the DefaultTrackerDelegate strongly somewhere. tracker.delegate = DefaultTrackerDelegate() // not working because the variable will be dealloc at the end of the function.

    Declaration

    Swift

    public func saveDidEnd(_ message: String)

    Parameters

    message

    the saved hit

  • Helper to provide a simple tracker delegate that log all messages pushed by the SDK (verbose, warning, error…) Note: tracker.delegate is a weak var, so you have to reference the DefaultTrackerDelegate strongly somewhere. tracker.delegate = DefaultTrackerDelegate() // not working because the variable will be dealloc at the end of the function.

    Declaration

    Swift

    public func didCallPartner(_ response: String)

    Parameters

    response

    the response received from the partner

  • Helper to provide a simple tracker delegate that log all messages pushed by the SDK (verbose, warning, error…) Note: tracker.delegate is a weak var, so you have to reference the DefaultTrackerDelegate strongly somewhere. tracker.delegate = DefaultTrackerDelegate() // not working because the variable will be dealloc at the end of the function.

    Declaration

    Swift

    public func warningDidOccur(_ message: String)

    Parameters

    message

    the warning message

  • Helper to provide a simple tracker delegate that log all messages pushed by the SDK (verbose, warning, error…) Note: tracker.delegate is a weak var, so you have to reference the DefaultTrackerDelegate strongly somewhere. tracker.delegate = DefaultTrackerDelegate() // not working because the variable will be dealloc at the end of the function.

    Declaration

    Swift

    public func errorDidOccur(_ message: String)

    Parameters

    message

    the error message