Added in API level 34
Also in S Extensions 7

UrlRequest.StatusListener


public static interface UrlRequest.StatusListener

android.net.http.UrlRequest.StatusListener


Listener interface used with UrlRequest.getStatus(StatusListener) to receive the status of a UrlRequest.

Summary

Public methods

abstract void onStatus(int status)

Invoked on UrlRequest's Executor's thread when request status is obtained.

Public methods

onStatus

Added in API level 34
Also in S Extensions 7
public abstract void onStatus (int status)

Invoked on UrlRequest's Executor's thread when request status is obtained.

Parameters
status int: integer representing the status of the request. It is one of the values defined in Status. Value is UrlRequest.Status.INVALID, UrlRequest.Status.IDLE, UrlRequest.Status.WAITING_FOR_STALLED_SOCKET_POOL, UrlRequest.Status.WAITING_FOR_AVAILABLE_SOCKET, UrlRequest.Status.WAITING_FOR_DELEGATE, UrlRequest.Status.WAITING_FOR_CACHE, UrlRequest.Status.DOWNLOADING_PAC_FILE, UrlRequest.Status.RESOLVING_PROXY_FOR_URL, UrlRequest.Status.RESOLVING_PROXY_FOR_URL, UrlRequest.Status.RESOLVING_HOST_IN_PAC_FILE, UrlRequest.Status.ESTABLISHING_PROXY_TUNNEL, UrlRequest.Status.RESOLVING_HOST, UrlRequest.Status.CONNECTING, UrlRequest.Status.SSL_HANDSHAKE, UrlRequest.Status.SENDING_REQUEST, UrlRequest.Status.WAITING_FOR_RESPONSE, or UrlRequest.Status.READING_RESPONSE