Skip to main content
版本:v3

pauseDropWristScreenOff

API_LEVEL 2.1 开始支持,API 兼容性请参考 API_LEVEL

暂停落腕息屏行为。

类型

function pauseDropWristScreenOff(option: Option): Result

参数

Option

属性类型必填默认值说明API_LEVEL
durationnumber30000持续时间(毫秒),如果传 0,则一直暂停落腕息屏行为,直到调用 resetPalmScreenOff2.1

Result

类型说明
number如果返回 0 则表明成功

代码示例

import { pauseDropWristScreenOff } from '@zos/display'

pauseDropWristScreenOff({
duration: 60000,
})