TrackerDelegate

@objc public protocol TrackerDelegate

Sends different events during hit building

  • Notify when tracker needs first launch approval

    Declaration

    Swift

    @objc optional func trackerNeedsFirstLaunchApproval(_ message: String)

    Parameters

    message

    approval message for confidentiality

  • Notify when hit has been built

    Declaration

    Swift

    @objc optional func buildDidEnd(_ status: HitStatus, message: String)

    Parameters

    status

    status of hit building

    message

    query string or error message

  • Notify when hit has been sent

    Declaration

    Swift

    @objc optional func sendDidEnd(_ status: HitStatus, message: String)

    Parameters

    status

    status of hit sending

    message

    querystring or http response message

  • Notify when hit has been saved in device local storage

    Declaration

    Swift

    @objc optional func saveDidEnd(_ message: String)

    Parameters

    message

    the saved hit

  • Notify when a partner has been called

    Declaration

    Swift

    @objc optional func didCallPartner(_ response: String)

    Parameters

    response

    the response received from the partner

  • Notify when a warning has been detected

    Declaration

    Swift

    @objc optional func warningDidOccur(_ message: String)

    Parameters

    message

    the warning message

  • Notify when a critical error has been detected

    Declaration

    Swift

    @objc optional func errorDidOccur(_ message: String)

    Parameters

    message

    the error message