I am going to add some plugins to my cordova project. But the cordova project is being created by Sencha Touch 2.
So, if I add a plugin for the cord,
How to get a link to cordova plugins in Sencha Touch code? (Since Sencha-Touch code is ONE level above the cordova plugin)
And I should not touch the generated Cordova code, because it will be replaced every time I create the cordova project again using Sencha Touch CMD commands.
Update
I would like to clarify my question by specifying a scenario:
For example, I would like to use the camera in Sencha Touch code, but I can access my own resources on my mobile phone using Cordova plugins. And when you run the Sencha Touch command to create a Cordova project, all the code under the cord folder will be overwritten, therefore it cannot perform encoding in the cordova folder, therefore all encoding must be done at the Sencha Touch level.
Thus, the problem becomes-> how can I access the camera in sencha touch code if the plugin is controlled by cordova, which means that access to cordova plugins is beyond Sencha Touch.
To make this clearer, here is the structure of the Sencha Touch project, which contains the Cordova project:
Root folder for Sencha Touch Project
-app
-cordova
-plugins
-...
as you can see, the plugins are in the cordova folder, so I donβt know how to get the link to the camera plugin, for example:
Ext.navigator.camera.function() (like this?)
Sencha Touch.
, .
.