Class CMMotionManager

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class CMMotionManager
extends NSObject
  • Constructor Details

    • CMMotionManager

      public CMMotionManager()
    • CMMotionManager

      protected CMMotionManager​(NSObject.Handle h, long handle)
    • CMMotionManager

      protected CMMotionManager​(NSObject.SkipInit skipInit)
  • Method Details

    • getAccelerometerUpdateInterval

      public double getAccelerometerUpdateInterval()
    • setAccelerometerUpdateInterval

      public void setAccelerometerUpdateInterval​(double v)
    • isAccelerometerAvailable

      public boolean isAccelerometerAvailable()
    • isAccelerometerActive

      public boolean isAccelerometerActive()
    • getAccelerometerData

      public CMAccelerometerData getAccelerometerData()
    • getGyroUpdateInterval

      public double getGyroUpdateInterval()
    • setGyroUpdateInterval

      public void setGyroUpdateInterval​(double v)
    • isGyroAvailable

      public boolean isGyroAvailable()
    • isGyroActive

      public boolean isGyroActive()
    • getGyroData

      public CMGyroData getGyroData()
    • getMagnetometerUpdateInterval

      public double getMagnetometerUpdateInterval()
    • setMagnetometerUpdateInterval

      public void setMagnetometerUpdateInterval​(double v)
    • isMagnetometerAvailable

      public boolean isMagnetometerAvailable()
    • isMagnetometerActive

      public boolean isMagnetometerActive()
    • getMagnetometerData

      public CMMagnetometerData getMagnetometerData()
    • getDeviceMotionUpdateInterval

      public double getDeviceMotionUpdateInterval()
    • setDeviceMotionUpdateInterval

      public void setDeviceMotionUpdateInterval​(double v)
    • getAttitudeReferenceFrame

      public CMAttitudeReferenceFrame getAttitudeReferenceFrame()
    • isDeviceMotionAvailable

      public boolean isDeviceMotionAvailable()
    • isDeviceMotionActive

      public boolean isDeviceMotionActive()
    • getDeviceMotion

      public CMDeviceMotion getDeviceMotion()
    • showsDeviceMovementDisplay

      public boolean showsDeviceMovementDisplay()
    • setShowsDeviceMovementDisplay

      public void setShowsDeviceMovementDisplay​(boolean v)
    • startAccelerometerUpdates

      public void startAccelerometerUpdates()
    • startAccelerometerUpdates

      public void startAccelerometerUpdates​(NSOperationQueue queue, VoidBlock2<CMAccelerometerData,​NSError> handler)
    • stopAccelerometerUpdates

      public void stopAccelerometerUpdates()
    • startGyroUpdates

      public void startGyroUpdates()
    • startGyroUpdates

      public void startGyroUpdates​(NSOperationQueue queue, VoidBlock2<CMGyroData,​NSError> handler)
    • stopGyroUpdates

      public void stopGyroUpdates()
    • startMagnetometerUpdates

      public void startMagnetometerUpdates()
    • startMagnetometerUpdates

      public void startMagnetometerUpdates​(NSOperationQueue queue, VoidBlock2<CMMagnetometerData,​NSError> handler)
    • stopMagnetometerUpdates

      public void stopMagnetometerUpdates()
    • startDeviceMotionUpdates

      public void startDeviceMotionUpdates()
    • startDeviceMotionUpdates

      public void startDeviceMotionUpdates​(NSOperationQueue queue, VoidBlock2<CMDeviceMotion,​NSError> handler)
    • startDeviceMotionUpdates

      public void startDeviceMotionUpdates​(CMAttitudeReferenceFrame referenceFrame)
    • startDeviceMotionUpdates

      public void startDeviceMotionUpdates​(CMAttitudeReferenceFrame referenceFrame, NSOperationQueue queue, VoidBlock2<CMDeviceMotion,​NSError> handler)
    • stopDeviceMotionUpdates

      public void stopDeviceMotionUpdates()
    • getAvailableAttitudeReferenceFrames

      public static CMAttitudeReferenceFrame getAvailableAttitudeReferenceFrames()