AsyncDownload Library

A simple library for asynchronous downloading.

License

License

GroupId

GroupId

com.github.liuguangqiang
ArtifactId

ArtifactId

asyncdownload
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

aar
Description

Description

AsyncDownload Library
A simple library for asynchronous downloading.
Project URL

Project URL

https://github.com/liuguangqiang/AsyncDownload
Source Code Management

Source Code Management

https://github.com/liuguangqiang/AsyncDownload

Download asyncdownload

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.liuguangqiang/asyncdownload/ -->
<dependency>
    <groupId>com.github.liuguangqiang</groupId>
    <artifactId>asyncdownload</artifactId>
    <version>0.1.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.liuguangqiang/asyncdownload/
implementation 'com.github.liuguangqiang:asyncdownload:0.1.0'
// https://jarcasting.com/artifacts/com.github.liuguangqiang/asyncdownload/
implementation ("com.github.liuguangqiang:asyncdownload:0.1.0")
'com.github.liuguangqiang:asyncdownload:aar:0.1.0'
<dependency org="com.github.liuguangqiang" name="asyncdownload" rev="0.1.0">
  <artifact name="asyncdownload" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.liuguangqiang', module='asyncdownload', version='0.1.0')
)
libraryDependencies += "com.github.liuguangqiang" % "asyncdownload" % "0.1.0"
[com.github.liuguangqiang/asyncdownload "0.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

AsyncDownload

A simple library for asynchronous downloading.

##Configuration DownloadConfiguration configuration=new DownloadConfiguration.Builder() .setFixedThreadPool(5) .setSingleThreadExecutor() .setCachedThreadPool() .setConnectionTimeout(101000) .setSocketTimeout(601000) .build(); AsyncDownload.getInstance().init(configuration);

##Sample //Download with AsyncDownload AsyncDownload.getInstance().download(params, new DownloadListener() {

    @Override
    public void onStart() {
    }

    @Override
    public void onSuccess() {
    }

    @Override
    public void onProgressUpdate(int progress) {
    }

    @Override
    public void onFailure(String msg) {
    }
    
    @Override
    public void onCancel() {                           
    }
    
    @Override
    public void onFinish() {                           
    }
    
});

##Usage

###Gradle

dependencies {
   	compile 'com.github.liuguangqiang:asyncdownload:0.1.0'
   }

###Maven

<dependency>
  	<groupId>com.github.liuguangqiang</groupId>
  	<artifactId>asyncdownload</artifactId>
  	<version>0.1.0</version>
  	<type>aar</type>
</dependency>

License

Copyright 2014 Eric Liu

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Versions

Version
0.1.0