Developer   API   Sensor   Sensor

Sensor(native)

Sensor class manages all operations with hardware sensors.

Methods

  • dispose()
    Clears all resources from memory.
  • isAvailable(type) : Boolean
    Check if sensor is available on the device. Otherwise it returns false.
  • pause()
    Pause sending callback data.
  • resume()
    Resume sending callback data.
  • start()
    This function starts sending data from sensor. When new data are available, object calls callback functions.
  • this(type, interval) : Sensor
    Constructor creates new Sensor object, which provides access to various types of sensors.

Events