Interface Accelerometer

Index

Methods

Methods

public clearWatch(watchID: number)

Parameters

  • watchID: number

public getCurrentAcceleration(accelerometerSuccess: (acceleration: Acceleration) => void, accelerometerError: () => void)

Parameters

  • accelerometerSuccess: (acceleration: Acceleration) => void
  • accelerometerError: () => void

public watchAcceleration(accelerometerSuccess: (acceleration: Acceleration) => void, accelerometerError: () => void, accelerometerOptions?: AccelerometerOptions)

Parameters

  • accelerometerSuccess: (acceleration: Acceleration) => void
  • accelerometerError: () => void
  • accelerometerOptions?: AccelerometerOptions optional