pauseDropWristScreenOff
Start from API_LEVEL
2.1
. Please refer to API_LEVEL.
Suspension of wrist resting behavior.
Type
function pauseDropWristScreenOff(option: Option): Result
Parameters
Option
Property | Type | Required | DefaultValue | Description | API_LEVEL |
---|---|---|---|---|---|
duration | number | N | 30000 | Duration (milliseconds), if 0 is passed, the wrist rest behavior will be suspended until resetPalmScreenOff is called | 2.1 |
Result
Type | Description |
---|---|
number | If 0 is returned, success is indicated |
Example
import { pauseDropWristScreenOff } from '@zos/display'
pauseDropWristScreenOff({
duration: 60000,
})