HeadConfig

abstract class HeadConfig

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
...
}
}

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Enable the recommended system, you can choose between collecting the whole information page or only the Tags.

Link copied to clipboard

Change the behavior and look of the Cloudflare bypass system, default is BypassBehavior.Default.

Link copied to clipboard

Declare custom video decoders, the Main app already supports:

Link copied to clipboard

Specify if the directory style needs to be VERTICAL for portraits, or HORIZONTAL for videos.

Link copied to clipboard

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.

Link copied to clipboard

Enable cast feature if your module uses direct video links.

Link copied to clipboard

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.

Link copied to clipboard

Enable recents notifications feature, if enabled the main app will call HeadRepository.lastRecents periodically in order to get the latest recents.

Link copied to clipboard

Enable the recents feature, this will call HeadRepository.recentsPager in order to get the latest recents.

Link copied to clipboard

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.

Link copied to clipboard

Enable custom suggestions for the search feature, this will call HeadRepository.searchSuggestions every time an user writes a new query.

Link copied to clipboard

Hide the history of this module

Link copied to clipboard

Enable the review feature in the information page, you can decide to request a star based review, a written review, or both.

Link copied to clipboard

Set a custom message for the search bar, by default the Module name is used.

Link copied to clipboard

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.