Class CMPedometer

  • All Implemented Interfaces:
    NSObject

    public class CMPedometer
    extends NSObject
    CMPedometer Discussion: CMPedometer allows access to the user's pedestrian activity. The activity can be retrieved in one of two ways: 1. Via a query specifying a time range from which the pedometer data is tabulated and returned. (See queryPedometerDataFromDate:toDate:withHandler:) 2. By providing a block to startPedometerUpdatesFromDate:withHandler:, pedometer updates will be provided on a best effort basis. Pedometer updates can be stopped by calling stopPedometerUpdates.
    • Constructor Detail

      • CMPedometer

        protected CMPedometer​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static 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()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isCadenceAvailable

        public static boolean isCadenceAvailable()
        isCadenceAvailable Discussion: Determines whether the device supports cadence estimation in addition to step counting.
      • isDistanceAvailable

        public static boolean isDistanceAvailable()
        isDistanceAvailable Discussion: Determines whether the device supports distance estimation in addition to step counting.
      • isFloorCountingAvailable

        public static boolean isFloorCountingAvailable()
        isFloorCountingAvailable Discussion: Determines whether the device supports counting flights of stairs in addition to step counting.
      • isPaceAvailable

        public static boolean isPaceAvailable()
        isPaceAvailable Discussion: Determines whether the device supports pace estimation in addition to step counting.
      • isPedometerEventTrackingAvailable

        public static boolean isPedometerEventTrackingAvailable()
        isPedometerEventTrackingAvailable Discussion: Determines whether the device supports pedometer events.
      • isStepCountingAvailable

        public static boolean isStepCountingAvailable()
        isStepCountingAvailable Discussion: Determines whether the device supports step counting functionality.
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object 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()
      • queryPedometerDataFromDateToDateWithHandler

        public void queryPedometerDataFromDateToDateWithHandler​(NSDate start,
                                                                NSDate end,
                                                                CMPedometer.Block_queryPedometerDataFromDateToDateWithHandler handler)
        queryPedometerDataFromDate:toDate:withHandler: Discussion: Queries for the user's pedestrian activity in the given time range. Data is available for up to 7 days. The data returned is computed from a system-wide history that is continuously being collected in the background. The result is returned on a serial queue.
      • startPedometerEventUpdatesWithHandler

        public void startPedometerEventUpdatesWithHandler​(CMPedometer.Block_startPedometerEventUpdatesWithHandler handler)
        startPedometerEventUpdatesWithHandler: Discussion: Starts pedometer event updates on a serial queue. Events are available only when the apps are running in foreground / background.
      • startPedometerUpdatesFromDateWithHandler

        public void startPedometerUpdatesFromDateWithHandler​(NSDate start,
                                                             CMPedometer.Block_startPedometerUpdatesFromDateWithHandler handler)
        startPedometerUpdatesFromDate:withHandler: Discussion: Starts a series of continuous pedometer updates to the handler on a serial queue. For each update, the app will receive the cumulative pedestrian activity since the start date specified and the timestamp associated with the latest determination. If the app is backgrounded and resumed at a later time, the app will receive all of the pedestrian activity accumulated during the background period in the very next update.
      • stopPedometerEventUpdates

        public void stopPedometerEventUpdates()
        stopPedometerEventUpdates Discussion: Stops pedometer event updates.
      • stopPedometerUpdates

        public void stopPedometerUpdates()
        stopPedometerUpdates Discussion: Stops pedometer updates.
      • authorizationStatus

        public static long authorizationStatus()
        authorizationStatus Discussion: Returns the current authorization status for pedometer.