---
name: "getStorageInfoSync"
mode: "kit"
versionRequirements:
  - { name: "BaseKit", version: "3.30.1" }
platform:
  - "iOS"
  - "Android"
---

## getStorageInfoSync

> [VERSION] BaseKit >= 3.30.1

> [PLATFORM] iOS, Android

### Description

Asynchronously retrieve information about the current storage

### Parameters

None


### Examples

```tsx
// Get current storage info: all keys, used size, limit size (kb)
ty.getStorageInfo({
  success: data => console.log("keys:", data.keys, "Used:", data.currentSize, "Limit:", data.limitSize),
  fail: error => console.error(error),
});
```
