Rachel
Toggle table of contents
3.5.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Rachel
love.yinlin.compose.ui
/
love.yinlin.compose.ui.floating
/
Tip
Tip
@
Stable
class
Tip
(
scope
:
CoroutineScope
)
:
Floating
<
Tip.Data
>
Members
Constructors
Tip
Link copied to clipboard
constructor
(
scope
:
CoroutineScope
)
Types
Companion
Link copied to clipboard
object
Companion
Data
Link copied to clipboard
@
Stable
data
class
Data
(
val
type
:
Tip.Type
,
val
text
:
String
)
Type
Link copied to clipboard
@
Stable
enum
Type
:
Enum
<
Tip.Type
>
Properties
is
Open
Link copied to clipboard
var
isOpen
:
Boolean
是否打开
Functions
close
Link copied to clipboard
@
CallSuper
open
fun
close
(
)
关闭
error
Link copied to clipboard
fun
error
(
text
:
String
?
,
duration
:
Long
=
DEFAULT_DURATION
)
info
Link copied to clipboard
fun
info
(
text
:
String
?
,
duration
:
Long
=
DEFAULT_DURATION
)
Land
Link copied to clipboard
@
Composable
fun
Land
(
)
open
Link copied to clipboard
fun
open
(
text
:
String
?
,
type
:
Tip.Type
,
duration
:
Long
=
DEFAULT_DURATION
)
success
Link copied to clipboard
fun
success
(
text
:
String
?
,
duration
:
Long
=
DEFAULT_DURATION
)
warning
Link copied to clipboard
fun
warning
(
text
:
String
?
,
duration
:
Long
=
DEFAULT_DURATION
)