savepopulation / quick-badger

A library to show notification badges on app launchers which targets lower Android Sdks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

quick-badger

A library to show notification badges on app launchers which targets lower Android Sdks

How to?

To show a badge on launcher first add device badger classes that you want to support:

QuickBadger.withBadgers(SamsungBadger::class)
                .provideBadger(this)?.showBadge(5)

To dismiss badge

QuickBadger.provideBadger(this)?.dismissBadge()

To use your custom Badger implementations

QuickBadger.withBadgers(MyCustomBadger::class)
           .provideBadger(this)?
	   .showBadge(5)

Dependency

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

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

Step 2: Add the dependency.

	dependencies {
	       	implementation 'com.github.savepopulation:quick-badger:1.0.4'
	}

About

A library to show notification badges on app launchers which targets lower Android Sdks

License:Apache License 2.0


Languages

Language:Kotlin 94.5%Language:Java 5.5%