Cordova check free space on device
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cordova.exec( | |
function(freeSpace) { | |
//return freeSpace 'KB' | |
alert('reported free space is ' + freeSpace / 1024 + 'MB'); | |
}, | |
function() { | |
alert('failed'); | |
}, | |
"File", "getFreeDiskSpace", [] | |
); |
댓글 없음:
댓글 쓰기