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 one of the following: