Enumeration

NSActivityOptions

Declaration

typedef enum NSActivityOptions : uint64_t {
    ...
} NSActivityOptions;

Overview

To include one of these individual flags in one of the sets, use bitwise OR; for example, during a presentation you might use:

NSActivityUserInitiated | NSActivityIdleDisplaySleepDisabled

To exclude from one of the sets, use bitwise AND with NOT; for example, during a user initiated action that may be safely terminated with no application interaction in case of logout you might use:

NSActivityUserInitiated & ~NSActivitySuddenTerminationDisabled

Topics

Constants

NSActivityIdleDisplaySleepDisabled

Flag to require the screen to stay powered on.

NSActivityIdleSystemSleepDisabled

Flag to prevent idle sleep.

NSActivitySuddenTerminationDisabled

Flag to prevent sudden termination.

NSActivityAutomaticTerminationDisabled

Flag to prevent automatic termination.

NSActivityUserInitiated

Flag to indicate the app is performing a user-requested action.

NSActivityUserInitiatedAllowingIdleSystemSleep

Flag to indicate the app is performing a user-requested action, but that the system can sleep on idle.

NSActivityBackground

Flag to indicate the app has initiated some kind of work, but not as the direct result of user request.

NSActivityLatencyCritical

Flag to indicate the activity requires the highest amount of timer and I/O precision available.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software