clear

abstract fun clear(callback: (DeviceStorageErrorMessage?, Boolean?) -> Unit): DeviceStorage

Clears all key-value pairs from the storage.

Parameters

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 a boolean indicating whether the operation was successful.