Mosaic
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Mosaic
mosaic-client
/
dev.catbit.mosaic.client.ui.sdui.foundation.screen.base
/
ScreenStateHolder
Screen
State
Holder
abstract
class
ScreenStateHolder
<
State
,
Event
,
Effect
>
:
ViewModel
Inheritors
MosaicScreenStateHolder
Members
Constructors
Screen
State
Holder
Link copied to clipboard
constructor
(
)
Properties
effects
Link copied to clipboard
val
effects
:
SharedFlow
<
Effect
>
ui
State
Link copied to clipboard
val
uiState
:
StateFlow
<
State
>
Functions
add
Closeable
Link copied to clipboard
expect
open
fun
addCloseable
(
closeable
:
AutoCloseable
)
expect
fun
addCloseable
(
key
:
String
,
closeable
:
AutoCloseable
)
bind
Screen
Lifecycle
Link copied to clipboard
@
Composable
fun
bindScreenLifecycle
(
)
dispatch
Link copied to clipboard
fun
MutableSharedFlow
<
Effect
>
.
dispatch
(
effect
:
Effect
)
get
Closeable
Link copied to clipboard
expect
fun
<
T
:
AutoCloseable
>
getCloseable
(
key
:
String
)
:
T
?
on
Event
Link copied to clipboard
abstract
fun
onEvent
(
event
:
Event
)