Cordova master READ ONLY 0
  • explorer
  • search
a [App]
a CG.Cordova
a README.md
a app.ts
a [Test]
a test
  • README.md

Cordova

This library wrap cordova plugins api for accessing native API when running in native app.

Requirement

This library only works when running as a native App(android, ios or windows). You can export a native app from a built production of your projects.

Remember to check the corresponding plugin that your app needs when exporting native apps. Ex. Check to import "Camera" plugin if your app needs to access device camera.

Getting Started

Check if the build is running as a Cordova App before accessing any functions.

if(CG.Base.system.isCordovaApp()) {
    CG.Cordova.camera.getPicture(imgData => {
        // do something with the image data.
    }, error => {
        // handle error
    });
}
READ ONLY
  • problem
  • console
No problems have been detected so far.
Ln 1, Col 1, Sel 0
Markdown