SpecifiedWidgetView
abstract class SpecifiedWidgetView
Fields
Name | Description |
---|---|
var widgetId: String
|
|
lateinit var widgetInfos: WidgetInfos
|
|
open var widgetViewModel: BaseViewModel?
|
|
open var dismissFunc: (DismissAction)->Unit
|
|
open var widgetViewThemeAttributes: WidgetViewThemeAttributes
|
|
open var widgetsTheme: WidgetsTheme?
|
|
var widgetLifeCycleEventsListener: WidgetLifeCycleEventsListener?
|
|
lateinit var widgetData: LiveLikeWidgetEntity
|
Constructors
<init>
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int)
Parameters
Name | Description |
---|---|
context: Context
|
|
attrs: AttributeSet?
|
|
defStyleAttr: Int
|
Methods
onAttachedToWindow
open fun onAttachedToWindow()
ReturnValue
Name | Description |
---|---|
Unit
|
onDetachedFromWindow
open fun onDetachedFromWindow()
ReturnValue
Name | Description |
---|---|
Unit
|
onWidgetInteractionCompleted
fun onWidgetInteractionCompleted()
ReturnValue
Name | Description |
---|---|
Unit
|
applyThemeOnTitleView
protected fun applyThemeOnTitleView(it: WidgetBaseThemeComponent)
Parameters
Name | Description |
---|---|
it: WidgetBaseThemeComponent
|
ReturnValue
Name | Description |
---|---|
Unit
|
applyTheme
open fun applyTheme(theme: WidgetsTheme)
Parameters
Name | Description |
---|---|
theme: WidgetsTheme
|
ReturnValue
Name | Description |
---|---|
Unit
|
applyTheme
fun applyTheme(theme: LiveLikeEngagementTheme)
Parameters
Name | Description |
---|---|
theme: LiveLikeEngagementTheme
|
ReturnValue
Name | Description |
---|---|
Unit
|
getCurrentState
open fun getCurrentState(): WidgetStates?
ReturnValue
Name | Description |
---|---|
WidgetStates?
|
setState
open fun setState(widgetStates: WidgetStates)
Parameters
Name | Description |
---|---|
widgetStates: WidgetStates
|
ReturnValue
Name | Description |
---|---|
Unit
|
moveToNextState
open fun moveToNextState()
ReturnValue
Name | Description |
---|---|
Unit
|
override this method in respective widgets to respect runtime unified json theme updation