Skip to main content

Module process_info

Module process_info 

Source
Expand description

Process information for Foundation.

Corresponds to Foundation/NSProcessInfo.hpp.

§C++ Equivalent

namespace NS {
_NS_ENUM(NS::Integer, ProcessInfoThermalState) {
    ProcessInfoThermalStateNominal = 0,
    ProcessInfoThermalStateFair = 1,
    ProcessInfoThermalStateSerious = 2,
    ProcessInfoThermalStateCritical = 3
};

_NS_OPTIONS(std::uint64_t, ActivityOptions) { ... };

class ProcessInfo : public Referencing<ProcessInfo> {
public:
    static ProcessInfo*     processInfo();
    class Array*            arguments() const;
    class Dictionary*       environment() const;
    // ... many more methods
};
}

Structs§

ActivityOptions
Activity options for process activities.
ProcessInfo
An Objective-C process info object.
ProcessInfoThermalState
Thermal state of the system.

Type Aliases§

DeviceCertification
Device certification type.
ProcessPerformanceProfile
Process performance profile type.