Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
leolin310148 committed Jan 7, 2016
1 parent e1e4d23 commit 0ecb736
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/>
Expand Down

0 comments on commit 0ecb736

Please sign in to comment.