.showquota - macmcmeans/localDataStorage GitHub Wiki

localDataStorage.showquota()

Taking no arguments, this method returns the amount of data storage available. The result is assigned to the quota property, which is the preferred way to check the quota of data storage.

EXAMPLE:

● localData.showquota();   -->   5 MB

This method is invoked when the library is instantiated.

📝 NOTE: This is a very expensive method. It is time intensive, takes a few seconds to complete and should not be executed unless you have reason to believe storage quota has actually changed since the library was instantiated.