Sony Addon SDK
public class

AccessorySensorEvent

This project is no longer being supported and will not get any further updates.
extends java.lang.Object
  1. java.lang.Object
  2. com.sonyericsson.extras.liveware.extension.util.sensor.AccessorySensorEvent

Class Overview

A sensor event from an accessory.

Summary

Public Constructors
AccessorySensorEvent(int accuracy, long timestamp, float[] sensorValues)

Create a sensor event.

Public Methods
float[] getSensorValues()

Get data values from sensor The length of the array is dependent on the sensor.

long getTimestamp()
int getAccuracy()

Public Constructors

public AccessorySensorEvent(int accuracy, long timestamp, float[] sensorValues)

Create a sensor event.

Parameters
accuracy The accuracy as defined in Sensor.SensorAccuracy
timestamp The time in nanoseconds when the event fired.
sensorValues Array of sensor values. The length of the array is dependent on the sensor.

Public Methods

public float[] getSensorValues()

Get data values from sensor The length of the array is dependent on the sensor.

public long getTimestamp()

Returns

The time in nanoseconds when the event fired.

public int getAccuracy()

Returns

The accuracy as defined in Sensor.SensorAccuracy