GDAccelerometer Class Reference

The GDAccelerometer allows you to register many objects for callbacks from the UIAccelerometer. More...

#import <GDAccelerometer.h>

List of all members.

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.

Detailed Description

The GDAccelerometer allows you to register many objects for callbacks from the UIAccelerometer.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Properties Defines