0.0.2-dev • Published 2 years ago

spoken-orientation v0.0.2-dev

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

spoken-orientation

Read device sensor data.

Install

npm install spoken-orientation
npx cap sync

API

echo(...)

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

Returns: Promise<{ value: string; }>


setGyroListeners(...)

setGyroListeners(options: SensorRequest, callback: SensorCallback) => Promise<void>
ParamType
optionsSensorRequest
callbackSensorCallback

stopGyroListeners()

stopGyroListeners() => Promise<SensorResponse>

Returns: Promise<SensorResponse>


Interfaces

SensorRequest

PropType
updateIntervalnumber

SensorResponse

PropType
okboolean
msgstring

Type Aliases

SensorCallback

(success: { show: boolean; }, error?: any): void