toggle menu
hooks2
common
switch theme
search in API
hooks2
/
xyz.junerver.compose.hooks
/
invoke
invoke
operator
fun
<
TData
>
NormalFunction
<
TData
>
.
invoke
(
vararg
params
:
Any
?
)
:
TData
优化函数调用形式,将导出的函数伪装成普通函数的样子,无需对参数进行
arrayOf
,可能需要手动导包:
import xyz.junerver.compose.hooks.invoke
Content copied to clipboard
operator
fun
VoidFunction
.
invoke
(
vararg
params
:
Any
?
)
operator
fun
SetValueFn
<
SetterEither
<
Int
>
>
.
invoke
(
leftValue
:
Int
)
operator
fun
SetValueFn
<
SetterEither
<
Int
>
>
.
invoke
(
rightValue
:
(
Int
)
->
Int
)