Conforms to LEServiceDelegate
Declared in LETiltSensor.h

Overview

Implement this protocol to be notified when the LETiltSensor updates its value

Instance Methods

tiltSensor:didUpdateAngleFrom:to:

Invoked when the tilt sensor has an updated value for angle.

- (void)tiltSensor:(LETiltSensor *)sensor didUpdateAngleFrom:(LETiltSensorAngle)oldAngle to:(LETiltSensorAngle)newAngle

Parameters

sensor

The tilt sensor

oldAngle

The old angle

newAngle

The new angle

Discussion

Invoked when the tilt sensor has an updated value for angle.

Declared In

LETiltSensor.h

tiltSensor:didUpdateCrashFrom:to:

Invoked when the tilt sensor has an updated value for crash readings.

- (void)tiltSensor:(LETiltSensor *)sensor didUpdateCrashFrom:(LETiltSensorCrash)oldCrashValue to:(LETiltSensorCrash)newCrashValue

Parameters

sensor

The tilt sensor

oldCrashValue

The previous value

newCrashValue

The new crash value

Discussion

Invoked when the tilt sensor has an updated value for crash readings.

Declared In

LETiltSensor.h

tiltSensor:didUpdateDirectionFrom:to:

Invoked when the tilt sensor has an updated value for direction.

- (void)tiltSensor:(LETiltSensor *)sensor didUpdateDirectionFrom:(LETiltSensorDirection)oldDirection to:(LETiltSensorDirection)newDirection

Parameters

sensor

The tilt sensor

oldDirection

The previous direction

newDirection

The new direction

Discussion

Invoked when the tilt sensor has an updated value for direction.

Declared In

LETiltSensor.h