Class CMMotionActivityManager

  • All Implemented Interfaces:
    NSObject

    public class CMMotionActivityManager
    extends NSObject
    API-Since: 7.0
    • Constructor Detail

      • CMMotionActivityManager

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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)
      • isActivityAvailable

        public static boolean isActivityAvailable()
        isActivityAvailable Discussion: Determines whether activity estimation is available.
      • 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()
      • queryActivityStartingFromDateToDateToQueueWithHandler

        public void queryActivityStartingFromDateToDateToQueueWithHandler​(@NotNull
                                                                          @NotNull NSDate start,
                                                                          @NotNull
                                                                          @NotNull NSDate end,
                                                                          @NotNull
                                                                          @NotNull NSOperationQueue queue,
                                                                          @NotNull
                                                                          @NotNull CMMotionActivityManager.Block_queryActivityStartingFromDateToDateToQueueWithHandler handler)
        queryActivityStartingFrom:to:toQueue:withHandler: Discussion: Queries for activity transitions that happened during the given time range. The date range must be in the past. Data is only available for the last seven days. The result is returned to the handler/queue specified. The first activity returned may have a startDate before start. This activity represents what the state was at the start time.
      • startActivityUpdatesToQueueWithHandler

        public void startActivityUpdatesToQueueWithHandler​(@NotNull
                                                           @NotNull NSOperationQueue queue,
                                                           @NotNull
                                                           @NotNull CMMotionActivityManager.Block_startActivityUpdatesToQueueWithHandler handler)
        startActivityUpdatesToQueue:withHandler Discussion: Start activity updates, providing data to the given handler through the given queue. An update with the current activity will arrive first. Then when the activity state changes the handler will be called with the new activity. You can only have one handler installed at a time, calling startActivityUpdatesToQueue:withHandler: replaces the current handler. Updates are not delivered while the application is suspended, the application may use queryActivityStartingFromDate:toDate:toQueue:withHandler: to get activities from the time when the application was suspended.
      • stopActivityUpdates

        public void stopActivityUpdates()
        stopActivityUpdates Discussion: Stop delivering live updates.
      • authorizationStatus

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

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.