wx.getStorageInfo(Object object)
Asynchronously gets the information related to the current storage.
Parameters
Object object
Attribute | Type | Default | Required | Description |
success | function | | No | The callback function for a successful API call |
fail | function | | No | Callback function for failed API call |
complete | function | | No | Callback function used when API call completed (always executed whether call succeeds or fails) |
object.success callback function
Parameters
Object object
Property | Type | Description |
keys | Array.<string> | All keys in the current storage |
currentSize | number | Current space occupied (in KB) |
limitSize | number | Space size limit (in KB) |
Sample Code