ChannelSettingsModule

open class ChannelSettingsModule : BaseModule

A module for channel settings. This module is composed of a header, channel information and settings. All composed components are created when the module is created. After than those components can replace.

since 3.0.0

Constructors

Link copied to clipboard
open fun ChannelSettingsModule(@NonNull context: Context)
Constructor
Link copied to clipboard
open fun ChannelSettingsModule(@NonNull context: Context, @NonNull params: ChannelSettingsModule.Params)
Constructor

Types

Link copied to clipboard
open class Params : BaseModule.Params

Functions

Link copied to clipboard
Returns the channel information component.
Link copied to clipboard
Returns the settings menu component.
Link copied to clipboard
open fun onCreateView(    @NonNull context: Context,     @NonNull inflater: LayoutInflater,     @Nullable args: Bundle): View
Called after the module was created to make views to use in the Fragment or Activity.
Link copied to clipboard
open fun <T : ChannelSettingsInfoComponent?> setChannelSettingsInfoComponent(@NonNull component: T)
Sets the channel information component.
Link copied to clipboard
open fun <T : ChannelSettingsMenuComponent?> setChannelSettingsMenuComponent(@NonNull component: T)
Sets the settings menu component.
Link copied to clipboard
open fun <T : ChannelSettingsHeaderComponent?> setHeaderComponent(@NonNull component: T)
Sets a custom header component.
Link copied to clipboard
open fun setOnLoadingDialogHandler(@Nullable loadingDialogHandler: LoadingDialogHandler)
Sets the handler for the loading dialog.
Link copied to clipboard
open fun shouldDismissLoadingDialog()
It will be called when the loading dialog needs dismissing.
Link copied to clipboard
open fun shouldShowLoadingDialog(@NonNull context: Context): Boolean
It will be called when the loading dialog needs displaying.

Properties

Link copied to clipboard
open val headerComponent: ChannelSettingsHeaderComponent
Link copied to clipboard
open val loadingDialogHandler: LoadingDialogHandler
Link copied to clipboard
val params: ChannelSettingsModule.Params