Skip to content

Commit 52f9f37

Browse files
committed
Add javadoc.
1 parent 5b6e336 commit 52f9f37

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/com/androidquery/AbstractAQuery.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2636,13 +2636,35 @@ public T expand(boolean expand){
26362636
return self();
26372637
}
26382638

2639+
2640+
/**
2641+
* Download a file asynchronously.
2642+
*
2643+
* @param url url
2644+
* @param target the file to be saved
2645+
* @param cb callback to be called when done
2646+
* @return self
2647+
*
2648+
*/
2649+
26392650
public T download(String url, File target, AjaxCallback<File> cb){
26402651

26412652
cb.url(url).type(File.class).targetFile(target);
26422653
return ajax(cb);
26432654

26442655
}
26452656

2657+
/**
2658+
* Download a file asynchronously.
2659+
*
2660+
* @param url url
2661+
* @param target the file to be saved
2662+
* @param handler the callback handler
2663+
* @param callback the callback method
2664+
* @return self
2665+
*
2666+
*/
2667+
26462668
public T download(String url, File target, Object handler, String callback){
26472669

26482670
AjaxCallback<File> cb = new AjaxCallback<File>();

0 commit comments

Comments
 (0)