ChannelListFragment

open class ChannelListFragment : BaseModuleFragment<MT, VM>

Fragment displaying the list of channels.

Types

Link copied to clipboard
open class Builder

Functions

Link copied to clipboard
protected open fun leaveChannel(@NonNull channel: GroupChannel)
Leaves this channel.
Link copied to clipboard
protected open fun onBeforeReady(    @NonNull status: ReadyStatus,     @NonNull module: ChannelListModule,     @NonNull viewModel: ChannelListViewModel)
After authenticate ()} is finished, onReady will be called with the result of authentication and all preparations will be ready to use.
Link copied to clipboard
protected open fun onBindChannelListComponent(@NonNull channelListComponent: ChannelListComponent, @NonNull viewModel: ChannelListViewModel)
Called to bind events to the ChannelListComponent.
Link copied to clipboard
protected open fun onBindHeaderComponent(@NonNull headerComponent: HeaderComponent, @NonNull viewModel: ChannelListViewModel)
Called to bind events to the HeaderComponent.
Link copied to clipboard
protected open fun onBindStatusComponent(@NonNull statusComponent: StatusComponent, @NonNull viewModel: ChannelListViewModel)
Called to bind events to the StatusComponent.
Link copied to clipboard
protected open fun onConfigureParams(@NonNull module: ChannelListModule, @NonNull args: Bundle)
Called to initialize the module's params or components' params.
Link copied to clipboard
protected open fun onCreateModule(@NonNull args: Bundle): ChannelListModule
Called to do initial creation of a module.
Link copied to clipboard
protected open fun onCreateViewModel(): ChannelListViewModel
Called to do initial creation of a view model.
Link copied to clipboard
protected open fun onItemClicked(    @NonNull view: View,     position: Int,     @NonNull channel: GroupChannel)
Called when the item of the channel list is clicked.
Link copied to clipboard
protected open fun onItemLongClicked(    @NonNull view: View,     position: Int,     @NonNull channel: GroupChannel)
Called when the item of the channel list is long-clicked.
Link copied to clipboard
protected open fun onReady(    @NonNull status: ReadyStatus,     @NonNull module: ChannelListModule,     @NonNull viewModel: ChannelListViewModel)
Called to start the operation of the fragment after authentication and module setup.
Link copied to clipboard
protected open fun onSelectedChannelType(@NonNull channelType: CreatableChannelType)
A callback that selected channel types.
Link copied to clipboard
open fun onViewCreated(@NonNull view: View, @Nullable savedInstanceState: Bundle)