JavaScript
{dialog.object}phoneGapFilesAvailable Method
Syntax
{dialog.object}.phoneGapFilesAvailable();
Description
Checks whether or not the local file system is available in a Cordova application.
Discussion
Returns true if there is a local file system and Cordova is running. You can call this function before attempting to use any Cordova file system functions.
Example
var available = {dialog.object}.phoneGapFilesAvailable(); if (available == true) { alert("File system is available."); } else { alert("File system is not available."); }