The GDAccelerometer allows you to register many objects for callbacks from the UIAccelerometer. More...
#import <GDAccelerometer.h>
Public Member Functions | |
| (void) | - registerTarget:forAcceleration: |
| Register a target and action callback, your selector should accept a UIAcceleration. | |
| (void) | - unregisterTarget:forAcceleration: |
| Unregister a target callback. | |
| (void) | - unregisterSelectorForAllTargets: |
| Unregisters a callback to any target for a selector. | |
| (void) | - setUpdateInterval: |
| Sets the update interval for UIAcceleration. | |
Static Public Member Functions | |
| (GDAccelerometer *) | + sharedInstance |
| Singleton access. | |
Protected Attributes | |
| UIAccelerometer * | accelerometer |
| The accelerometer shared instance. | |
| NSMutableArray * | targets |
| Registered targets. | |
Properties | |
| BOOL | enabled |
| Whether or not this is enabled. | |
| BOOL | shouldPrintAccelerometerData |
| Whether or not an NSLog should print each UIAcceleration that comes through. | |
The GDAccelerometer allows you to register many objects for callbacks from the UIAccelerometer.