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