Package io.rong.imkit.base.adapter

## Class MultiItemTypeAdapter

- All Implemented Interfaces:

      public class MultiItemTypeAdapter<T>

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public interface` | `MultiItemTypeAdapter.OnItemClickListener` |

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `MultiItemTypeAdapter()` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `int` | `getItemViewType(int position)` |
    `ViewHolder` | `onCreateViewHolder(ViewGroup parent, int viewType)` |
    `void` | `onViewHolderCreated(ViewHolder holder, View itemView)` |
    `void` | `convert(ViewHolder holder, T t, int position)` |
    `void` | `onBindViewHolder(ViewHolder holder, int position)` |
    `int` | `getItemCount()` |
    `void` | `setData(List<T> data)` |
    `void` | `addData(List<T> data)` |
    `List<T>` | `getData()` |
    `void` | `setData(int position, T data)` |
    `MultiItemTypeAdapter` | `)>addItemViewDelegate(ItemViewDelegate<T> itemViewDelegate)` |
    `MultiItemTypeAdapter` | `)>addItemViewDelegate(int viewType, ItemViewDelegate<T> itemViewDelegate)` |
    `void` | `setOnItemClickListener(MultiItemTypeAdapter.OnItemClickListener<T> onItemClickListener)` |
    `T` | `getItem(int position)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MultiItemTypeAdapter

          MultiItemTypeAdapter()

  - ### Method Detail

    - #### getItemViewType

           int getItemViewType(int position)

    - #### onCreateViewHolder

           ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)

    - #### onViewHolderCreated

           void onViewHolderCreated(ViewHolder holder, View itemView)

    - #### convert

           void convert(ViewHolder holder, T t, int position)

    - #### onBindViewHolder

           void onBindViewHolder(ViewHolder holder, int position)

    - #### getItemCount

           int getItemCount()

    - #### setData

           void setData(List<T> data)

    - #### addData

           void addData(List<T> data)

    - #### getData

           List<T> getData()

    - #### setData

           void setData(int position, T data)

    - #### addItemViewDelegate

           MultiItemTypeAdapter )>addItemViewDelegate(ItemViewDelegate<T> itemViewDelegate)

    - #### addItemViewDelegate

           MultiItemTypeAdapter )>addItemViewDelegate(int viewType, ItemViewDelegate<T> itemViewDelegate)

    - #### setOnItemClickListener

           void setOnItemClickListener(MultiItemTypeAdapter.OnItemClickListener<T> onItemClickListener)

    - #### getItem

           T getItem(int position)