get

abstract fun get(key: String): SecureLocalStorageResult

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

If the key exists, a SecureLocalStorageResult.Success instance is returned containing the value. If the key does not exist, or an error occurs during retrieval, a SecureLocalStorageResult.Failure instance is returned with the appropriate error details.

Return

A SecureLocalStorageResult representing the result of the operation. It may contain the value on success or an error on failure.

Parameters

key

The key whose associated value is to be retrieved.


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

The method queries the secure storage for the data corresponding to the given key and returns the result encapsulated within a SecureLocalStorageResult object. If the key does not exist or the operation fails, an appropriate error is returned in the result.

Return

A SecureLocalStorageResult object representing the outcome of the operation, which can either be a success containing the retrieved data or a failure with an error.

Parameters

key

A key of type KeyValueStorageKeys that identifies the data to be retrieved.