kickGroupMember method

  1. @override
Future<V2TimCallback> kickGroupMember({
  1. required String groupID,
  2. required List<String> memberList,
  3. String? reason,
})
override

Implementation

@override
Future<V2TimCallback> kickGroupMember({
  required String groupID,
  required List<String> memberList,
  String? reason,
}) async {
  final result = await TencentImSDKPlugin.v2TIMManager
      .getGroupManager()
      .kickGroupMember(
          groupID: groupID, memberList: memberList, reason: reason);
  if (result.code != 0) {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: result.desc,
        errorCode: result.code));
  }
  return result;
}