ChannelListFragment

Fragment displaying the list of channels.

Types

Link copied to clipboard
open class Builder

Functions

Link copied to clipboard
protected open fun getActionContextMenuTitle(@NonNull channel: GroupChannel): String
Returns the title of the context menu.
Link copied to clipboard
protected open fun leaveChannel(@NonNull channel: GroupChannel)
Leaves this channel.
Link copied to clipboard
protected open fun makeChannelContextMenu(@NonNull channel: GroupChannel): List<DialogListItem>
Makes the context menu for the 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 onChannelContextMenuItemClicked(@NonNull channel: GroupChannel, @NonNull view: View, position: Int, @NonNull item: DialogListItem): Boolean
It will be called when the message context menu was clicked.
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
Called to do initial creation of a module.
Link copied to clipboard
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)