Package apple.coremotion
Class CMMotionManager
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.coremotion.CMMotionManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCMMotionManager.Block_startAccelerometerUpdatesToQueueWithHandlerstatic interfaceCMMotionManager.Block_startDeviceMotionUpdatesToQueueWithHandlerstatic interfaceCMMotionManager.Block_startDeviceMotionUpdatesUsingReferenceFrameToQueueWithHandlerstatic interfaceCMMotionManager.Block_startGyroUpdatesToQueueWithHandlerstatic interfaceCMMotionManager.Block_startMagnetometerUpdatesToQueueWithHandler-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCMMotionManager(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @Nullable CMAccelerometerDataaccelerometerData()accelerometerData Discussion: Returns the latest sample of accelerometer data, or nil if none is available.doubleaccelerometerUpdateInterval()accelerometerUpdateInterval Discussion: The interval at which to deliver accelerometer data to the specified handler once startAccelerometerUpdatesToQueue:withHandler: is called.static booleanaccessInstanceVariablesDirectly()static CMMotionManageralloc()static CMMotionManagerallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)longattitudeReferenceFrame()attitudeReferenceFrame Discussion: If device motion is active, returns the reference frame currently in-use.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static longavailableAttitudeReferenceFrames()availableAttitudeReferenceFrames Discussion: Returns a bitmask specifying the available attitude reference frames on the device.static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()@Nullable CMDeviceMotiondeviceMotion()deviceMotion Discussion: Returns the latest sample of device motion data, or nil if none is available.doubledeviceMotionUpdateInterval()deviceMotionUpdateInterval Discussion: The interval at which to deliver device motion data to the specified handler once startDeviceMotionUpdatesToQueue:withHandler: is called.@Nullable CMGyroDatagyroData()gyroData Discussion: Returns the latest sample of gyro data, or nil if none is available.doublegyroUpdateInterval()gyroUpdateInterval Discussion: The interval at which to deliver gyro data to the specified handler once startGyroUpdatesToQueue:withHandler: is called.static longhash_static()CMMotionManagerinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisAccelerometerActive()accelerometerActive Discussion: Determines whether the CMMotionManager is currently providing accelerometer updates.booleanisAccelerometerAvailable()accelerometerAvailable Discussion: Determines whether accelerometer is available.booleanisDeviceMotionActive()deviceMotionActive Discussion: Determines whether the CMMotionManager is currently providing device motion updates.booleanisDeviceMotionAvailable()deviceMotionAvailable Discussion: Determines whether device motion is available using any available attitude reference frame.booleanisGyroActive()gyroActive Discussion: Determines whether the CMMotionManager is currently providing gyro updates.booleanisGyroAvailable()gyroAvailable Discussion: Determines whether gyro is available.booleanisMagnetometerActive()API-Since: 5.0booleanisMagnetometerAvailable()API-Since: 5.0static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)@Nullable CMMagnetometerDatamagnetometerData()API-Since: 5.0doublemagnetometerUpdateInterval()API-Since: 5.0static CMMotionManagernew_objc()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAccelerometerUpdateInterval(double value)accelerometerUpdateInterval Discussion: The interval at which to deliver accelerometer data to the specified handler once startAccelerometerUpdatesToQueue:withHandler: is called.voidsetDeviceMotionUpdateInterval(double value)deviceMotionUpdateInterval Discussion: The interval at which to deliver device motion data to the specified handler once startDeviceMotionUpdatesToQueue:withHandler: is called.voidsetGyroUpdateInterval(double value)gyroUpdateInterval Discussion: The interval at which to deliver gyro data to the specified handler once startGyroUpdatesToQueue:withHandler: is called.voidsetMagnetometerUpdateInterval(double value)API-Since: 5.0voidsetShowsDeviceMovementDisplay(boolean value)showsDeviceMovementDisplay Discussion: When the device requires movement, showsDeviceMovementDisplay indicates if the system device movement display should be shown.static voidsetVersion_static(long aVersion)booleanshowsDeviceMovementDisplay()showsDeviceMovementDisplay Discussion: When the device requires movement, showsDeviceMovementDisplay indicates if the system device movement display should be shown.voidstartAccelerometerUpdates()startAccelerometerUpdates Discussion: Starts accelerometer updates with no handler.voidstartAccelerometerUpdatesToQueueWithHandler(@NotNull NSOperationQueue queue, @NotNull CMMotionManager.Block_startAccelerometerUpdatesToQueueWithHandler handler)startAccelerometerUpdatesToQueue:withHandler: Discussion: Starts accelerometer updates, providing data to the given handler through the given queue.voidstartDeviceMotionUpdates()startDeviceMotionUpdates Discussion: Starts device motion updates with no handler.voidstartDeviceMotionUpdatesToQueueWithHandler(@NotNull NSOperationQueue queue, @NotNull CMMotionManager.Block_startDeviceMotionUpdatesToQueueWithHandler handler)startDeviceMotionUpdatesToQueue:withHandler: Discussion: Starts device motion updates, providing data to the given handler through the given queue.voidstartDeviceMotionUpdatesUsingReferenceFrame(long referenceFrame)startDeviceMotionUpdatesUsingReferenceFrame: Discussion: Starts device motion updates with no handler.voidstartDeviceMotionUpdatesUsingReferenceFrameToQueueWithHandler(long referenceFrame, @NotNull NSOperationQueue queue, @NotNull CMMotionManager.Block_startDeviceMotionUpdatesUsingReferenceFrameToQueueWithHandler handler)startDeviceMotionUpdatesUsingReferenceFrame:toQueue:withHandler Discussion: Starts device motion updates, providing data to the given handler through the given queue.voidstartGyroUpdates()startGyroUpdates Discussion: Starts gyro updates with no handler.voidstartGyroUpdatesToQueueWithHandler(@NotNull NSOperationQueue queue, @NotNull CMMotionManager.Block_startGyroUpdatesToQueueWithHandler handler)* startGyroUpdatesToQueue:withHandler: * * Discussion: * Starts gyro updates, providing data to the given handler through the given queue.voidstartMagnetometerUpdates()API-Since: 5.0voidstartMagnetometerUpdatesToQueueWithHandler(@NotNull NSOperationQueue queue, @NotNull CMMotionManager.Block_startMagnetometerUpdatesToQueueWithHandler handler)API-Since: 5.0voidstopAccelerometerUpdates()stopAccelerometerUpdates Discussion: Stop accelerometer updates.voidstopDeviceMotionUpdates()stopDeviceMotionUpdates Discussion: Stops device motion updates.voidstopGyroUpdates()stopGyroUpdates Discussion: Stops gyro updates.voidstopMagnetometerUpdates()API-Since: 5.0static org.moe.natj.objc.Classsuperclass_static()static booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, 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, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static CMMotionManager alloc()
-
allocWithZone
public static CMMotionManager allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
availableAttitudeReferenceFrames
public static long availableAttitudeReferenceFrames()
availableAttitudeReferenceFrames Discussion: Returns a bitmask specifying the available attitude reference frames on the device. API-Since: 5.0
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
new_objc
public static CMMotionManager new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
accelerometerData
@Nullable public @Nullable CMAccelerometerData accelerometerData()
accelerometerData Discussion: Returns the latest sample of accelerometer data, or nil if none is available.
-
accelerometerUpdateInterval
public double accelerometerUpdateInterval()
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.
-
attitudeReferenceFrame
public long attitudeReferenceFrame()
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. API-Since: 5.0
-
deviceMotion
@Nullable public @Nullable CMDeviceMotion deviceMotion()
deviceMotion Discussion: Returns the latest sample of device motion data, or nil if none is available.
-
deviceMotionUpdateInterval
public double deviceMotionUpdateInterval()
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.
-
gyroData
@Nullable public @Nullable CMGyroData gyroData()
gyroData Discussion: Returns the latest sample of gyro data, or nil if none is available.
-
gyroUpdateInterval
public double gyroUpdateInterval()
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.
-
init
public CMMotionManager init()
-
isAccelerometerActive
public boolean isAccelerometerActive()
accelerometerActive Discussion: Determines whether the CMMotionManager is currently providing accelerometer updates.
-
isAccelerometerAvailable
public boolean isAccelerometerAvailable()
accelerometerAvailable Discussion: Determines whether accelerometer is available.
-
isDeviceMotionActive
public boolean isDeviceMotionActive()
deviceMotionActive Discussion: Determines whether the CMMotionManager is currently providing device motion updates.
-
isDeviceMotionAvailable
public boolean isDeviceMotionAvailable()
deviceMotionAvailable Discussion: Determines whether device motion is available using any available attitude reference frame.
-
isGyroActive
public boolean isGyroActive()
gyroActive Discussion: Determines whether the CMMotionManager is currently providing gyro updates.
-
isGyroAvailable
public boolean isGyroAvailable()
gyroAvailable Discussion: Determines whether gyro is available.
-
isMagnetometerActive
public boolean isMagnetometerActive()
API-Since: 5.0
-
isMagnetometerAvailable
public boolean isMagnetometerAvailable()
API-Since: 5.0
-
magnetometerData
@Nullable public @Nullable CMMagnetometerData magnetometerData()
API-Since: 5.0
-
magnetometerUpdateInterval
public double magnetometerUpdateInterval()
API-Since: 5.0
-
setAccelerometerUpdateInterval
public void setAccelerometerUpdateInterval(double value)
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.
-
setDeviceMotionUpdateInterval
public void setDeviceMotionUpdateInterval(double value)
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.
-
setGyroUpdateInterval
public void setGyroUpdateInterval(double value)
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.
-
setMagnetometerUpdateInterval
public void setMagnetometerUpdateInterval(double value)
API-Since: 5.0
-
setShowsDeviceMovementDisplay
public void setShowsDeviceMovementDisplay(boolean value)
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. API-Since: 5.0
-
showsDeviceMovementDisplay
public boolean showsDeviceMovementDisplay()
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. API-Since: 5.0
-
startAccelerometerUpdates
public void startAccelerometerUpdates()
startAccelerometerUpdates Discussion: Starts accelerometer updates with no handler. To receive the latest accelerometer data when desired, examine the accelerometerData property.
-
startAccelerometerUpdatesToQueueWithHandler
public void startAccelerometerUpdatesToQueueWithHandler(@NotNull @NotNull NSOperationQueue queue, @NotNull @NotNull CMMotionManager.Block_startAccelerometerUpdatesToQueueWithHandler handler)startAccelerometerUpdatesToQueue:withHandler: 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.
-
startDeviceMotionUpdates
public void startDeviceMotionUpdates()
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.
-
startDeviceMotionUpdatesToQueueWithHandler
public void startDeviceMotionUpdatesToQueueWithHandler(@NotNull @NotNull NSOperationQueue queue, @NotNull @NotNull CMMotionManager.Block_startDeviceMotionUpdatesToQueueWithHandler handler)startDeviceMotionUpdatesToQueue:withHandler: 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.
-
startDeviceMotionUpdatesUsingReferenceFrame
public void startDeviceMotionUpdatesUsingReferenceFrame(long referenceFrame)
startDeviceMotionUpdatesUsingReferenceFrame: 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. API-Since: 5.0
-
startDeviceMotionUpdatesUsingReferenceFrameToQueueWithHandler
public void startDeviceMotionUpdatesUsingReferenceFrameToQueueWithHandler(long referenceFrame, @NotNull @NotNull NSOperationQueue queue, @NotNull @NotNull CMMotionManager.Block_startDeviceMotionUpdatesUsingReferenceFrameToQueueWithHandler handler)startDeviceMotionUpdatesUsingReferenceFrame:toQueue:withHandler 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. API-Since: 5.0
-
startGyroUpdates
public void startGyroUpdates()
startGyroUpdates Discussion: Starts gyro updates with no handler. To receive the latest gyro data when desired, examine the gyroData property.
-
startGyroUpdatesToQueueWithHandler
public void startGyroUpdatesToQueueWithHandler(@NotNull @NotNull NSOperationQueue queue, @NotNull @NotNull CMMotionManager.Block_startGyroUpdatesToQueueWithHandler handler)* startGyroUpdatesToQueue:withHandler: * * Discussion: * Starts gyro 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.
-
startMagnetometerUpdates
public void startMagnetometerUpdates()
API-Since: 5.0
-
startMagnetometerUpdatesToQueueWithHandler
public void startMagnetometerUpdatesToQueueWithHandler(@NotNull @NotNull NSOperationQueue queue, @NotNull @NotNull CMMotionManager.Block_startMagnetometerUpdatesToQueueWithHandler handler)API-Since: 5.0
-
stopAccelerometerUpdates
public void stopAccelerometerUpdates()
stopAccelerometerUpdates Discussion: Stop accelerometer updates.
-
stopDeviceMotionUpdates
public void stopDeviceMotionUpdates()
stopDeviceMotionUpdates Discussion: Stops device motion updates.
-
stopGyroUpdates
public void stopGyroUpdates()
stopGyroUpdates Discussion: Stops gyro updates.
-
stopMagnetometerUpdates
public void stopMagnetometerUpdates()
API-Since: 5.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-