Instance Property

occlusionState

The occlusion state of the app.

Declaration

var occlusionState: NSApplication.OcclusionState { get }

Discussion

The value of this property reflects whether any part of the app’s windows are visible to the user. Use this information to disable expensive screen updates when your app is not visible.

See Also

Getting the Occlusion State

struct NSApplication.OcclusionState

This constant indicates whether at least part of any window owned by this app is visible.