接口的使用
com.android.volley.Response.ErrorListener
使用Response.ErrorListener的程序包
-
com.android.volley中Response.ErrorListener的使用
参数类型为Response.ErrorListener的com.android.volley中的构造器限定符构造器说明Request(int method, String url, Response.ErrorListener listener) Creates a new request with the given method (one of the values fromRequest.Method), URL, and error listener.Request(String url, Response.ErrorListener listener) 已过时。 -
com.android.volley.toolbox中Response.ErrorListener的使用
修饰符和类型接口说明static interfaceInterface for the response handlers on image requests.限定符构造器说明ImageRequest(String url, Response.Listener<android.graphics.Bitmap> listener, int maxWidth, int maxHeight, android.graphics.Bitmap.Config decodeConfig, Response.ErrorListener errorListener) 已过时。ImageRequest(String url, Response.Listener<android.graphics.Bitmap> listener, int maxWidth, int maxHeight, android.widget.ImageView.ScaleType scaleType, android.graphics.Bitmap.Config decodeConfig, Response.ErrorListener errorListener) Creates a new image request, decoding to a maximum specified width and height.JsonArrayRequest(int method, String url, org.json.JSONArray jsonRequest, Response.Listener<org.json.JSONArray> listener, Response.ErrorListener errorListener) Creates a new request.JsonArrayRequest(String url, Response.Listener<org.json.JSONArray> listener, Response.ErrorListener errorListener) Creates a new request.JsonObjectRequest(int method, String url, org.json.JSONObject jsonRequest, Response.Listener<org.json.JSONObject> listener, Response.ErrorListener errorListener) Creates a new request.JsonObjectRequest(String url, org.json.JSONObject jsonRequest, Response.Listener<org.json.JSONObject> listener, Response.ErrorListener errorListener) Constructor which defaults toGETifjsonRequestisnull,POSTotherwise.JsonRequest(int method, String url, String requestBody, Response.Listener<T> listener, Response.ErrorListener errorListener) JsonRequest(String url, String requestBody, Response.Listener<T> listener, Response.ErrorListener errorListener) StringRequest(int method, String url, Response.Listener<String> listener, Response.ErrorListener errorListener) Creates a new request with the given method.StringRequest(String url, Response.Listener<String> listener, Response.ErrorListener errorListener) Creates a new GET request. -
net.apexes.commons.volley中Response.ErrorListener的使用
限定符构造器说明GsonRequest(String url, Q requestObject, Type responseType, Response.Listener<R> listener, Response.ErrorListener errorListener) GsonRequest(String url, Q requestObject, Type responseType, com.google.gson.Gson gson, Response.Listener<R> listener, Response.ErrorListener errorListener)
Request(int, String, com.android.volley.Response.ErrorListener).