Package io.rong.imkit.usermanage.adapter

## Class ContactListAdapter

- All Implemented Interfaces:

      public class ContactListAdapter

  联系人列表适配器

  Since:

    5.12.0

  Author:

    rongcloud

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

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

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ContactListAdapter(boolean showSelectButton, boolean showItemRightArrow, boolean showItemRightText, boolean showItemSelectAutoUpdate, boolean showItemRemoveButton)` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `ViewHolder` | `onCreateViewHolder(ViewGroup parent, int viewType)` |
    `void` | `onBindViewHolder(ViewHolder holder, int position)` |
    `int` | `getItemViewType(int position)` |
    `int` | `getItemCount()` |
    `int` | `getPositionForSection(char section)` |
    `void` | `)>setOnItemClickListener(OnActionClickListener<ContactModel> onItemClickListener)` |
    `void` | `)>setOnItemRemoveClickListener(OnActionClickListener<ContactModel> listener)` |
    `void` | `setData(List<ContactModel> newData)` |
    `void` | `setShowItemRemoveButton(boolean showItemRemoveButton)` |

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

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

- - ### Constructor Detail

    - #### ContactListAdapter

          ContactListAdapter(boolean showSelectButton, boolean showItemRightArrow, boolean showItemRightText, boolean showItemSelectAutoUpdate, boolean showItemRemoveButton)

  - ### Method Detail

    - #### onCreateViewHolder

           ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)

    - #### onBindViewHolder

           void onBindViewHolder(ViewHolder holder, int position)

    - #### getItemViewType

           int getItemViewType(int position)

    - #### getItemCount

           int getItemCount()

    - #### getPositionForSection

           int getPositionForSection(char section)

    - #### setOnItemClickListener

           void )>setOnItemClickListener(OnActionClickListener<ContactModel> onItemClickListener)

    - #### setOnItemRemoveClickListener

           void )>setOnItemRemoveClickListener(OnActionClickListener<ContactModel> listener)

    - #### setData

           void setData(List<ContactModel> newData)

    - #### setShowItemRemoveButton

           void setShowItemRemoveButton(boolean showItemRemoveButton)