Package io.rong.imkit.usermanage.friend.select

## Class FriendSelectViewModel

- All Implemented Interfaces:

      public class FriendSelectViewModel

  好友选择页面ViewModel

  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
    --- | ---
    `FriendSelectViewModel(Bundle arguments)` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `LiveData<List<ContactModel>>` | `getFilteredContactsLiveData()` |
    `LiveData<List<ContactModel>>` | `getSelectedContactsLiveData()` |
    `LiveData<List<ContactModel>>` | `getAllContactsLiveData()` |
    `void` | `updateContact(ContactModel updatedContact)` | 更新联系人状态
    `void` | `queryContacts(String query)` | 查询联系人

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

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

- - ### Constructor Detail

    - #### FriendSelectViewModel

          FriendSelectViewModel(Bundle arguments)

  - ### Method Detail

    - #### getFilteredContactsLiveData

           LiveData<List<ContactModel>> getFilteredContactsLiveData()

    - #### getSelectedContactsLiveData

           LiveData<List<ContactModel>> getSelectedContactsLiveData()

    - #### getAllContactsLiveData

          @Deprecated() LiveData<List<ContactModel>> getAllContactsLiveData()

    - #### updateContact

           void updateContact(ContactModel updatedContact)

      更新联系人状态

      Parameters:
        `updatedContact` - 更新后的联系人

    - #### queryContacts

           void queryContacts(String query)

      查询联系人

      Parameters:
        `query` - 查询关键字