Class NSProcessInfo

  • All Implemented Interfaces:
    NSObject

    public class NSProcessInfo
    extends NSObject
    • Constructor Detail

      • NSProcessInfo

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NSProcessInfo 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)
      • 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)
      • processInfo

        @NotNull
        public static @NotNull NSProcessInfo processInfo()
      • 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()
      • activeProcessorCount

        public long activeProcessorCount()
        API-Since: 2.0
      • arguments

        @NotNull
        public @NotNull NSArray<java.lang.String> arguments()
      • beginActivityWithOptionsReason

        @NotNull
        public NSObject beginActivityWithOptionsReason​(long options,
                                                       @NotNull
                                                       @NotNull java.lang.String reason)
        Pass in an activity to this API, and a non-NULL, non-empty reason string. Indicate completion of the activity by calling the corresponding endActivity: method with the result of the beginActivityWithOptions:reason: method. The reason string is used for debugging. API-Since: 7.0
      • endActivity

        public void endActivity​(@NotNull
                                NSObject activity)
        The argument to this method is the result of beginActivityWithOptions:reason:. API-Since: 7.0
      • environment

        @NotNull
        public @NotNull NSDictionary<java.lang.String,​java.lang.String> environment()
      • globallyUniqueString

        @NotNull
        public @NotNull java.lang.String globallyUniqueString()
      • hostName

        @NotNull
        public @NotNull java.lang.String hostName()
      • isLowPowerModeEnabled

        public boolean isLowPowerModeEnabled()
        Retrieve the current setting of the system for the low power mode setting. On systems where the low power mode is unknown or unsupported, the value returned from the lowPowerModeEnabled property is always NO API-Since: 9.0
      • isOperatingSystemAtLeastVersion

        public boolean isOperatingSystemAtLeastVersion​(NSOperatingSystemVersion version)
        API-Since: 8.0
      • operatingSystem

        @Deprecated
        public long operatingSystem()
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 8.0 Deprecated-Message: -operatingSystem always returns NSMACHOperatingSystem, use -operatingSystemVersion or -isOperatingSystemAtLeastVersion: instead
      • operatingSystemName

        @NotNull
        @Deprecated
        public @NotNull java.lang.String operatingSystemName()
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 8.0 Deprecated-Message: -operatingSystemName always returns NSMACHOperatingSystem, use -operatingSystemVersionString instead
      • operatingSystemVersionString

        @NotNull
        public @NotNull java.lang.String operatingSystemVersionString()
        Human readable, localized; appropriate for displaying to user or using in bug emails and such; NOT appropriate for parsing
      • performActivityWithOptionsReasonUsingBlock

        public void performActivityWithOptionsReasonUsingBlock​(long options,
                                                               @NotNull
                                                               @NotNull java.lang.String reason,
                                                               @NotNull
                                                               @NotNull NSProcessInfo.Block_performActivityWithOptionsReasonUsingBlock block)
        Synchronously perform an activity. The activity will be automatically ended after your block argument returns. The reason string is used for debugging. API-Since: 7.0
      • performExpiringActivityWithReasonUsingBlock

        public void performExpiringActivityWithReasonUsingBlock​(@NotNull
                                                                @NotNull java.lang.String reason,
                                                                @NotNull
                                                                @NotNull NSProcessInfo.Block_performExpiringActivityWithReasonUsingBlock block)
        Perform an expiring background task, which obtains an expiring task assertion on iOS. The block contains any work which needs to be completed as a background-priority task. The block will be scheduled on a system-provided concurrent queue. After a system-specified time, the block will be called with the `expired` parameter set to YES. The `expired` parameter will also be YES if the system decides to prematurely terminate a previous non-expiration invocation of the block. API-Since: 8.2
      • physicalMemory

        public long physicalMemory()
        API-Since: 2.0
      • processIdentifier

        public int processIdentifier()
      • processName

        @NotNull
        public @NotNull java.lang.String processName()
      • processorCount

        public long processorCount()
        API-Since: 2.0
      • setProcessName

        public void setProcessName​(@NotNull
                                   @NotNull java.lang.String value)
      • systemUptime

        public double systemUptime()
        API-Since: 4.0
      • thermalState

        public long thermalState()
        Retrieve the current thermal state of the system. On systems where thermal state is unknown or unsupported, the value returned from the thermalState property is always NSProcessInfoThermalStateNominal. API-Since: 11.0
      • isMacCatalystApp

        public boolean isMacCatalystApp()
        API-Since: 13.0
      • isiOSAppOnMac

        public boolean isiOSAppOnMac()
        API-Since: 14.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.