State
public final class StateThe state represents the entire state of the OS, including all known windows, applications, and spaces.
- 
                  
                  The currently running applications. DeclarationSwift public var runningApplications: [Application] { get }
- 
                  
                  The frontmost application. DeclarationSwift public var frontmostApplication: WriteableProperty<OfOptionalType<Application>> { get }
- 
                  
                  All windows that we know about. Windows on spaces that we haven’t seen yet aren’t included. DeclarationSwift public var knownWindows: [Window] { get }
- 
                  
                  The physical screens in the current display configuration. DeclarationSwift public var screens: [Screen] { get }
- 
                  
                  Calls handlerwhen the specifiedEventoccurs.DeclarationSwift public func on<Event: EventType>(_ handler: @escaping (Event) -> Void)
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           State Class Reference
      State Class Reference