SharedPreferencesStorage

class SharedPreferencesStorage(context: ERROR CLASS: Symbol not found for Context, fileName: String = "_fusionauth_mobile_sdk") : Storage

SharedPreferencesStorage is a class that implements the Storage interface and provides a storage mechanism using SharedPreferences.

Parameters

context

The context used to access the application's SharedPreferences.

fileName

The name of the SharedPreferences file. Default value is "_fusionauth_mobile_sdk".

Constructors

Link copied to clipboard
constructor(context: ERROR CLASS: Symbol not found for Context, fileName: String = "_fusionauth_mobile_sdk")

Functions

Link copied to clipboard
open override fun get(key: String): String?

Retrieves the value associated with the given key from SharedPreferences.

Link copied to clipboard
open override fun remove(key: String)

Removes the value associated with the given key from SharedPreferences.

Link copied to clipboard
open override fun set(key: String, content: Any)

Sets the value for the given key in SharedPreferences.