Class CMPedometer

  • All Implemented Interfaces:
    NSObject

    public class CMPedometer
    extends NSObject
    API-Since: 8.0
    • Constructor Detail

      • CMPedometer

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • 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()
      • 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. API-Since: 9.0
      • 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. API-Since: 9.0
      • isPedometerEventTrackingAvailable

        public static boolean isPedometerEventTrackingAvailable()
        isPedometerEventTrackingAvailable Discussion: Determines whether the device supports pedometer events. API-Since: 10.0
      • 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • 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​(@NotNull
                                                                @NotNull NSDate start,
                                                                @NotNull
                                                                @NotNull NSDate end,
                                                                @NotNull
                                                                @NotNull 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​(@NotNull
                                                          @NotNull 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. API-Since: 10.0
      • startPedometerUpdatesFromDateWithHandler

        public void startPedometerUpdatesFromDateWithHandler​(@NotNull
                                                             @NotNull NSDate start,
                                                             @NotNull
                                                             @NotNull 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. API-Since: 10.0
      • stopPedometerUpdates

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

        public static long authorizationStatus()
        authorizationStatus Discussion: Returns the current authorization status for pedometer. API-Since: 11.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.