Shortcut Badge¶
Non-Visible componentCategory | Requires | Version |
---|---|---|
Experimental | API 21, Android 5.0 Lollipop | 1 |
Overview¶
A non-visible component that adds a dot/badge to the app''s launcher icon when a there are unread notifications in the app.
Permissions
- com.android.launcher.permission.READ_SETTINGS
- com.sonyericsson.home.permission.BROADCAST_BADGE
- android.permission.READ_APP_BADGE
- com.htc.launcher.permission.READ_SETTINGS
- com.huawei.android.launcher.permission.CHANGE_BADGE
- com.huawei.android.launcher.permission.WRITE_SETTINGS
- com.majeur.launcher.permission.UPDATE_BADGE
- com.android.launcher.permission.UNINSTALL_SHORTCUT
- com.sonymobile.home.permission.PROVIDER_INSERT_BADGE
- com.htc.launcher.permission.UPDATE_SHORTCUT
- me.everything.badger.permission.BADGE_COUNT_READ
- com.sec.android.provider.badge.permission.WRITE
- com.sec.android.provider.badge.permission.READ
- com.anddoes.launcher.permission.UPDATE_COUNT
- com.huawei.android.launcher.permission.READ_SETTINGS
- com.oppo.launcher.permission.WRITE_SETTINGS
- me.everything.badger.permission.BADGE_COUNT_WRITE
- com.android.launcher.permission.INSTALL_SHORTCUT
- com.oppo.launcher.permission.READ_SETTINGS
- com.android.launcher.permission.WRITE_SETTINGS
Methods¶
Apply Count¶
Use this block to apply a notification badge count.
Params | |
---|---|
count | Number |
Count¶
Returns: Number
Use this block to return the notification count.
Remove Count¶
Use this block to remove the notification badge count.
Last update: November 9, 2022