Skip to content

This is modular library to download any type of file or image

Notifications You must be signed in to change notification settings

asadd00/XDownloader

Repository files navigation

XDownloader

XDownloader is modular library for android apps to provide ease in downloading files or loading images in ImageView. XDownloader can be customizable with various methods.

Sample Project

This is the Sample Project which is using this library

Getting Started

Installing

Add this project as modular dependency in your android application.

OR

Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Add the dependency

dependencies {
	implementation 'com.github.asadd00:XDownloader:1.0'
}

Usage

Generally this library can be used in these ways

To load image in ImageView

Xdownloader.loadImage(context).load(ImageView, Url)

To download any file

Xdownloader.downloadFile(context).download(url, fileType)

Customization

Xdownloader
	.loadImage(context)
	.placeholder(int)   
	.setCacheEnabled(boolean)
	.setCacheSize(int)
	.load(ImageView, Url)
	
Xdownloader
	.downloadFile(context)
	.setFileName(string)
	.setNotificationEnabled(boolean)
	.setOnDownloadResultListener(OnDownloadResultListener)
	.download(url, fileType)

Built With

  • Kotlin - Android offical language

Authors

  • Muhammad Asadullah - Whole work

About

This is modular library to download any type of file or image

Resources

Stars

Watchers

Forks

Packages

No packages published