Skip to content

Commit

Permalink
Base for new host VM
Browse files Browse the repository at this point in the history
  • Loading branch information
kamgurgul committed Nov 20, 2023
1 parent 6aab426 commit 8bbcdf9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions app/src/main/java/com/kgurgul/cpuinfo/features/HostViewModel.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.kgurgul.cpuinfo.features

import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import javax.inject.Inject

@HiltViewModel
class HostViewModel @Inject constructor() : ViewModel() {

private val _uiStateFlow = MutableStateFlow(UiState())
val uiStateFlow = _uiStateFlow.asStateFlow()

data class UiState(
val isProcessSectionVisible: Boolean = false,
)
}

0 comments on commit 8bbcdf9

Please sign in to comment.