Settings

interface Settings

Interface to provide settings to the extension. This can be used to store data that needs to be persisted. (Recommended to not store sensitive data)

Following Setting Can be used for following types of data:

Functions

Link copied to clipboard
abstract fun getBoolean(key: String): Boolean?

Get the Boolean value for the given key. Returns null if the key is not found.

Link copied to clipboard
abstract fun getInt(key: String): Int?

Get the Int value for the given key. Returns null if the key is not found.

Link copied to clipboard
abstract fun getString(key: String): String?

Get the String value for the given key. Returns null if the key is not found.

Link copied to clipboard
abstract fun getStringSet(key: String): Set<String>?

Get the Set of Strings for the given key. Returns null if the key is not found.

Link copied to clipboard
abstract fun putBoolean(key: String, value: Boolean?)

Store the value for the given key.

Link copied to clipboard
abstract fun putInt(key: String, value: Int?)

Store the value for the given key.

Link copied to clipboard
abstract fun putString(key: String, value: String?)

Store the value for the given key.

Link copied to clipboard
abstract fun putStringSet(key: String, value: Set<String>?)

Store the value for the given key.