NumberPredictionWidgetModel

Properties

Link copied to clipboard

widget data holder

Functions

Link copied to clipboard
abstract fun finish()

call this to cleanup the viewModel and its association

Link copied to clipboard

Call this to load the latest user interaction for this widget

Link copied to clipboard

Call this to load the user's interaction history for this Widget

Link copied to clipboard
abstract fun lockInVote(options: List<NumberPredictionVotes>, liveLikeCallback: LiveLikeCallback<VoteResponse>? = null)

Locks the user's vote

Link copied to clipboard
abstract fun markAsInteractive()

This will capture the analytics event Widget Became Interactive It should be called when the widget is opened first time for user interaction

Link copied to clipboard
abstract fun registerImpression(url: String, liveLikeCallback: LiveLikeCallback<WidgetImpressions>)

call this to register widget Impressions