spoken-orientation
v0.0.2-dev
Published
Read device sensor data.
Readme
spoken-orientation
Read device sensor data.
Install
npm install spoken-orientation
npx cap syncAPI
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
