mui.cordovaAvailable()

This method indicates if Cordova/Phonegap is avaliable.

Useful to determinate if it's an installed App or a WebApp running in a browser, in a way to determinate if a native function can be used or not.

Returns true/false.

Quick example

if (mui.cordovaAvailable()) {
... can be used features like accelerometer , compass, etc.
} else {
... mui.alert('This function is unvaliable form the browser', 'Attention');
}