All Projects → ixuea → CocoaDownloader

ixuea / CocoaDownloader

Licence: Apache-2.0 license
An powerful download library for iOS, macOS.

Programming Languages

objective c
16641 projects - #2 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to CocoaDownloader

Negibox
All in one downloader 全能下载器
Stars: ✭ 335 (+1422.73%)
Mutual labels:  mac, downloader, download-manager
Floatplane-Downloader
Project for automatically organizing and downloading Floatplane videos for plex.
Stars: ✭ 94 (+327.27%)
Mutual labels:  downloader, download-manager, downloads
Downloader
Fast and reliable multipart downloader with asynchronous progress events for .NET applications.
Stars: ✭ 128 (+481.82%)
Mutual labels:  downloader, download-manager
4chan Downloader
Python3 script to continuously download all images/webms of multiple 4chan thread simultaneously - without installation
Stars: ✭ 136 (+518.18%)
Mutual labels:  downloader, download-manager
Xdm
Powerfull download accelerator and video downloader
Stars: ✭ 3,226 (+14563.64%)
Mutual labels:  downloader, download-manager
Flutter downloader
Flutter Downloader - A plugin for creating and managing download tasks. Supports iOS and Android. Maintainer: @hnvn
Stars: ✭ 546 (+2381.82%)
Mutual labels:  downloader, download-manager
Dl
🍗 a concurrent http file downloader
Stars: ✭ 68 (+209.09%)
Mutual labels:  downloader, download-manager
Nacollector
⚔ 一个采集工具箱,据说是一个用于采集各种 WEB 资源的工作站?!你可以认为这是一个框架,可拓展。淘宝、天猫、苏宁、国美 等电商平台数据采集... 一键邀请 一键打包 账号登录获取Cookie 任务多线程 下载内容管理 实时日志 dll 热更新 无边框窗体 Web App, CefSharp, WebDriver
Stars: ✭ 158 (+618.18%)
Mutual labels:  downloader, download-manager
beveldm
Cross-platform download manager
Stars: ✭ 21 (-4.55%)
Mutual labels:  downloader, download-manager
Motrix
A full-featured download manager.
Stars: ✭ 29,357 (+133340.91%)
Mutual labels:  mac, download-manager
Udemy Downloader Gui
A desktop application for downloading Udemy Courses
Stars: ✭ 5,504 (+24918.18%)
Mutual labels:  mac, downloader
Macos Downloader
Command line tool for downloading macOS installers and beta updates
Stars: ✭ 162 (+636.36%)
Mutual labels:  mac, downloader
Downthemall
The DownThemAll! WebExtension
Stars: ✭ 512 (+2227.27%)
Mutual labels:  downloader, download-manager
Prdownloader
PRDownloader - A file downloader library for Android with pause and resume support
Stars: ✭ 2,947 (+13295.45%)
Mutual labels:  downloader, download-manager
Docker Jdownloader
JDownloader 2 Docker Image (Multiarch) - Passed 40M Downloads
Stars: ✭ 85 (+286.36%)
Mutual labels:  downloader, download-manager
su-downloader3
nodejs HTTP downloader with pause/resume support and segmented downloading
Stars: ✭ 14 (-36.36%)
Mutual labels:  downloader, download-manager
Massivedl
Download a large list of files concurrently
Stars: ✭ 141 (+540.91%)
Mutual labels:  downloader, download-manager
dl
Command-line file downloader tool
Stars: ✭ 39 (+77.27%)
Mutual labels:  downloader, download-manager
super-anime-downloader
A program which takes an Anime name or URL and downloads the specified range of episodes.
Stars: ✭ 26 (+18.18%)
Mutual labels:  downloader, download-manager
ngDownloader
📹 🎥 Now Download videos from any website including YouTube, Facebook, Udemy etc without ads.
Stars: ✭ 47 (+113.64%)
Mutual labels:  downloader, downloads

CocoaDownloader

English | 中文

An powerful download library for iOS, macOS. Report an issue, Android use AndroidDownloader.

iOS Demo

See iOSDemo for details.

macOS Demo

See macOSDemo for details.

Getting Started

1.Import header file

#import <CocoaDownloader/CocoaDownloader.h>

2.Create a DownloadManager instance

self.downloadManager=[DownloadManager sharedInstance];

Or detailed configuration.

//Custom config
DownloadConfig *config=[[DownloadConfig alloc] init];

//Download task number
config.downloadTaskNumber=2;

self.downloadManager=[DownloadManager sharedInstance:config];

3.Download a file

//save path
NSString *documentPath=[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
NSString *path=[documentPath stringByAppendingPathComponent:@"IxueaCocoaDownloader/a.apk"];

NSLog(@"ixuea download save path:%@",path);

//Create download info.
self.downloadInfo=[[DownloadInfo alloc] init];

//Set download save path.
[self.downloadInfo setPath:path];

//Set download url.
[self.downloadInfo setUri:DEFAULT_URL];

//Set download info id.
[self.downloadInfo setId:DEFAULT_ID];

NSDate *date = [NSDate dateWithTimeIntervalSinceNow:0];

NSTimeInterval currentTimeMillis=[date timeIntervalSince1970];

//Set download create time.
[self.downloadInfo setCreatedAt:currentTimeMillis];

//Set download callcabk.
[self.downloadInfo setDownloadBlock:^(DownloadInfo * _Nonnull downloadInfo) {
    //TODO Progress, status changes are callbacks.
}];

//Start download.
[self.downloadManager download:self.downloadInfo];

See SampleController for details.

More

See the example code, iOS and macOS platform downloaders use the same API.

Author

Smile - @ixueadev on GitHub, Email is [email protected], See more ixuea(http://www.ixuea.com)

iOS & macOS QQ development group: 965841894.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].