getItem

fun getItem(key: String, callback: (error: SecureStorageErrorMessage?, value: String?, canBeRestored: Boolean?) -> Unit)

Retrieves the value associated with a key from secure storage.

Parameters

key

The key to retrieve the value for.

callback

A callback function that is called when the operation is complete. The first argument is an error object, if any, the second argument is the value associated with the key, or null if the key is not found, and the third argument indicates whether the value can be restored.