AppViewModel

class AppViewModel @Inject constructor(client: AppHttpClient, dataService: AppDataService, storage: CrossStorage) : ViewModel

Main ViewModel for app

Constructors

AppViewModel
Link copied to clipboard
@Inject
fun AppViewModel(client: AppHttpClient, dataService: AppDataService, storage: CrossStorage)

Functions

queryRequiredForApp
Link copied to clipboard
private suspend fun queryRequiredForApp()

Start loading data user

Properties

_isSplash
Link copied to clipboard
private val _isSplash: MutableStateFlow<Boolean>

MutableStateFlow for start app and end splash

client
Link copied to clipboard
private val client: AppHttpClient
dataService
Link copied to clipboard
private val dataService: AppDataService
isOnboardingDone
Link copied to clipboard
var isOnboardingDone: <ERROR CLASS>

Check is show onboarding

isSplash
Link copied to clipboard
val isSplash: StateFlow<Boolean>

StateFlow for _isSplash

storage
Link copied to clipboard
private val storage: CrossStorage