setShowBadge

fun setShowBadge(showBadge: Boolean)

Sets the visibility of the badge. The badge is a small circle that can be shown on the top right corner of the icon of the preference.


fun setShowBadge(showBadge: Boolean, text: CharSequence)

Sets the visibility of the badge and the text to be shown on the badge. The badge is a small circle or chip that can be shown on the top right corner of the icon of the preference.