A simple library to get wallpapers free using Wallpaperaccess.com
- Gets photos for free
- Works with android(Java/Kotlin)
allprojects {
repositories {
google()
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.ripanjatt:wallpaperLib:1.0.0'
}
Simply add your search term and wait
Example
val lib = WallpaperLib()
lib.start("hinata")
lib.setListener(object: Listener {
override fun onStartListener() {
println("Started!")
}
override fun onCompleteListener(urlList: ArrayList<String>) {
println("Complete: ${urlList.size}")
println(urlList[0])
}
override fun onErrorListener(error: String) {
println(error)
}
})
Here, urlList is an ArrayList containing urls of all the photos!