SetupScreenViewModel

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

ViewModel for the Setup & Config screen. Surfaces the otherwise-invisible credential bootstrap by reading the current provisioning state from CredentialStorage and the static SampleConfig.

Constructors

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

Types

Link copied to clipboard
data class CredentialStatus(val apiKeyPresent: Boolean, val accessTokenPresent: Boolean, val oauthTokenPresent: Boolean, val authReqIdPresent: Boolean, val loginHintPresent: Boolean)

Snapshot of which credentials the bootstrap flow has provisioned so far.

Properties

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.

Link copied to clipboard
val status: ERROR CLASS: Symbol not found for LiveData<io/rekast/sdk/sample/views/setup/SetupScreenViewModel.CredentialStatus>

The current credential-provisioning status; call refresh to re-read it.

Functions

Link copied to clipboard

Emits a snackbar noting that the bootstrap sequence has been re-triggered.

Link copied to clipboard
fun refresh()

Re-reads the credential status from storage (e.g. after a bootstrap re-run completes).