public static abstract class**UrlRequest.StatusListener** extends Object  
Listener class used with[UrlRequest.getStatus(UrlRequest.StatusListener)](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/UrlRequest.html#getStatus(org.chromium.net.UrlRequest.StatusListener))to receive the status of a[UrlRequest](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/UrlRequest.html).  

### Public Constructor Summary

|---|----------------------------------------------------------------------------------------------------------------------------------------------------------|
|   | [StatusListener](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/UrlRequest.StatusListener.html#StatusListener())() |

### Public Method Summary

|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract void | [onStatus](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/UrlRequest.StatusListener.html#onStatus(int))(int status) Invoked on[UrlRequest](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/UrlRequest.html)'s[Executor](https://developer.android.com/develop/connectivity/cronet/reference/java/util/concurrent/Executor.html)'s thread when request status is obtained. |

### Inherited Method Summary

From class java.lang.Object  

|------------------|---------------------------|
| Object           | clone()                   |
| boolean          | equals(Object arg0)       |
| void             | finalize()                |
| final Class\<?\> | getClass()                |
| int              | hashCode()                |
| final void       | notify()                  |
| final void       | notifyAll()               |
| String           | toString()                |
| final void       | wait(long arg0, int arg1) |
| final void       | wait(long arg0)           |
| final void       | wait()                    |

## Public Constructors

#### public**StatusListener**()

<br />

## Public Methods

#### public abstract void**onStatus**(int status)

Invoked on[UrlRequest](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/UrlRequest.html)'s[Executor](https://developer.android.com/develop/connectivity/cronet/reference/java/util/concurrent/Executor.html)'s thread when request status is obtained.  

##### Parameters

| status | integer representing the status of the request. It is one of the values defined in[UrlRequest.Status](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/UrlRequest.Status.html). |
|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|