UrlRequest.GetStatus(UrlRequest+IStatusListener) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Queries the status of the request.
[Android.Runtime.Register("getStatus", "(Landroid/net/http/UrlRequest$StatusListener;)V", "GetGetStatus_Landroid_net_http_UrlRequest_StatusListener_Handler", ApiSince=34)]
public abstract void GetStatus(Android.Net.Http.UrlRequest.IStatusListener listener);
[<Android.Runtime.Register("getStatus", "(Landroid/net/http/UrlRequest$StatusListener;)V", "GetGetStatus_Landroid_net_http_UrlRequest_StatusListener_Handler", ApiSince=34)>]
abstract member GetStatus : Android.Net.Http.UrlRequest.IStatusListener -> unit
Parameters
- listener
- UrlRequest.IStatusListener
a StatusListener that will be invoked with the request's current status. This value cannot be null.
- Attributes
Remarks
Queries the status of the request.
This is most useful to query the status of the request before any of the UrlRequest.Callback methods are called by Cronet.
The listener will be invoked back on the Executor passed in when the request was created. While you can assume the callback will be invoked in a timely fashion, the API doesn't make any guarantees about the latency, nor does it specify the order in which the listener and other callbacks will be invoked.
Android reference for android.net.http.UrlRequest.getStatus.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.