| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COUNT |
static java.lang.String |
EXTRA_COMPONENT |
static java.lang.String |
EXTRA_COUNT |
static java.lang.String |
INTENT_SET_NOTIFICATION |
static java.lang.String |
INTENT_UPDATE_SHORTCUT |
static java.lang.String |
PACKAGENAME |
| Constructor and Description |
|---|
NewHtcHomeBadger() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeBadge(android.content.Context context,
android.content.ComponentName componentName,
int badgeCount)
Called when user attempts to update notification count
|
java.util.List<java.lang.String> |
getSupportLaunchers()
Called to let
ShortcutBadger knows which launchers are supported by this badger. |
public static final java.lang.String INTENT_UPDATE_SHORTCUT
public static final java.lang.String INTENT_SET_NOTIFICATION
public static final java.lang.String PACKAGENAME
public static final java.lang.String COUNT
public static final java.lang.String EXTRA_COMPONENT
public static final java.lang.String EXTRA_COUNT
public void executeBadge(android.content.Context context,
android.content.ComponentName componentName,
int badgeCount)
throws ShortcutBadgeException
BadgerexecuteBadge in interface Badgercontext - Caller contextcomponentName - Component containing package and class name of calling application's
launcher activitybadgeCount - Desired notification countShortcutBadgeExceptionpublic java.util.List<java.lang.String> getSupportLaunchers()
BadgerShortcutBadger knows which launchers are supported by this badger. It should return a
List containing supported launchers package namesgetSupportLaunchers in interface Badger