spoken-orientation
TypeScript icon, indicating that this package has built-in type declarations

0.0.2-dev • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i spoken-orientation

Weekly Downloads

3

Version

0.0.2-dev

License

MIT

Unpacked Size

30.3 kB

Total Files

27

Last publish

Collaborators

  • andrew-lyons