Event and session callbacks

You can register a delegate callback to notify you of the status of event and session tracking. The Adjust SDK uses the optional AdjustDelegate protocol used for the attribution callback.

Add the following delegate callback function for successfully tracked events:

Objective-C
Swift
Javascript
- (void)adjustEventTrackingSucceeded:(ADJEventSuccess *)eventSuccessResponseData {
}

Add the following delegate callback function for failed tracked events:

Objective-C
Swift
Javascript
- (void)adjustEventTrackingFailed:(ADJEventFailure *)eventFailureResponseData {
}

Add the following delegate callback function for successfully tracked sessions:

Objective-C
Swift
Javascript
- (void)adjustSessionTrackingSucceeded:(ADJSessionSuccess *)sessionSuccessResponseData {
}

Add the following delegate callback function for failed tracked sessions:

Objective-C
Swift
Javascript
- (void)adjustSessionTrackingFailed:(ADJSessionFailure *)sessionFailureResponseData {
}

The SDK will call the delegate functions after it tries to send a package to the Adjust backend. You have access to a response data object within the delegate callback. This object contains information about the status of the callback. Here is a summary of the returned properties:

Event properties

Session properties

Note:
If any value is unavailable, it will default to nil.