Compose Preview Lab
Toggle table of contents
0.1.0-dev09
common
Target filter
common
Switch theme
Search in API
Skip to content
Compose Preview Lab
ui
/
me.tbsten.compose.preview.lab.ui.components.toast
/
ToastHostState
Toast
Host
State
@
Stable
class
ToastHostState
Members
Constructors
Toast
Host
State
Link copied to clipboard
constructor
(
)
Properties
toasts
Link copied to clipboard
val
toasts
:
List
<
ToastData
>
Functions
dismiss
Link copied to clipboard
fun
dismiss
(
id
:
Long
)
show
Link copied to clipboard
fun
show
(
message
:
String
,
type
:
ToastType
=
ToastType.Default
,
action
:
ToastAction
?
=
null
,
duration
:
ToastDuration
=
ToastDuration.Short
,
showCloseButton
:
Boolean
=
true
)
:
Long