removeUserFromRoom method

Future<bool> removeUserFromRoom(
  1. List<String> userIDs
)

remove user from room, kick out

Implementation

Future<bool> removeUserFromRoom(List<String> userIDs) async {
  final resultErrorCode =
      await ZegoUIKitCore.shared.removeUserFromRoom(userIDs);

  if (ZegoUIKitErrorCode.success != resultErrorCode) {
    ZegoUIKitCore.shared.error.errorStreamCtrl?.add(
      ZegoUIKitError(
        code: ZegoUIKitErrorCode.customCommandSendError,
        message:
            'remove user($userIDs) from room error:$resultErrorCode, ${ZegoUIKitErrorCode.expressErrorCodeDocumentTips}',
        method: 'removeUserFromRoom',
      ),
    );
  }

  return ZegoErrorCode.CommonSuccess == resultErrorCode;
}