Package org.robovm.apple.coremotion
Class CMMotionManager
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.coremotion.CMMotionManager
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class CMMotionManager extends NSObject
- Since:
- Available in iOS 4.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CMMotionManager.CMMotionManagerPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description CMMotionManager()
protected
CMMotionManager(NSObject.Handle h, long handle)
protected
CMMotionManager(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
CMMotionManager
public CMMotionManager()
-
CMMotionManager
protected CMMotionManager(NSObject.Handle h, long handle)
-
CMMotionManager
protected CMMotionManager(NSObject.SkipInit skipInit)
-
-
Method Detail
-
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()
- 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()
-
getDeviceMotion
public CMDeviceMotion getDeviceMotion()
-
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()
-
startAccelerometerUpdates
public void startAccelerometerUpdates(NSOperationQueue queue, org.robovm.objc.block.VoidBlock2<CMAccelerometerData,NSError> handler)
-
stopAccelerometerUpdates
public void stopAccelerometerUpdates()
-
startGyroUpdates
public void startGyroUpdates()
-
startGyroUpdates
public void startGyroUpdates(NSOperationQueue queue, org.robovm.objc.block.VoidBlock2<CMGyroData,NSError> handler)
-
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(NSOperationQueue queue, org.robovm.objc.block.VoidBlock2<CMDeviceMotion,NSError> handler)
-
startDeviceMotionUpdates
public void startDeviceMotionUpdates(CMAttitudeReferenceFrame referenceFrame)
- Since:
- Available in iOS 5.0 and later.
-
startDeviceMotionUpdates
public void startDeviceMotionUpdates(CMAttitudeReferenceFrame referenceFrame, NSOperationQueue queue, org.robovm.objc.block.VoidBlock2<CMDeviceMotion,NSError> handler)
- 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.
-
-