Skip to content

Latest commit

 

History

History
81 lines (49 loc) · 1.43 KB

README.md

File metadata and controls

81 lines (49 loc) · 1.43 KB

touch-pressure

Capacitor plugin to control the user's touch pressure on the screen

Install

npm install touch-pressure
npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
Param Type
options { value: string; }

Returns: Promise<{ value: string; }>


startListening()

startListening() => Promise<void>

stopListening()

stopListening() => Promise<void>

is3DTouchAvailable()

is3DTouchAvailable() => Promise<{ available: boolean; }>

Returns: Promise<{ available: boolean; }>


isPressureSensitiveAvailable()

isPressureSensitiveAvailable() => Promise<{ available: boolean; }>

Returns: Promise<{ available: boolean; }>