Skip to content

gumify/icecream

Repository files navigation

Icecream API for Android

Release Build Status License GitHub repo size GitHub open issues

Getting Started

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

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

Add the dependency

implementation "com.github.gumify.icecream:$icecream_version"

Create an icecream instance

val icecream = icecream.getInstance()

Using icecream to get wallpapers

Get all trending wallpapers

icecream.trendingWallpapers(page = 1) { wallpapers, error ->
    // Get HD image URL
    wallpapers[0].directUrl { url, e ->
        debug(url)
    }
}

Search wallpapers

icecream.searchWallpapers(query = "iron man", page = 1) { wallpapers, error ->
    debug(wallpapers)
}

Using icecream to get ringtones

Get all trending ringtones

icecream.trendingRingtones(page = 1) { ringtones, error ->
    debug(ringtones)
}

Search ringtones

icecream.searchRingtones(query = "iron man", page = 1) { ringtones, error ->
    debug(ringtones)
}