SaddamButo / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

Add more methods to AjaxCallback #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
First, loving AQuery!

Feature request:
Add the following to AjaxCallback, or create a new interface to include these 
hooks for ajax requests.

onPreExecute
onComplete (currently callback())
onError
onCancel

Particularly interested in pre execute for more complex functionality than 
progress dialogs, and ability to pass entire callback methods around.

Thanks!

Original issue reported on code.google.com by gart...@gmail.com on 17 Jan 2012 at 9:35

GoogleCodeExporter commented 8 years ago
Hi,

I am trying to understand what's needed and what's already can be done with the 
current setup.

What's the purpose of onError? You can check what error with the AjaxStatus 
object.

When will onCancel get called?

I can see preExecute something that useful for long running task that doesn't 
belong to the UI thread. What are the tasks that you try to do in preExecute?

Thanks. :)

Original comment by tinyeeliu@gmail.com on 31 Jan 2012 at 2:29

GoogleCodeExporter commented 8 years ago

Original comment by tinyeeliu@gmail.com on 27 Apr 2012 at 5:02