Package io.rong.imkit.usermanage.friend.search

## Class FriendSearchViewModel

- All Implemented Interfaces:

      public class FriendSearchViewModel

  搜索好友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
    --- | --- | ---
    `public final MutableLiveData<List<FriendInfo>>` | `friendInfoLiveData` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `FriendSearchViewModel(Bundle arguments)` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `MutableLiveData<List<FriendInfo>>` | `getFriendInfoLiveData()` |
    `void` | `queryContacts(String query)` | 查询联系人

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

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

- - ### Constructor Detail

    - #### FriendSearchViewModel

          FriendSearchViewModel(Bundle arguments)

  - ### Method Detail

    - #### getFriendInfoLiveData

           MutableLiveData<List<FriendInfo>> getFriendInfoLiveData()

    - #### queryContacts

           void queryContacts(String query)

      查询联系人

      Parameters:
        `query` - 查询关键字