WidgetTimeLineViewModel

open class WidgetTimeLineViewModel(contentSession: LiveLikeContentSession, viewModelDispatcher: CoroutineDispatcher = Dispatchers.Default, uiDispatcher: CoroutineDispatcher = Dispatchers.Main, predicate: (LiveLikeWidget) -> Boolean = { _ -> true }) : ViewModel

Inheritors

Constructors

Link copied to clipboard
constructor(contentSession: LiveLikeContentSession, viewModelDispatcher: CoroutineDispatcher = Dispatchers.Default, uiDispatcher: CoroutineDispatcher = Dispatchers.Main, predicate: (LiveLikeWidget) -> Boolean = { _ -> true })

Types

Link copied to clipboard
object Companion

used for timeline widget loading starting / completed

Properties

Link copied to clipboard

it contains all the widgets that has been loaded onto this timeline

Link copied to clipboard
Link copied to clipboard
val uiScope: CoroutineScope
Link copied to clipboard
val viewModelScope: CoroutineScope

Functions

Link copied to clipboard
Link copied to clipboard
fun clear()

Call this method to close down all connections and scopes, it should be called from onClear() method of android viewmodel. In case landscape not supported then onDestroy.

Link copied to clipboard
open fun decideWidgetInteraction(liveLikeWidget: LiveLikeWidget, timeLineWidgetApiSource: WidgetApiSource): WidgetStates
Link copied to clipboard
fun loadMore()

this call load the next available page of past published widgets on this program.

Link copied to clipboard