Cloudstream
Toggle table of contents
JVM
Target filter
JVM
Switch theme
Search in API
Skip to content
Cloudstream
App
/
com.lagradost.cloudstream3.ui.settings.testing
/
TestViewModel2
Test
View
Model2
class
TestViewModel2
:
ViewModel
,
StateContainer
<
TestState
>
,
ActionHandler
<
TestAction
>
(
source
)
Members
Constructors
Test
View
Model2
Link copied to clipboard
constructor
(
)
Properties
state
Link copied to clipboard
open
override
val
state
:
StateFlow
<
TestState
>
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
open
override
fun
onAction
(
action
:
TestAction
)
on
Cleared
Link copied to clipboard
@
EmptySuper
protected
open
fun
onCleared
(
)
update
State
Link copied to clipboard
open
override
fun
updateState
(
reducer
:
TestState
.
(
)
->
TestState
)