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.AppsFlyerRequestListener

Methods

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

TypeNameDescription
intcodeError code.
StringerrorError message.