| Modifier and Type | Class and Description |
|---|---|
static interface |
CMMotionManager.Block_startAccelerometerUpdatesToQueueWithHandler |
static interface |
CMMotionManager.Block_startDeviceMotionUpdatesToQueueWithHandler |
static interface |
CMMotionManager.Block_startDeviceMotionUpdatesUsingReferenceFrameToQueueWithHandler |
static interface |
CMMotionManager.Block_startGyroUpdatesToQueueWithHandler |
static interface |
CMMotionManager.Block_startMagnetometerUpdatesToQueueWithHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
CMMotionManager(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
CMAccelerometerData |
accelerometerData()
accelerometerData
|
double |
accelerometerUpdateInterval()
accelerometerUpdateInterval
|
static boolean |
accessInstanceVariablesDirectly() |
static CMMotionManager |
alloc() |
static CMMotionManager |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
long |
attitudeReferenceFrame()
attitudeReferenceFrame
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static long |
availableAttitudeReferenceFrames()
availableAttitudeReferenceFrames
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
CMDeviceMotion |
deviceMotion()
deviceMotion
|
double |
deviceMotionUpdateInterval()
deviceMotionUpdateInterval
|
CMGyroData |
gyroData()
gyroData
|
double |
gyroUpdateInterval()
gyroUpdateInterval
|
static long |
hash_static() |
CMMotionManager |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isAccelerometerActive()
accelerometerActive
|
boolean |
isAccelerometerAvailable()
accelerometerAvailable
|
boolean |
isDeviceMotionActive()
deviceMotionActive
|
boolean |
isDeviceMotionAvailable()
deviceMotionAvailable
|
boolean |
isGyroActive()
gyroActive
|
boolean |
isGyroAvailable()
gyroAvailable
|
boolean |
isMagnetometerActive()
magnetometerActive
|
boolean |
isMagnetometerAvailable()
magnetometerAvailable
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
CMMagnetometerData |
magnetometerData()
magnetometerData
|
double |
magnetometerUpdateInterval()
magnetometerUpdateInterval
|
static CMMotionManager |
new_objc() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setAccelerometerUpdateInterval(double value)
accelerometerUpdateInterval
|
void |
setDeviceMotionUpdateInterval(double value)
deviceMotionUpdateInterval
|
void |
setGyroUpdateInterval(double value)
gyroUpdateInterval
|
void |
setMagnetometerUpdateInterval(double value)
magnetometerUpdateInterval
|
void |
setShowsDeviceMovementDisplay(boolean value)
showsDeviceMovementDisplay
|
static void |
setVersion_static(long aVersion) |
boolean |
showsDeviceMovementDisplay()
showsDeviceMovementDisplay
|
void |
startAccelerometerUpdates()
startAccelerometerUpdates
|
void |
startAccelerometerUpdatesToQueueWithHandler(NSOperationQueue queue,
CMMotionManager.Block_startAccelerometerUpdatesToQueueWithHandler handler)
startAccelerometerUpdatesToQueue:withHandler:
|
void |
startDeviceMotionUpdates()
startDeviceMotionUpdates
|
void |
startDeviceMotionUpdatesToQueueWithHandler(NSOperationQueue queue,
CMMotionManager.Block_startDeviceMotionUpdatesToQueueWithHandler handler)
startDeviceMotionUpdatesToQueue:withHandler:
|
void |
startDeviceMotionUpdatesUsingReferenceFrame(long referenceFrame)
startDeviceMotionUpdatesUsingReferenceFrame:
|
void |
startDeviceMotionUpdatesUsingReferenceFrameToQueueWithHandler(long referenceFrame,
NSOperationQueue queue,
CMMotionManager.Block_startDeviceMotionUpdatesUsingReferenceFrameToQueueWithHandler handler)
startDeviceMotionUpdatesUsingReferenceFrame:toQueue:withHandler
|
void |
startGyroUpdates()
startGyroUpdates
|
void |
startGyroUpdatesToQueueWithHandler(NSOperationQueue queue,
CMMotionManager.Block_startGyroUpdatesToQueueWithHandler handler)
* startGyroUpdatesToQueue:withHandler:
*
* Discussion:
* Starts gyro updates, providing data to the given handler through the given queue.
|
void |
startMagnetometerUpdates()
startMagnetometerUpdates
|
void |
startMagnetometerUpdatesToQueueWithHandler(NSOperationQueue queue,
CMMotionManager.Block_startMagnetometerUpdatesToQueueWithHandler handler)
startMagnetometerUpdatesToQueue:withHandler:
|
void |
stopAccelerometerUpdates()
stopAccelerometerUpdates
|
void |
stopDeviceMotionUpdates()
stopDeviceMotionUpdates
|
void |
stopGyroUpdates()
stopGyroUpdates
|
void |
stopMagnetometerUpdates()
stopMagnetometerUpdates
|
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static CMMotionManager alloc()
public static CMMotionManager allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static long availableAttitudeReferenceFrames()
Discussion: Returns a bitmask specifying the available attitude reference frames on the device.
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static CMMotionManager new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public CMAccelerometerData accelerometerData()
Discussion: Returns the latest sample of accelerometer data, or nil if none is available.
public double accelerometerUpdateInterval()
Discussion: The interval at which to deliver accelerometer data to the specified handler once startAccelerometerUpdatesToQueue:withHandler: is called. The units are in seconds. The value of this property is capped to certain minimum and maximum values. The maximum value is determined by the maximum frequency supported by the hardware. If sensitive to the interval of acceleration data, an application should always check the timestamps on the delivered CMAcceleration instances to determine the true update interval.
public long attitudeReferenceFrame()
Discussion: If device motion is active, returns the reference frame currently in-use. If device motion is not active, returns the default attitude reference frame for the device. If device motion is not available on the device, the value is undefined.
public CMDeviceMotion deviceMotion()
Discussion: Returns the latest sample of device motion data, or nil if none is available.
public double deviceMotionUpdateInterval()
Discussion: The interval at which to deliver device motion data to the specified handler once startDeviceMotionUpdatesToQueue:withHandler: is called. The units are in seconds. The value of this property is capped to certain minimum and maximum values. The maximum value is determined by the maximum frequency supported by the hardware. If sensitive to the interval of device motion data, an application should always check the timestamps on the delivered CMDeviceMotion instances to determine the true update interval.
public CMGyroData gyroData()
Discussion: Returns the latest sample of gyro data, or nil if none is available.
public double gyroUpdateInterval()
Discussion: The interval at which to deliver gyro data to the specified handler once startGyroUpdatesToQueue:withHandler: is called. The units are in seconds. The value of this property is capped to certain minimum and maximum values. The maximum value is determined by the maximum frequency supported by the hardware. If sensitive to the interval of gyro data, an application should always check the timestamps on the delivered CMGyroData instances to determine the true update interval.
public CMMotionManager init()
public boolean isAccelerometerActive()
Discussion: Determines whether the CMMotionManager is currently providing accelerometer updates.
public boolean isAccelerometerAvailable()
Discussion: Determines whether accelerometer is available.
public boolean isDeviceMotionActive()
Discussion: Determines whether the CMMotionManager is currently providing device motion updates.
public boolean isDeviceMotionAvailable()
Discussion: Determines whether device motion is available using any available attitude reference frame.
public boolean isGyroActive()
Discussion: Determines whether the CMMotionManager is currently providing gyro updates.
public boolean isGyroAvailable()
Discussion: Determines whether gyro is available.
public boolean isMagnetometerActive()
Discussion: Determines whether the CMMotionManager is currently providing magnetometer updates.
public boolean isMagnetometerAvailable()
Discussion: Determines whether magetometer is available.
public CMMagnetometerData magnetometerData()
Discussion: Returns the latest sample of magnetometer data, or nil if none is available.
public double magnetometerUpdateInterval()
Discussion: The interval at which to deliver magnetometer data to the specified handler once startMagnetometerUpdatesToQueue:withHandler: is called. The units are in seconds. The value of this property is capped to certain minimum and maximum values. The maximum value is determined by the maximum frequency supported by the hardware. If sensitive to the interval of magnetometer data, an application should always check the timestamps on the delivered CMMagnetometerData instances to determine the true update interval.
public void setAccelerometerUpdateInterval(double value)
Discussion: The interval at which to deliver accelerometer data to the specified handler once startAccelerometerUpdatesToQueue:withHandler: is called. The units are in seconds. The value of this property is capped to certain minimum and maximum values. The maximum value is determined by the maximum frequency supported by the hardware. If sensitive to the interval of acceleration data, an application should always check the timestamps on the delivered CMAcceleration instances to determine the true update interval.
public void setDeviceMotionUpdateInterval(double value)
Discussion: The interval at which to deliver device motion data to the specified handler once startDeviceMotionUpdatesToQueue:withHandler: is called. The units are in seconds. The value of this property is capped to certain minimum and maximum values. The maximum value is determined by the maximum frequency supported by the hardware. If sensitive to the interval of device motion data, an application should always check the timestamps on the delivered CMDeviceMotion instances to determine the true update interval.
public void setGyroUpdateInterval(double value)
Discussion: The interval at which to deliver gyro data to the specified handler once startGyroUpdatesToQueue:withHandler: is called. The units are in seconds. The value of this property is capped to certain minimum and maximum values. The maximum value is determined by the maximum frequency supported by the hardware. If sensitive to the interval of gyro data, an application should always check the timestamps on the delivered CMGyroData instances to determine the true update interval.
public void setMagnetometerUpdateInterval(double value)
Discussion: The interval at which to deliver magnetometer data to the specified handler once startMagnetometerUpdatesToQueue:withHandler: is called. The units are in seconds. The value of this property is capped to certain minimum and maximum values. The maximum value is determined by the maximum frequency supported by the hardware. If sensitive to the interval of magnetometer data, an application should always check the timestamps on the delivered CMMagnetometerData instances to determine the true update interval.
public void setShowsDeviceMovementDisplay(boolean value)
Discussion: When the device requires movement, showsDeviceMovementDisplay indicates if the system device movement display should be shown. Note that when device requires movement, CMErrorDeviceRequiresMovement is reported once via CMDeviceMotionHandler. By default, showsDeviceMovementDisplay is NO.
public boolean showsDeviceMovementDisplay()
Discussion: When the device requires movement, showsDeviceMovementDisplay indicates if the system device movement display should be shown. Note that when device requires movement, CMErrorDeviceRequiresMovement is reported once via CMDeviceMotionHandler. By default, showsDeviceMovementDisplay is NO.
public void startAccelerometerUpdates()
Discussion: Starts accelerometer updates with no handler. To receive the latest accelerometer data when desired, examine the accelerometerData property.
public void startAccelerometerUpdatesToQueueWithHandler(NSOperationQueue queue, CMMotionManager.Block_startAccelerometerUpdatesToQueueWithHandler handler)
Discussion: Starts accelerometer updates, providing data to the given handler through the given queue. Note that when the updates are stopped, all operations in the given NSOperationQueue will be cancelled.
public void startDeviceMotionUpdates()
Discussion: Starts device motion updates with no handler. To receive the latest device motion data when desired, examine the deviceMotion property. Uses the default reference frame for the device. Examine CMMotionManager's attitudeReferenceFrame to determine this.
public void startDeviceMotionUpdatesToQueueWithHandler(NSOperationQueue queue, CMMotionManager.Block_startDeviceMotionUpdatesToQueueWithHandler handler)
Discussion: Starts device motion updates, providing data to the given handler through the given queue. Uses the default reference frame for the device. Examine CMMotionManager's attitudeReferenceFrame to determine this.
public void startDeviceMotionUpdatesUsingReferenceFrame(long referenceFrame)
Discussion: Starts device motion updates with no handler. To receive the latest device motion data when desired, examine the deviceMotion property. The specified frame will be used as reference for the attitude estimates.
public void startDeviceMotionUpdatesUsingReferenceFrameToQueueWithHandler(long referenceFrame,
NSOperationQueue queue,
CMMotionManager.Block_startDeviceMotionUpdatesUsingReferenceFrameToQueueWithHandler handler)
Discussion: Starts device motion updates, providing data to the given handler through the given queue. The specified frame will be used as reference for the attitude estimates.
public void startGyroUpdates()
Discussion: Starts gyro updates with no handler. To receive the latest gyro data when desired, examine the gyroData property.
public void startGyroUpdatesToQueueWithHandler(NSOperationQueue queue, CMMotionManager.Block_startGyroUpdatesToQueueWithHandler handler)
public void startMagnetometerUpdates()
Discussion: Starts magnetometer updates with no handler. To receive the latest magnetometer data when desired, examine the magnetometerData property.
public void startMagnetometerUpdatesToQueueWithHandler(NSOperationQueue queue, CMMotionManager.Block_startMagnetometerUpdatesToQueueWithHandler handler)
Discussion: Starts magnetometer updates, providing data to the given handler through the given queue.
public void stopAccelerometerUpdates()
Discussion: Stop accelerometer updates.
public void stopDeviceMotionUpdates()
Discussion: Stops device motion updates.
public void stopGyroUpdates()
Discussion: Stops gyro updates.
public void stopMagnetometerUpdates()
Discussion: Stops magnetometer updates.