Class CLSActivity

  • All Implemented Interfaces:
    NSCoding, NSSecureCoding, NSObject

    public class CLSActivity
    extends CLSObject
    CLSActivity represents user generated activity data for a given context. CLSActivity has three major components. (1) Progress, used to measure the amount of activity a user generates as a percentage. (2) Duration, used to measure the length of time a user spent on this activity. Use @c -start and @c -stop methods. (3) Activity Items, used to gather information about the activity generated by a user.
    • Constructor Detail

      • CLSActivity

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • addAdditionalActivityItem

        public void addAdditionalActivityItem​(CLSActivityItem activityItem)
        Add an activity item to this CLSActivity.
      • addProgressRangeFromStartToEnd

        public void addProgressRangeFromStartToEnd​(double start,
                                                   double end)
        Adds progress to this activity. The progress should be a decimal representation of the start and ending percentage [0.0, 1.0].
        Parameters:
        start - Starting percentage.
        end - Ending percentage.
      • additionalActivityItems

        public NSArray<? extends CLSActivityItem> additionalActivityItems()
        Array of all additional activity items on this CLSActivity.
      • 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()
      • duration

        public double duration()
        Returns the total time tracked in this activity (excluding any previous activities). The time between calling @c -start and @c -stop.
      • 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)
      • isStarted

        public boolean isStarted()
        Returns whether this Activity has been started or not.
      • 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()
      • primaryActivityItem

        public CLSActivityItem primaryActivityItem()
        The primary activityItem to be reported on. This can be nil indicating @c progress property is the primary data instead of any activityItems.
      • progress

        public double progress()
        Current progress as a decimal representation of a percentage. Should be [0.0, 1.0].
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setPrimaryActivityItem

        public void setPrimaryActivityItem​(CLSActivityItem value)
        The primary activityItem to be reported on. This can be nil indicating @c progress property is the primary data instead of any activityItems.
      • setProgress

        public void setProgress​(double value)
        Current progress as a decimal representation of a percentage. Should be [0.0, 1.0].
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • start

        public void start()
        Start Activity. Starts the activity (or resumes if previously stopped).
      • stop

        public void stop()
        Stop Activity. Stops or pauses the activity and ends the time being tracked on it.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class CLSObject
      • version_static

        public static long version_static()