Package org.robovm.apple.foundation
Class NSProcessInfo
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSProcessInfo
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class NSProcessInfo extends NSObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSProcessInfo.Notifications
static class
NSProcessInfo.NSProcessInfoPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NSProcessInfo(NSObject.Handle h, long handle)
protected
NSProcessInfo(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSProcessInfo
protected NSProcessInfo(NSObject.Handle h, long handle)
-
NSProcessInfo
protected NSProcessInfo(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getSharedProcessInfo
public static NSProcessInfo getSharedProcessInfo()
-
getEnvironment
public java.util.Map<java.lang.String,NSObject> getEnvironment()
-
getArguments
public java.util.List<java.lang.String> getArguments()
-
getHostName
public java.lang.String getHostName()
-
getProcessName
public java.lang.String getProcessName()
-
setProcessName
public void setProcessName(java.lang.String v)
-
getProcessIdentifier
public int getProcessIdentifier()
-
getGloballyUniqueString
public java.lang.String getGloballyUniqueString()
-
getOperatingSystemVersionString
public java.lang.String getOperatingSystemVersionString()
-
getOperatingSystemVersion
public NSOperatingSystemVersion getOperatingSystemVersion()
- Since:
- Available in iOS 8.0 and later.
-
getProcessorCount
public long getProcessorCount()
- Since:
- Available in iOS 2.0 and later.
-
getActiveProcessorCount
public long getActiveProcessorCount()
- Since:
- Available in iOS 2.0 and later.
-
getPhysicalMemory
public long getPhysicalMemory()
- Since:
- Available in iOS 2.0 and later.
-
getSystemUptime
public double getSystemUptime()
- Since:
- Available in iOS 4.0 and later.
-
getThermalState
public NSProcessInfoThermalState getThermalState()
- Since:
- Available in iOS 11.0 and later.
-
isLowPowerModeEnabled
public boolean isLowPowerModeEnabled()
- Since:
- Available in iOS 9.0 and later.
-
ThermalStateDidChangeNotification
public static NSString ThermalStateDidChangeNotification()
- Since:
- Available in iOS 11.0 and later.
-
PowerStateDidChangeNotification
public static NSString PowerStateDidChangeNotification()
- Since:
- Available in iOS 9.0 and later.
-
getOperatingSystem
@Deprecated public NSOperatingSystem getOperatingSystem()
Deprecated.Deprecated in iOS 8.0.- Since:
- Available in iOS 2.0 and later.
-
getOperatingSystemName
@Deprecated public java.lang.String getOperatingSystemName()
Deprecated.Deprecated in iOS 8.0.- Since:
- Available in iOS 2.0 and later.
-
isOperatingSystemAtLeastVersion
public boolean isOperatingSystemAtLeastVersion(NSOperatingSystemVersion version)
- Since:
- Available in iOS 8.0 and later.
-
beginActivity
public NSObject beginActivity(NSActivityOptions options, java.lang.String reason)
- Since:
- Available in iOS 7.0 and later.
-
endActivity
public void endActivity(NSObject activity)
- Since:
- Available in iOS 7.0 and later.
-
performActivity
public void performActivity(NSActivityOptions options, java.lang.String reason, java.lang.Runnable block)
- Since:
- Available in iOS 7.0 and later.
-
performExpiringActivity
public void performExpiringActivity(java.lang.String reason, org.robovm.objc.block.VoidBooleanBlock block)
- Since:
- Available in iOS 8.2 and later.
-
-