MotionSensor Protocol Reference

Conforms to NSObject
Declared in MotionSensor.h

– onSensorData:x:y:z: required method

Called when there is a change in the sensor data.

- (void)onSensorData:(SensorType)key x:(double)x y:(double)y z:(double)z

Discussion

Called when there is a change in the sensor data.

This method is triggered whenever the sensor detects a change in its readings. The method processes the incoming sensor event and determines the type of sensor that generated the event. Currently, it supports accelerometer and gyroscope sensors.

Declared In

MotionSensor.h

– onLocationChanged:latitude: required method

Called when the location has changed.

- (void)onLocationChanged:(double)longitude latitude:(double)latitude

Parameters

longitude

The new location, as a Location object.

latitude

The new location, as a Location object.

Discussion

Called when the location has changed.

Declared In

MotionSensor.h

– onSimulateSensorEvent: required method

Simulate sensor events, send events to cloud devices and trigger events

- (void)onSimulateSensorEvent:(SensorType)type

Parameters

type

event type

Discussion

Simulate sensor events, send events to cloud devices and trigger events

Declared In

MotionSensor.h