toggle menu
hooks2
android
switch theme
search in API
hooks2
/
xyz.junerver.compose.hooks.usevibrate
Package-level
declarations
Functions
Functions
use
Vibrate
Link copied to clipboard
android
@
Composable
fun
useVibrate
(
short
:
Long
=
100
,
long
:
Long
=
400
)
:
Pair
<
(
)
->
Unit
,
(
)
->
Unit
>
vibrate
Long
Link copied to clipboard
android
fun
Context
.
vibrateLong
(
milliseconds
:
Long
=
400
)
触发长震动
vibrate
Short
Link copied to clipboard
android
fun
Context
.
vibrateShort
(
milliseconds
:
Long
=
100
)
触发短震动