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

        public long activeProcessorCount()
      • arguments

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

        public NSObject beginActivityWithOptionsReason​(long options,
                                                       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.
      • endActivity

        public void endActivity​(NSObject activity)
        The argument to this method is the result of beginActivityWithOptions:reason:.
      • environment

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

        public java.lang.String globallyUniqueString()
      • hostName

        public 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
      • isOperatingSystemAtLeastVersion

        public boolean isOperatingSystemAtLeastVersion​(NSOperatingSystemVersion version)
      • operatingSystem

        @Deprecated
        public long operatingSystem()
        Deprecated.
      • operatingSystemName

        @Deprecated
        public java.lang.String operatingSystemName()
        Deprecated.
      • operatingSystemVersionString

        public 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,
                                                               java.lang.String reason,
                                                               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.
      • performExpiringActivityWithReasonUsingBlock

        public void performExpiringActivityWithReasonUsingBlock​(java.lang.String reason,
                                                                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.
      • physicalMemory

        public long physicalMemory()
      • processIdentifier

        public int processIdentifier()
      • processName

        public java.lang.String processName()
      • processorCount

        public long processorCount()
      • setProcessName

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

        public double systemUptime()
      • 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.
      • isMacCatalystApp

        public boolean isMacCatalystApp()
      • isiOSAppOnMac

        public boolean isiOSAppOnMac()