android-components / mozilla.components.ui.tabcounter / TabCounter


open class TabCounter (source)


Name Summary
<init> TabCounter(context: <ERROR CLASS>, attrs: <ERROR CLASS>? = null, defStyle: Int = 0)


Name Summary
getText fun getText(): CharSequence
Returns current tab count from tab counter view.
setCount fun setCount(count: Int): Unit
setCountWithAnimation fun setCountWithAnimation(count: Int): Unit

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.