NSWindowDidChangeOcclusionStateNotification

Static NSWindowDidChangeOcclusionStateNotification 

Source
pub unsafe static NSWindowDidChangeOcclusionStateNotification: &'static NSNotificationName
Available on crate feature NSWindow only.
Expand description

Upon receiving this notification, you can query the NSWindowfor its current occlusion state. Note that this only notifies about changes in the state of the occlusion, not when the occlusion region changes. You can use this notification to increase responsiveness and save power, by halting any expensive calculations that the user can not see.

See also Apple’s documentation