IntractableWidgetTimelineViewModel

This class is responsible for managing intractable widgets in timeline. By default all widgets will be intractable without timer.

Constructors

Link copied to clipboard
constructor(contentSession: LiveLikeContentSession, predicate: (LiveLikeWidget) -> Boolean = { _ -> true })

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 override fun decideWidgetInteraction(liveLikeWidget: LiveLikeWidget, timeLineWidgetApiSource: WidgetApiSource): WidgetStates

Decides widget interaction, if widgets will be intractable or not By default all widgets will be intractable

Link copied to clipboard
fun loadMore()

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

Link copied to clipboard