Skip to content

Request Download

D edited this page Dec 18, 2018 · 2 revisions
        Aster.download(url)
                .connectTimeout(60 * 1000)
                .readTimeout(60 * 1000)
                .writeTimeout(60 * 1000)
                .retryCount(3)
                .retryDelayMillis(1000)
                .tag(url)
                .request(path, filename, new ProgressCallback() {
                    @Override
                    public void onStart() { }

                    @Override
                    public void onProgress(long currentLength, long totalLength) { }

                    @Override
                    public void onSuccess() { }

                    @Override
                    public void onError(Throwable e) { }

                    @Override
                    public void onCancel() { }
                });
Clone this wiki locally