Update README.md

This commit is contained in:
Leo Lin 2016-01-08 01:47:18 +08:00
parent e1e4d2305f
commit 0ecb73653d
1 changed files with 6 additions and 3 deletions

View File

@ -91,14 +91,17 @@ USAGE
<br/>3. Add the codes below:
int badgeCount = 1;
ShortcutBadger.applyCount(context, badgeCount);
ShortcutBadger.applyCount(context, badgeCount); //for 1.1.4
ShortcutBadger.with(getApplicationContext()).count(badgeCount); //for 1.1.3
<br/>4. If you want to remove the badge
ShortcutBadger.removeCount(context);
ShortcutBadger.removeCount(context); //for 1.1.4
ShortcutBadger.with(getApplicationContext()).remove(); //for 1.1.3
or
ShortcutBadger.applyCount(context, 0);
ShortcutBadger.applyCount(context, 0); //for 1.1.4
ShortcutBadger.with(getApplicationContext()).count(0); //for 1.1.3
<br/>
<br/>
<br/>