Class NSThread

    • Constructor Detail

      • NSThread

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static NSThread alloc()
      • allocWithZone

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

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • callStackReturnAddresses

        @NotNull
        public static @NotNull NSArray<? extends NSNumber> callStackReturnAddresses()
        API-Since: 2.0
      • callStackSymbols

        @NotNull
        public static @NotNull NSArray<java.lang.String> callStackSymbols()
        API-Since: 4.0
      • 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()
      • currentThread

        @NotNull
        public static @NotNull NSThread currentThread()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • detachNewThreadSelectorToTargetWithObject

        public static void detachNewThreadSelectorToTargetWithObject​(@NotNull
                                                                     @NotNull org.moe.natj.objc.SEL selector,
                                                                     @NotNull
                                                                     @NotNull java.lang.Object target,
                                                                     @Nullable
                                                                     @Nullable java.lang.Object argument)
      • exit

        public static void exit()
      • 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)
      • isMainThread_static

        public static boolean isMainThread_static()
        reports whether current thread is main API-Since: 2.0
      • isMultiThreaded

        public static boolean isMultiThreaded()
      • 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)
      • mainThread

        @NotNull
        public static @NotNull NSThread mainThread()
        API-Since: 2.0
      • new_objc

        public static NSThread new_objc()
      • resolveClassMethod

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

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

        public static boolean setThreadPriority_static​(double p)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • sleepForTimeInterval

        public static void sleepForTimeInterval​(double ti)
      • sleepUntilDate

        public static void sleepUntilDate​(@NotNull
                                          @NotNull NSDate date)
      • superclass_static

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

        public static double threadPriority_static()
      • version_static

        public static long version_static()
      • cancel

        public void cancel()
        API-Since: 2.0
      • initWithTargetSelectorObject

        public NSThread initWithTargetSelectorObject​(@NotNull
                                                     @NotNull java.lang.Object target,
                                                     @NotNull
                                                     @NotNull org.moe.natj.objc.SEL selector,
                                                     @Nullable
                                                     @Nullable java.lang.Object argument)
        API-Since: 2.0
      • isCancelled

        public boolean isCancelled()
        API-Since: 2.0
      • isExecuting

        public boolean isExecuting()
        API-Since: 2.0
      • isFinished

        public boolean isFinished()
        API-Since: 2.0
      • isMainThread

        public boolean isMainThread()
        API-Since: 2.0
      • main

        public void main()
        thread body method API-Since: 2.0
      • name

        @Nullable
        public @Nullable java.lang.String name()
        API-Since: 2.0
      • qualityOfService

        public long qualityOfService()
        read-only after the thread is started API-Since: 8.0
      • setName

        public void setName​(@Nullable
                            @Nullable java.lang.String value)
        API-Since: 2.0
      • setQualityOfService

        public void setQualityOfService​(long value)
        read-only after the thread is started API-Since: 8.0
      • setStackSize

        public void setStackSize​(long value)
        API-Since: 2.0
      • setThreadPriority

        public void setThreadPriority​(double value)
        To be deprecated; use qualityOfService below API-Since: 4.0
      • stackSize

        public long stackSize()
        API-Since: 2.0
      • start

        public void start()
        API-Since: 2.0
      • threadPriority

        public double threadPriority()
        To be deprecated; use qualityOfService below API-Since: 4.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.