ssseasonnn/RxDownload — dự án di động — đang có 4.1k sao GitHub trong nhóm Mobile. A multi-threaded download tool written with RxJava and Kotlin
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
val file = url.file()
// or
val file = task.file()
// use file...
Delete download files:
url.delete()
// or
task.delete()
Task Manager
Get a TaskManager object:
val taskManager = url.manager()
Subscribe to status update:
//keep this tag for dispose
val tag = taskManager.subscribe { status ->
// Receive download status
when (status) {
is Normal -> {}
is Started -> {}
is Downloading -> {}
is Paused -> {}
is Completed -> {}
is Failed -> {}
is Deleted -> {}
}
}
progress can be obtained from status, when status is Failed,
you can get throwable from it, which is the reason for the failure.
// Query task with urls
RxDownloadRecorder.getTaskList("url1","url2","url3")
.observeOn(AndroidSchedulers.mainThread())
.subscribeBy { list ->
// list of TaskEntity
}
Get a list of all downloads:
RxDownloadRecorder.getAllTask()
.observeOn(AndroidSchedulers.mainThread())
.subscribeBy { list ->
//list of TaskEntity
}
Query all download records for a state:
// Query all Completed records
RxDownloadRecorder.getAllTaskWithStatus(Completed())
.observeOn(AndroidSchedulers.mainThread())
.subscribeBy { list ->
//list of TaskEntity
}
Paging query download record list:
RxDownloadRecorder.getTaskList(page, pageSize)
.observeOn(AndroidSchedulers.mainThread())
.subscribeBy { list ->
//list of TaskEntity
}
Paging query list of download records in a certain state:
// Get the list of pages that have been Completed
RxDownloadRecorder.getTaskListWithStatus(Completed(), page, pageSize)
.observeOn(AndroidSchedulers.mainThread())
.subscribeBy { list ->
//list of TaskEntity
}
TaskEntity has a abnormalExit field,
which is used to indicate whether the Task has paused by the APP forced close.
Start All:
RxDownloadRecorder.startAll()
Stop All:
RxDownloadRecorder.stopAll()
Delete All:
RxDownloadRecorder.deleteAll()
License
Copyright 2019 Season.Zlc
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.
ssseasonnn/RxDownload thuộc nhóm Mobile trên TopGit, cùng 3 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về ssseasonnn/RxDownload ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/ssseasonnn/RxDownload là nguồn chính thức.
ssseasonnn/RxDownload có phải mã nguồn mở không?
Có — ssseasonnn/RxDownload phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/ssseasonnn/RxDownload.
ssseasonnn/RxDownload là gì?
ssseasonnn/RxDownload (ssseasonnn/RxDownload) là dự án Kotlin trên GitHub. Theo mô tả gốc: A multi-threaded download tool written with RxJava and Kotlin
ssseasonnn/RxDownload so với các dự án Mobile khác thế nào?
ssseasonnn/RxDownload được TopGit xếp vào nhóm Mobile, với 4.1k sao GitHub và viết bằng Kotlin. Xem trang chủ đề Mobile trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Vì sao ssseasonnn/RxDownload được xếp vào nhóm Mobile?
TopGit xếp ssseasonnn/RxDownload vào nhóm Mobile dựa trên GitHub topics và mô tả của repo (gắn thẻ: "kotlin", "rxdownload", "rxjava"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc RxDownload có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về RxDownload.