Structure

ProcessInfo.ActivityOptions

Declaration

struct ActivityOptions

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

static var idleDisplaySleepDisabled: ProcessInfo.ActivityOptions

Flag to require the screen to stay powered on.

static var userInitiated: ProcessInfo.ActivityOptions

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

static var userInitiatedAllowingIdleSystemSleep: ProcessInfo.ActivityOptions

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

static var background: ProcessInfo.ActivityOptions

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

static var latencyCritical: ProcessInfo.ActivityOptions

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

Relationships

Conforms To