configure

Sets the tab's event listeners on builder and returns it, for the app to call build() on. Call it last, after the app sets its own listeners: each of the tab's listeners records the event and then calls the app's listener with it, and what the app's listener throws reaches WorkManager as before. A work-analytics repository that the app set as its listeners keeps working.

Returns builder as it is when the app's WorkManager is older than 2.12.0, or has listener methods that this version of the tab does not know; the tab then shows the work without events, and says why in the routes' state.