toggle menu
app
androidJvm
switch theme
search in API
app
/
org.scottishtecharmy.soundscape.screens.onboarding.language
/
LanguageViewModel
Language
View
Model
class
LanguageViewModel
@
Inject
constructor
(
audioEngine
:
NativeAudioEngine
)
:
ViewModel
Members
Constructors
Language
View
Model
Link copied to clipboard
@
Inject
constructor
(
audioEngine
:
NativeAudioEngine
)
Types
Language
Ui
State
Link copied to clipboard
data
class
LanguageUiState
(
var
supportedLanguages
:
List
<
Language
>
=
emptyList()
,
var
selectedLanguageIndex
:
Int
=
-1
)
Properties
state
Link copied to clipboard
val
state
:
StateFlow
<
LanguageViewModel.LanguageUiState
>
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
?
update
Language
Link copied to clipboard
fun
updateLanguage
(
selectedLanguage
:
Language
)
:
Boolean