setWithResult

suspend fun DeviceStorage.setWithResult(key: String, value: String): <Error class: unknown class><Boolean>

Stores a key-value pair. This function uses a CompletableDeferred to handle the asynchronous callback and returns a Result object.

Return

A Result object containing the result of the operation.

Parameters

key

The key to store the value under.

value

The value to store.


suspend fun SecureStorage.setWithResult(key: String, value: String): <Error class: unknown class><Boolean>

Stores a key-value pair in secure storage using a CompletableDeferred and returns a Result.

Return

A Result object containing the result of the operation.

Parameters

key

The key to store the value under.

value

The value to store.