Get the Database Size
To query the amount of disk space consumed by the database, call the
database size method.
Hybrid Apps
In hybrid apps,
call:
The
success callback supports a single parameter that contains the database size in bytes. For
example:
1navigator.smartstore.getDatabaseSize(successCallback, errorCallback)1function(dbSize) { alert("db file size is:" + dbSize + " bytes"); }Android Native Apps
1public int getDatabaseSize ()iOS Native Apps
Objective-C:
In Swift, use
the Objective-C method.
1- (long)getDatabaseSize