Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Instance Methods | Protected Attributes | Properties | List of all members
iOSMotionManager Class Reference

`#import <iOSMotionManager.h>`

Inheritance diagram for iOSMotionManager:

## Instance Methods
(void) | - enableAccelerometer
(void) | - disableAccelerometer
(bool) | - isAccelerometerActive
(bool) | - enableGyroscope
(bool) | - disableGyroscope
(bool) | - isGyroAvailable
(bool) | - isGyroActive
(bool) | - startDeviceMotion
(bool) | - stopDeviceMotion
(bool) | - resetDeviceMotionReference
(bool) | - isDeviceMotionAvailable
(bool) | - isDeviceMotionActive

## Protected Attributes
CMMotionManager * | motionManager

## Properties
bool | accelerometerEnabled
bool | gyroscopeEnabled
CMAttitude * | referenceAttitude

## Method Documentation

- (void) disableAccelerometer |  |  |

- (bool) disableGyroscope |  |  |

- (void) enableAccelerometer |  |  |

- (bool) enableGyroscope |  |  |

- (bool) isAccelerometerActive |  |  |

- (bool) isDeviceMotionActive |  |  |

- (bool) isDeviceMotionAvailable |  |  |

- (bool) isGyroActive |  |  |

- (bool) isGyroAvailable |  |  |

- (bool) resetDeviceMotionReference |  |  |

- (bool) startDeviceMotion |  |  |

- (bool) stopDeviceMotion |  |  |

## Member Data Documentation

- (CMMotionManager*) motionManager
| protected

## Property Documentation

- (bool) accelerometerEnabled
| read write atomic assign

- (bool) gyroscopeEnabled
| read write atomic assign

- (CMAttitude *) referenceAttitude
| read write atomic strong

The documentation for this class was generated from the following files:

- platformiOS/iOSMotionManager.h
- platformiOS/iOSMotionManager.mm