spoken-orientation
Read device sensor data.
Install
npm install spoken-orientation
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options |
{ value: string; } |
Returns: Promise<{ value: string; }>
setGyroListeners(...)
setGyroListeners(options: SensorRequest, callback: SensorCallback) => Promise<void>
Param | Type |
---|---|
options |
SensorRequest |
callback |
SensorCallback |
stopGyroListeners()
stopGyroListeners() => Promise<SensorResponse>
Returns: Promise<SensorResponse>
Interfaces
SensorRequest
Prop | Type |
---|---|
updateInterval |
number |
SensorResponse
Prop | Type |
---|---|
ok |
boolean |
msg |
string |
Type Aliases
SensorCallback
(success: { show: boolean; }, error?: any): void