MPIMotionKit 0.1.0.1

MPIMotionKit 0.1.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Oct 2015

Maintained by Adam Różyński.



MPIMotionKit 0.1.0.1

  • By
  • Adam Różyński

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

MPIMotionKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "MPIMotionKit"

Using

Initialize

MPIMotionManager is a singleton class.

[MPIMotionManager sharedManager];

So using it is super simple. Take code from example:

[[MPIMotionManager sharedManager] getAccelerometerValuesWithTimeInterval:UPDATE_INTERVAL 
                                                              andHandler:^(MPIMotionData motionAccelData) 
{
    //do something with motionAccelData like:
    NSLog(@"%f %f %f", motionAccelData.x, motionAccelData.y, motionAccelData.z);
}];

Author

Adam Różyński, [email protected]

License

MPIMotionKit is available under the MIT license. See the LICENSE file for more info.