Can't get cordova-plugin-recentscontrol to work


So far, I added the plugin to my project. Tried to add these two lines into config.xml

<preference name="RecentsBackgroundColor" value="#000000" />
<preference name="RecentsDescription" value="MyApp" />

It didn’t work.

Now I am trying to use RecentsControl object, which according to documentation has several methods, including RecentsControl.setColor(colorStr) , but I do not understand where from to import that object.
The link to documentation:

Thanks in advance