Package io.rong.imkit.usermanage.group.nickname

## Class GroupNicknameViewModel

- All Implemented Interfaces:

      public class GroupNicknameViewModel

  修改群昵称页面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<GroupMemberInfo>` | `myMemberInfoLiveData` |

  - ### Constructor Summary

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

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `MutableLiveData<GroupMemberInfo>` | `getMyMemberInfoLiveData()` |
    `void` | `)>updateGroupNickName(String newNickName, OnDataChangeListener<Boolean> onDataChangeListener)` | 更新群昵称
    `void` | `)>updateGroupNickName(String newNickName, OnDataChangeEnhancedListener<Boolean> onDataChangeListener)` | 更新群成员昵称

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

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

- - ### Constructor Detail

    - #### GroupNicknameViewModel

          GroupNicknameViewModel(Bundle arguments)

  - ### Method Detail

    - #### getMyMemberInfoLiveData

           MutableLiveData<GroupMemberInfo> getMyMemberInfoLiveData()

    - #### updateGroupNickName

          @Deprecated() void )>updateGroupNickName(String newNickName, OnDataChangeListener<Boolean> onDataChangeListener)

      更新群昵称

      Parameters:
        `newNickName` - 新的群昵称
        `onDataChangeListener` - 数据变化监听

    - #### updateGroupNickName

           void )>updateGroupNickName(String newNickName, OnDataChangeEnhancedListener<Boolean> onDataChangeListener)

      更新群成员昵称

      Parameters:
        `newNickName` - 新的群昵称
        `onDataChangeListener` - 数据变化监听