SettingsScreenViewModel

class SettingsScreenViewModel(context: Context, credentialStorage: CredentialStorage, val config: SampleConfig) : <ERROR CLASS> ERROR CLASS: Symbol not found for ViewModel

ViewModel for the Settings screen. Exposes the static environment configuration, the product subscription keys, and the host application's build metadata, plus a destructive action to clear all locally-stored credentials.

Constructors

Link copied to clipboard
constructor(context: Context, credentialStorage: CredentialStorage, config: SampleConfig)

Types

Link copied to clipboard
data class AppInfo(val versionName: String, val versionCode: String, val packageName: String)

Host application build metadata surfaced on the Settings screen.

Properties

Link copied to clipboard

The host application's version, build number, and package name.

Link copied to clipboard

The static app configuration (environment, API versions, product keys).

Link copied to clipboard
val snackBarStateFlow: ERROR CLASS: Symbol not found for SharedFlow<io/rekast/sdk/sample/utils/SnackBarComponentConfiguration>

Flow of snackbar events to be displayed.

Functions

Link copied to clipboard

Clears every stored credential and notifies the user. The SDK bootstrap flow re-provisions the credentials on the next request.