Package 

Class HttpTask

  • All Implemented Interfaces:
    java.util.concurrent.Callable , kotlin.Comparable

    
    public abstract class HttpTask<Result extends Object>
    extends Task<Response<Result>>
                        

    Base task for any work that talks to an HTTP backend. Wraps the standard Task lifecycle with:

    • dev-key and SDK-stopped guards (see AppsFlyerLib.stop(boolean, Context));

    • building and executing the underlying Call (provided by createHttpCall);

    • best-effort disk caching of the outbound request so it can be retried on the next launch if the process is killed before it lands;

    • listener notifications via getRequestListener for success, response-code failure, missing dev key, SDK-stopped and network-level errors.

    Caching follows the contract advertised by shouldCacheRequest — subclasses that carry session-scoped state (e.g. SendRegisterTask) MUST return false.