MessageViewHolderFactory

A Factory manages a type of messages.

Functions

Link copied to clipboard
open fun createOpenChannelViewHolder(@NonNull inflater: LayoutInflater, @NonNull parent: ViewGroup, @NonNull viewType: MessageType, useMessageGroupUI: Boolean): MessageViewHolder
Create a view holder that matches MessageType for OpenChannel.
Link copied to clipboard
open fun createViewHolder(@NonNull inflater: LayoutInflater, @NonNull parent: ViewGroup, @NonNull viewType: MessageType, useMessageGroupUI: Boolean): MessageViewHolder
open fun createViewHolder(@NonNull inflater: LayoutInflater, @NonNull parent: ViewGroup, @NonNull viewType: MessageType, @NonNull messageListUIParams: MessageListUIParams): MessageViewHolder
Create a view holder that matches MessageType for GroupChannel.
Link copied to clipboard
open fun getMessageType(@NonNull message: BaseMessage): MessageType
Return the type of message as MessageType.
Link copied to clipboard
open fun getViewType(@NonNull message: BaseMessage): Int
Return the type of message as an integer.