OpenChannelListComponent

This class creates and performs a view corresponding the open channel list area in Sendbird UIKit. since 3.2.0

Constructors

Link copied to clipboard

Types

Link copied to clipboard
open class Params
A collection of parameters, which can be applied to a default View.

Functions

Link copied to clipboard
Returns the view created by onCreateView.
Link copied to clipboard
open fun notifyDataSetChanged(@NonNull channelList: List<OpenChannel>)
Called when the channel list is changed.
Link copied to clipboard
For stopping the refreshing progressbar, this has to be called when the refresh is finished.
Link copied to clipboard
open fun onCreateView(@NonNull context: Context, @NonNull inflater: LayoutInflater, @NonNull parent: ViewGroup, @Nullable args: Bundle): View
Called after the component was created to make views.
Link copied to clipboard
protected open fun onItemClicked(@NonNull view: View, position: Int, @NonNull channel: OpenChannel)
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: OpenChannel)
Called when the item of the channel list is long-clicked.
Link copied to clipboard
protected open fun onRefresh()
Called when the channel list is pulled to refresh.
Link copied to clipboard
open fun <T : OpenChannelListAdapter?> setAdapter(@NonNull adapter: T)
Sets the open channel list adapter to provide child views on demand.
Link copied to clipboard
open fun setOnItemClickListener(@Nullable listener: OnItemClickListener<OpenChannel>)
Register a callback to be invoked when the item of the channel is clicked.
Link copied to clipboard
Register a callback to be invoked when the item of the channel is long-clicked.
Link copied to clipboard
Register a callback to be invoked when a refresh is triggered via the swipe gesture.
Link copied to clipboard
open fun setPagedDataLoader(@NonNull pagedDataLoader: OnPagedDataLoader<List<OpenChannel>>)
Sets the paged data loader for open channel list.

Properties

Link copied to clipboard
Link copied to clipboard