create View Holder
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
.
Return
Returns MessageViewHolder that matches MessageType. since 3.3.0
Parameters
inflater
Inflater that creates a view
parent
The parent view to which the view holder is attached
view Type
The type of message you want to create
message List UIParams
The MessageListUIParams that contains drawing parameters
open fun createViewHolder(@NonNull inflater: LayoutInflater, @NonNull parent: ViewGroup, @NonNull viewType: MessageType, useMessageGroupUI: Boolean): MessageViewHolder
Deprecated
Create a view holder that matches MessageType for GroupChannel
.
Return
Returns MessageViewHolder that matches MessageType.
Deprecated
3.3.0
Parameters
inflater
Inflater that creates a view
parent
The parent view to which the view holder is attached
view Type
The type of message you want to create
use Message Group UI
Whether to show the view holder as a grouped message UI