# Background safe storage

Canonical page: https://docs.ovok.com/flutter-sdk/reference/ovok_flutter/background-safe-storage

{/* Generated by scripts/generate_reference.dart; do not edit. */}

## BackgroundSafeClientStorage [#backgroundsafeclientstorage]

```dart
class BackgroundSafeClientStorage implements OvokSecureStore
```

Secure storage adapter that can clear values after a background relaunch.

### Constructors [#constructors]

#### BackgroundSafeClientStorage.new [#backgroundsafeclientstoragenew]

```dart
BackgroundSafeClientStorage({required OvokSecureStore secureStore, String keyListKey = _defaultKeyListKey})
```

Creates an adapter over the app's secure store.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `secureStore` | `OvokSecureStore` | required named |  |
| `keyListKey` | `String` | named | `_defaultKeyListKey` |

### Properties [#properties]

#### BackgroundSafeClientStorage.keyListKey [#backgroundsafeclientstoragekeylistkey]

```dart
final String keyListKey
```

Secure-store key used for the adapter's value index.

### Methods [#methods]

#### BackgroundSafeClientStorage.reload [#backgroundsafeclientstoragereload]

```dart
Future<void> reload()
```

Re-reads the index after the operating system makes secure storage available.

Returns `Future<void>`.

#### BackgroundSafeClientStorage.clear [#backgroundsafeclientstorageclear]

```dart
Future<void> clear()
```

Removes every value written through this adapter.

Returns `Future<void>`.
