接口的使用
com.android.volley.Response.Listener
使用Response.Listener的程序包
-
com.android.volley.toolbox中Response.Listener的使用
参数类型为Response.Listener的com.android.volley.toolbox中的构造器限定符构造器说明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.Listener的使用
参数类型为Response.Listener的net.apexes.commons.volley中的构造器限定符构造器说明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)
JsonRequest(int, String, String, Listener, ErrorListener).