Preparation of fluorinated covalent organic polymers at room temperature for removal and detection of perfluorinated compounds.