Skip to main content

bn.getStorageInfo

getStorageInfo(): Promise<StorageInfo>

description Gets information about the current storage asynchronously.

example

bn.getStorageInfo({
success (res) {
console.log(res.keys)
console.log(res.currentSize)
console.log(res.limitSize)
}
})

Returns

Promise<StorageInfo>

StorageInfo


Interface: StorageInfo

NameTypeDescription
keysstring[]All keys in the current storage
currentSizenumberCurrent space occupied (in KB)
limitSizenumberSpace size limit (in KB)