Skip to main content

(Optional) Infinite Widgets On Page

Support Infinite Widgets On The Same Page

Background

Some publishers want to integrate an infinite number of Bridge widgets on their RecycleView feed. Each widget contains a single recommendation. Those publishers had a problem initially because according to our guidelines we ask the developer to init() all the widgets of the page in the onResume or onCreate methods which can't be done if the number of widgets is dynamic. That's why we (Outbrain) created this solution for them.

How to integrate

In order to work with SFWebViewWidget in this "infinite instances mode" - the developer should configure this param before initilizing the widgets:

SFWebViewWidget.infiniteWidgetsOnTheSamePage = true;