renameFriendGroup method

Future<V2TimCallback> renameFriendGroup (
  1. {@required String oldName,
  2. @required String newName}
)

修改好友分组的名称

参数

oldName	旧的分组名称
newName	新的分组名称
callback	回调

Implementation

Future<V2TimCallback> renameFriendGroup({
  @required String oldName,
  @required String newName,
}) async {
  return V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "renameFriendGroup",
        buildParam(
          {
            "oldName": oldName,
            "newName": newName,
          },
        ),
      ),
    ),
  );
}