AppsFlyerRequestListener
Overview
Intercept requests to the AppsFlyer servers by implementing the AppsFlyerRequestListener interface and registering it with start.
Interface declaration
public interface AppsFlyerRequestListener {
void onSuccess();
void onError(int code, @NonNull String error);
}Import the interface
import com.appsflyer.attribution.AppsFlyerRequestListener;import com.appsflyer.attribution.AppsFlyerRequestListenerMethods
onSuccess
Method signature
void onSuccess();Callback parameters
This callback returns no parameters.
Description
Triggered upon a successful response.
onError
Method signature
void onError(int code, @NonNull String error);Description
Triggered upon a successful response.
Callback parameters
| Type | Name | Description |
|---|---|---|
int | code | Error code. |
String | error | Error message. |
Updated 15 days ago