CheerMeterWidgetmodel

Properties

Link copied to clipboard

live stream for vote results

Link copied to clipboard
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

it returns the latest user interaction for the widget

Link copied to clipboard

returns widget interactions from remote source

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

Link copied to clipboard
abstract fun submitVote(optionID: String)

record the cheer vote