Reports Delegate

Listen to AATKit reporting events

Listen to Reports Events

  • Initialise AATKit first.

  • Conform to AATReportsDelegate.

  • Pass the object conforming to AATReportsDelegate to AATKit using static func setReportsDelegate(_ delegate: AATReportsDelegate).

extension AppDelegate: AATReportsDelegate {
    func configureAATKit() {
        let configuration = AATConfiguration()
        AATSDK.initAATKit(with: conf)
        AATSDK.setReportsDelegate(self) // Must be called after AATKit init    
    }
    
    func onReportSent(_ report: String) {
        // A report has been sent
    }
}

Last updated