createViewHolder

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

viewType

The type of message you want to create

messageListUIParams

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

viewType

The type of message you want to create

useMessageGroupUI

Whether to show the view holder as a grouped message UI