setText

open fun setText(@Nullable text: String)

Sets the badge's text. The specified text will be displayed, unless its length exceeds maxCharacterCount in which case a truncated version will be shown.

See also