KMPrefs

actual class KMPrefs(path: String)

The KMPrefs class helps to manage the preferences storing the data locally

Author

N7ghtm4r3 - Tecknobit

Parameters

path

Is the path where store the data

expect class KMPrefs(path: String)

The KMPrefs class helps to manage the preferences storing the data locally

Author

N7ghtm4r3 - Tecknobit

Parameters

path

Is the path where store the data

actual class KMPrefs(path: String)

The KMPrefs class helps to manage the preferences storing the data locally

Author

N7ghtm4r3 - Tecknobit

Parameters

path

Is the path where store the data

Constructors

Link copied to clipboard
actual constructor(path: String)
expect constructor(path: String)
actual constructor(path: String)

Functions

Link copied to clipboard
actual fun clearAll()

Method to clear the all preferences specified by the path

expect fun clearAll()

Method to clear the all preferences specified by the path

actual fun clearAll()

Method to clear the all preferences specified by the path

Link copied to clipboard
actual fun fetchString(key: String, defValue: String?): String?

Method to fetch locally a String value

expect fun fetchString(key: String, defValue: String? = null): String?

Method to fetch locally a String value

actual fun fetchString(key: String, defValue: String?): String?

Method to fetch locally a String value

Link copied to clipboard
actual fun removeString(key: String)

Method to remove locally a String value by its key

expect fun removeString(key: String)

Method to remove locally a String value by its key

actual fun removeString(key: String)

Method to remove locally a String value by its key

Link copied to clipboard
actual fun storeString(key: String, value: String?)

Method to store locally a String value

expect fun storeString(key: String, value: String?)

Method to store locally a String value

actual fun storeString(key: String, value: String?)

Method to store locally a String value