getItem

abstract fun getItem(key: String, callback: (DeviceStorageErrorMessage?, String?) -> Unit): DeviceStorage

Retrieves the value associated with a key.

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, and the second argument is the value associated with the key, or null if the key is not found.