analyticsRecommended

open suspend fun analyticsRecommended(bypassModel: BypassModel, events: List<Analytics.Event>): Flow<List<DirectoryModel>>?

This function is called only if HeadConfig.analyticsSettings is declared, it's used to load a list of recommendations based on the user behaviour and the module configuration.

The main app needs to register at least 3 events to start recommending.

Return

A flow containing a list of DirectoryModel with the recommendations.

Parameters

bypassModel

Cloudflare bypass information extracted by the Main app, if your module doesn't require a bypass you can disable it in HeadConfig.bypassBehavior.

events

The list of the top 3-15 events sorted by Analytics.Event.score.