setBadgeText

abstract fun setBadgeText(@Nullable badgeText: String)(source)

Sets a badge to this menu item.

Parameters

badgeText

Set a numeric string to show a numeric badge. Set an empty string to show a dot badge. Set null to remove the badge.

See also