Class CMMotionManager

  • All Implemented Interfaces:
    NSObjectProtocol, org.robovm.objc.ObjCProtocol

    public class CMMotionManager
    extends NSObject
    Since:
    Available in iOS 4.0 and later.
    • Constructor Detail

      • CMMotionManager

        public CMMotionManager()
      • CMMotionManager

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

      • getAccelerometerUpdateInterval

        public double getAccelerometerUpdateInterval()
      • setAccelerometerUpdateInterval

        public void setAccelerometerUpdateInterval​(double v)
      • isAccelerometerAvailable

        public boolean isAccelerometerAvailable()
      • isAccelerometerActive

        public boolean isAccelerometerActive()
      • getGyroUpdateInterval

        public double getGyroUpdateInterval()
      • setGyroUpdateInterval

        public void setGyroUpdateInterval​(double v)
      • isGyroAvailable

        public boolean isGyroAvailable()
      • isGyroActive

        public boolean isGyroActive()
      • getMagnetometerUpdateInterval

        public double getMagnetometerUpdateInterval()
        Since:
        Available in iOS 5.0 and later.
      • setMagnetometerUpdateInterval

        public void setMagnetometerUpdateInterval​(double v)
        Since:
        Available in iOS 5.0 and later.
      • isMagnetometerAvailable

        public boolean isMagnetometerAvailable()
        Since:
        Available in iOS 5.0 and later.
      • isMagnetometerActive

        public boolean isMagnetometerActive()
        Since:
        Available in iOS 5.0 and later.
      • getMagnetometerData

        public CMMagnetometerData getMagnetometerData()
        Since:
        Available in iOS 5.0 and later.
      • getDeviceMotionUpdateInterval

        public double getDeviceMotionUpdateInterval()
      • setDeviceMotionUpdateInterval

        public void setDeviceMotionUpdateInterval​(double v)
      • getAttitudeReferenceFrame

        public CMAttitudeReferenceFrame getAttitudeReferenceFrame()
        Since:
        Available in iOS 5.0 and later.
      • isDeviceMotionAvailable

        public boolean isDeviceMotionAvailable()
      • isDeviceMotionActive

        public boolean isDeviceMotionActive()
      • showsDeviceMovementDisplay

        public boolean showsDeviceMovementDisplay()
        Since:
        Available in iOS 5.0 and later.
      • setShowsDeviceMovementDisplay

        public void setShowsDeviceMovementDisplay​(boolean v)
        Since:
        Available in iOS 5.0 and later.
      • startAccelerometerUpdates

        public void startAccelerometerUpdates()
      • stopAccelerometerUpdates

        public void stopAccelerometerUpdates()
      • startGyroUpdates

        public void startGyroUpdates()
      • stopGyroUpdates

        public void stopGyroUpdates()
      • startMagnetometerUpdates

        public void startMagnetometerUpdates()
        Since:
        Available in iOS 5.0 and later.
      • startMagnetometerUpdates

        public void startMagnetometerUpdates​(NSOperationQueue queue,
                                             org.robovm.objc.block.VoidBlock2<CMMagnetometerData,​NSError> handler)
        Since:
        Available in iOS 5.0 and later.
      • stopMagnetometerUpdates

        public void stopMagnetometerUpdates()
        Since:
        Available in iOS 5.0 and later.
      • startDeviceMotionUpdates

        public void startDeviceMotionUpdates()
      • startDeviceMotionUpdates

        public void startDeviceMotionUpdates​(CMAttitudeReferenceFrame referenceFrame)
        Since:
        Available in iOS 5.0 and later.
      • stopDeviceMotionUpdates

        public void stopDeviceMotionUpdates()
      • getAvailableAttitudeReferenceFrames

        public static CMAttitudeReferenceFrame getAvailableAttitudeReferenceFrames()
        Since:
        Available in iOS 5.0 and later.