TtTabItem

data class TtTabItem(val text: StringResolver? = null, val icon: ImageSource? = null)

A class that holds the data of a tab.

Note: text and icon can not both be null.

Parameters

text

The text to show within the tab.

icon

The icon to show within the tab.

Constructors

Link copied to clipboard
constructor(text: StringResolver? = null, icon: DrawableResolver? = null)

A convenience constructor to create the class with a StringResolver and a DrawableResolver.

constructor(text: StringResolver? = null, uri: Uri? = null)

A convenience constructor to create the class with a StringResolver and a Uri.

constructor(text: StringResolver? = null, icon: ImageSource? = null)

Properties

Link copied to clipboard
val icon: ImageSource? = null
Link copied to clipboard
val text: StringResolver? = null