KeyValueStorageInterface

@ObjCName(swiftName = "KeyValueStorageInterface")
interface KeyValueStorageInterface

Interface defining the contract for a key-value storage system.

This interface provides methods for securely storing, retrieving, updating, and deleting data in a key-value format. The implementation details are platform-specific and adhere to secure data storage practices.

Inheritors

Functions

Link copied to clipboard

Deletes the value associated with the provided key from the secure local storage.

Deletes the data associated with the specified key from the secure local storage.

Link copied to clipboard

Deletes all key-value pairs stored in the secure local storage.

Link copied to clipboard
abstract fun exist(key: KeyValueStorageKeys): Boolean

Checks if the specified key exists in the secure key-value storage.

Link copied to clipboard

Retrieves the value associated with the specified key from the secure local storage.

abstract fun get(key: String): SecureLocalStorageResult

Retrieves the value associated with the given key from the key-value storage.

Link copied to clipboard
abstract fun getAll(): List<Pair<String, Any>>

Retrieves all key-value pairs stored in the key-value storage.

Link copied to clipboard

Stores a byte array value in the secure key-value storage associated with the given key.

Stores a Double value associated with the specified KeyValueStorageKeys.

abstract fun set(key: String, value: ByteArray): SecureLocalStorageResult

Stores a key-value pair in the secure local storage.

Stores an integer value associated with a specified key in secure local storage.

abstract fun set(key: String, value: String): SecureLocalStorageResult

Stores the given key-value pair in the secure storage.