toggle menu
Spezi Documentation
androidJvm
switch theme
search in API
app
/
edu.stanford.bdh.engagehf.health
/
HealthViewModel
Health
View
Model
class
HealthViewModel
@
Inject
constructor
(
appScreenEvents
:
AppScreenEvents
)
:
ViewModel
Members
Constructors
Health
View
Model
Link copied to clipboard
@
Inject
constructor
(
appScreenEvents
:
AppScreenEvents
)
Types
Action
Link copied to clipboard
sealed
interface
Action
Ui
State
Link copied to clipboard
data
class
UiState
(
val
tabs
:
List
<
HealthTab
>
=
HealthTab.entries
,
val
selectedTab
:
HealthTab
=
tabs.first()
)
Properties
ui
State
Link copied to clipboard
val
uiState
:
StateFlow
<
HealthViewModel.UiState
>
Functions
add
Closeable
Link copied to clipboard
open
fun
addCloseable
(
closeable
:
AutoCloseable
)
fun
addCloseable
(
key
:
String
,
closeable
:
AutoCloseable
)
get
Closeable
Link copied to clipboard
fun
<
T
:
AutoCloseable
>
getCloseable
(
key
:
String
)
:
T
?
on
Action
Link copied to clipboard
fun
onAction
(
action
:
HealthViewModel.Action
)