TtInformationControlViewModel
data class TtInformationControlViewModel(val headImage: ImageDescriptor? = null, val primaryText: StringResolver? = null, val primaryIcon: DrawableResolver? = null, val secondaryText: StringResolver? = null, val secondaryIcon: DrawableResolver? = null, val tertiaryText: StringResolver? = null, val tertiaryIcon: DrawableResolver? = null, val onClick: () -> Unit? = null, val ratingBarValue: Float? = null, val ratingBarMaximumValue: Int = DEFAULT_RATING_BAR_MAXIMUM_VALUE, val ratingBarText: StringResolver? = null, val tailText: StringResolver? = null, val tailIcon: DrawableResolver? = null, val onTailSectionClick: () -> Unit? = null)
The ViewModel used to populate TtInformationControl.
A schematic overview of the information control:
_____________________________________________________________
| ______ | O Primary text | |
| | | | O Secondary text | ____ |
| | | | O Tertiary text | Tail text | | |
| |_____| | ***** Rating bar text | |___| |
|___________|____________________________|___________________|
Head Main Tail
section section section
Content copied to clipboard
Constructors
Link copied to clipboard
fun TtInformationControlViewModel(headImage: ImageDescriptor? = null, primaryText: StringResolver? = null, primaryIcon: DrawableResolver? = null, secondaryText: StringResolver? = null, secondaryIcon: DrawableResolver? = null, tertiaryText: StringResolver? = null, tertiaryIcon: DrawableResolver? = null, onClick: () -> Unit? = null, ratingBarValue: Float? = null, ratingBarMaximumValue: Int = DEFAULT_RATING_BAR_MAXIMUM_VALUE, ratingBarText: StringResolver? = null, tailText: StringResolver? = null, tailIcon: DrawableResolver? = null, onTailSectionClick: () -> Unit? = null)
Properties
Link copied to clipboard
The maximum allowable value of ratingBarValue. The default value is DEFAULT_RATING_BAR_MAXIMUM_VALUE.
Link copied to clipboard
The value represents the current rating. This value should be between 0 and ratingBarMaximumValue. If the value is null
, then the entire rating bar will be hidden.
Link copied to clipboard
Link copied to clipboard