D10NGYANG Compose Library
Toggle table of contents
3.4.0
common
Target filter
common
Switch theme
Search in API
Skip to content
D10NGYANG Compose Library
D10NGYANG Compose Library
/
com.d10ng.compose.ui.sheet.builder
/
TimePickerSheetBuilder
/
setCurrentTime
set
Current
Time
fun
setCurrentTime
(
timestamp
:
Long
=
Clock.System.now().toEpochMilliseconds()
)
设置选择当前时间
将
value
设置为指定时间戳对应的时分秒(转换为一天内的秒数)。 仅在弹窗展示前调用有效,弹窗展示后修改不会触发 UI 更新。
Parameters
timestamp
时间戳,默认当前时间,单位毫秒