WidgetInterceptor

WidgetInterceptor

abstract class WidgetInterceptor

Integrator will pass implementation of this proxy to intercept widgets, SDK will call widgetWantsToShow() and in same sequence/order sdk will listen on events stream for the decision on that widget.

Constructors

Name Description
constructor()

Integrator will pass implementation of this proxy to intercept widgets, SDK will call widgetWantsToShow() and in same sequence/order sdk will listen on events stream for the decision on that widget.

Methods

widgetWantsToShow

abstract fun widgetWantsToShow(widgetData: LiveLikeWidgetEntity)

Called when a widget is received from the CMS

Parameters

Name Description
widgetData: LiveLikeWidgetEntity

ReturnValue

Name Description
Unit

showWidget

fun showWidget()

Unlock the widget and show it on screen

ReturnValue

Name Description
Unit

dismissWidget

fun dismissWidget()

Dismiss the widget and won't show it on screen

ReturnValue

Name Description
Unit