Head Config
Module configuration, enable and modify the behaviour of some features.
To use this class you need to create a new class and extend HeadConfig or use a kotlin object, then modify the required variables in init.
Sample usage
object: HeadConfig() {
init {
isRecentsAvailable = true
isSearchAvailable = true
...
}
}
Properties
Enable the recommended system, you can choose between collecting the whole information page or only the Tags.
Change the behavior and look of the Cloudflare bypass system, default is BypassBehavior.Default.
Declare custom video decoders, the Main app already supports:
Specify if the directory style needs to be VERTICAL for portraits, or HORIZONTAL for videos.
Enable the calendar feature, this will call HeadRepository.calendarList when the main app loads the "Today" section in Home, this also will be called when the user enters the Calendar Activity.
Enable cast feature if your module uses direct video links.
Enable the directory section, this will call HeadRepository.directoryPager when the user enters the directory section, this also could be called multiple times if HeadRepository.directoryFilters is used.
Enable recents notifications feature, if enabled the main app will call HeadRepository.lastRecents periodically in order to get the latest recents.
Enable the recents feature, this will call HeadRepository.recentsPager in order to get the latest recents.
Enable the search feature, this will call HeadRepository.searchPager every time a user uses the search feature, this can also include custom filters using HeadRepository.searchFilters.
Enable custom suggestions for the search feature, this will call HeadRepository.searchSuggestions every time an user writes a new query.
Hide the history of this module
Enable the review feature in the information page, you can decide to request a star based review, a written review, or both.
Set a custom message for the search bar, by default the Module name is used.
Specify a list of custom settings, an icon will be visible for the user to enter this settings, this settings will persist in the Main app even if the Module is uninstalled.