Skip to content

ripanjatt/wallpaperLib

Repository files navigation

Wallpaper library

A simple library to get wallpapers free using Wallpaperaccess.com

Features

  • Gets photos for free
  • Works with android(Java/Kotlin)

Gradle implementation(in app level build.gradle)

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

dependencies {
 implementation 'com.github.ripanjatt:wallpaperLib:1.0.0'
}

Working

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!

About

A simple library to download wallpapers!

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages