Returned
sensor data
The ReturnValue
property returned by callback
is an object containing data from one sensor channel. callback
returns
an object every time a notification is received for the specified
channel. The exact set of object properties depends on the type of
sensor data provided by the channel:
Table: Object properties
for AccelerometerAxis data
Property
|
Type
|
Value
|
DataType
|
string
|
"AxisData"
|
TimeStamp
|
string
|
|
XAxisData
|
number
|
|
YAxisData
|
number
|
|
ZAxisData
|
number
|
|
Table: Object
properties for AccelerometerDoubleTapping data
Property
|
Type
|
Value
|
DataType
|
string
|
"DoubleTappingData"
|
TimeStamp
|
string
|
|
DeviceDirection
|
number
|
|
Table: Object
properties for Orientation data
Property
|
Type
|
Value
|
DataType
|
string
|
"OrientationData"
|
TimeStamp
|
string
|
|
DeviceOrientation
|
string
|
Possible values:
"Undefined"
"DisplayUp"
"DisplayDown"
"DisplayLeftUp"
"DisplayRightUp"
"DisplayUpwards"
"DisplayDownwards"
|
Table: Object
properties for Rotation data
Property
|
Type
|
Value
|
DataType
|
string
|
"RotationData"
|
TimeStamp
|
string
|
|
XRotation
|
number
|
|
YRotation
|
number
|
|
ZRotation
|
number
|
|