Class CMMotionActivityManager

  • All Implemented Interfaces:
    NSObject

    public class CMMotionActivityManager
    extends NSObject
    CMMotionActivityManager Discussion: CMMotionActivityManager allows access to the activity of the device. Activities can be retrieved in one of two ways: 1. Via a query specifying a time range from which an array of activities will be returned. 2. By providing a queue and a block to startActivityUpdatesToQueue:withHandler: which will provide live activity updates to a running application.
    • Constructor Detail

      • CMMotionActivityManager

        protected CMMotionActivityManager​(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)
      • 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

        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()
      • queryActivityStartingFromDateToDateToQueueWithHandler

        public void queryActivityStartingFromDateToDateToQueueWithHandler​(NSDate start,
                                                                          NSDate end,
                                                                          NSOperationQueue queue,
                                                                          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​(NSOperationQueue queue,
                                                           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.