PreferenceManagerImpl

internal class PreferenceManagerImpl(val keyValueStore: KeyValueStore) : PreferenceManager(source)

Implements PreferenceManager behavior in the SDAI data layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(keyValueStore: KeyValueStore)

Types

Link copied to clipboard
object Companion

Provides the companion object singleton used by the SDAI data layer.

Properties

Link copied to clipboard
open override var automatic1111ServerUrl: String

Exposes the automatic1111ServerUrl value used by the SDAI data layer.

Link copied to clipboard
open override var autoSaveAiResults: Boolean

Exposes the autoSaveAiResults value used by the SDAI data layer.

Link copied to clipboard
open override var backgroundGeneration: Boolean

Exposes the backgroundGeneration value used by the SDAI data layer.

Link copied to clipboard
open override var backgroundProcessCount: Int

Exposes the backgroundProcessCount value used by the SDAI data layer.

Link copied to clipboard
open override var demoMode: Boolean

Exposes the demoMode value used by the SDAI data layer.

Link copied to clipboard
open override var designColorToken: String

Exposes the designColorToken value used by the SDAI data layer.

Link copied to clipboard
open override var designDarkTheme: Boolean

Exposes the designDarkTheme value used by the SDAI data layer.

Link copied to clipboard
open override var designDarkThemeToken: String

Exposes the designDarkThemeToken value used by the SDAI data layer.

Link copied to clipboard

Exposes the designUseSystemColorPalette value used by the SDAI data layer.

Link copied to clipboard

Exposes the designUseSystemDarkTheme value used by the SDAI data layer.

Link copied to clipboard
open override var developerMode: Boolean

Exposes the developerMode value used by the SDAI data layer.

Link copied to clipboard
open override var forceSetupAfterUpdate: Boolean

Exposes the forceSetupAfterUpdate value used by the SDAI data layer.

Link copied to clipboard

Exposes the formAdvancedOptionsAlwaysShow value used by the SDAI data layer.

Link copied to clipboard
open override var formPromptTaggedInput: Boolean

Exposes the formPromptTaggedInput value used by the SDAI data layer.

Link copied to clipboard
open override var galleryGrid: Grid

Exposes the galleryGrid value used by the SDAI data layer.

Link copied to clipboard
open override var hordeApiKey: String

Exposes the hordeApiKey value used by the SDAI data layer.

Link copied to clipboard
open override var huggingFaceApiKey: String

Exposes the huggingFaceApiKey value used by the SDAI data layer.

Link copied to clipboard
open override var huggingFaceModel: String

Exposes the huggingFaceModel value used by the SDAI data layer.

Link copied to clipboard

Exposes the keyValueStore value used by the SDAI data layer.

Link copied to clipboard
open override var languageCode: String

Exposes the languageCode value used by the SDAI data layer.

Link copied to clipboard

Exposes the localMediaPipeCustomModelPath value used by the SDAI data layer.

Link copied to clipboard
open override var localMediaPipeModelId: String

Exposes the localMediaPipeModelId value used by the SDAI data layer.

Link copied to clipboard
open override var localOnnxAllowCancel: Boolean

Exposes the localOnnxAllowCancel value used by the SDAI data layer.

Link copied to clipboard
open override var localOnnxCustomModelPath: String

Exposes the localOnnxCustomModelPath value used by the SDAI data layer.

Link copied to clipboard
open override var localOnnxModelId: String

Exposes the localOnnxModelId value used by the SDAI data layer.

Link copied to clipboard

Exposes the localOnnxSchedulerThread value used by the SDAI data layer.

Link copied to clipboard
open override var localOnnxUseNNAPI: Boolean

Exposes the localOnnxUseNNAPI value used by the SDAI data layer.

Link copied to clipboard
open override var monitorConnectivity: Boolean

Exposes the monitorConnectivity value used by the SDAI data layer.

Link copied to clipboard
open override var onBoardingComplete: Boolean

Exposes the onBoardingComplete value used by the SDAI data layer.

Link copied to clipboard
open override var openAiApiKey: String

Exposes the openAiApiKey value used by the SDAI data layer.

Link copied to clipboard
private val preferencesChangedState: MutableStateFlow<Any>

Exposes the preferencesChangedState value used by the SDAI data layer.

Link copied to clipboard
open override var saveToMediaStore: Boolean

Exposes the saveToMediaStore value used by the SDAI data layer.

Link copied to clipboard
open override var sdModel: String

Exposes the sdModel value used by the SDAI data layer.

Link copied to clipboard
open override var source: ServerSource

Exposes the source value used by the SDAI data layer.

Link copied to clipboard
open override var stabilityAiApiKey: String

Exposes the stabilityAiApiKey value used by the SDAI data layer.

Link copied to clipboard
open override var stabilityAiEngineId: String

Exposes the stabilityAiEngineId value used by the SDAI data layer.

Link copied to clipboard
open override var swarmUiModel: String

Exposes the swarmUiModel value used by the SDAI data layer.

Link copied to clipboard
open override var swarmUiServerUrl: String

Exposes the swarmUiServerUrl value used by the SDAI data layer.

Functions

Link copied to clipboard
private inline fun <T : Enum<T>> enumValueOrDefault(index: Int, default: T): T

Executes the function step in the SDAI data layer.

Link copied to clipboard
open override fun observe(): Flow<Settings>

Loads SDAI data through observe.

Link copied to clipboard
private fun onPreferencesChanged()

Executes the onPreferencesChanged step in the SDAI data layer.

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

Executes the putBoolean step in the SDAI data layer.

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

Executes the putInt step in the SDAI data layer.

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

Executes the putString step in the SDAI data layer.

Link copied to clipboard
open suspend override fun refresh()

Executes the refresh step in the SDAI data layer.