Ariver
2026-06-04 ecba8206e4c8cac76dd3e6f8844204abfda03dfd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import AppKit
import CoreGraphics
import Foundation
 
@MainActor
public protocol OverlayHostProtocol {
    func show(context: OverlayContext)
    func hide(reason: DismissReason)
    func promoteForTextInput(allowAppActivation: Bool)
    func attachChild(_ window: NSWindow)
    func detachChild(_ window: NSWindow)
    func beginSheet(_ panel: NSPanel, completion: (() -> Void)?)
    var currentLevel: CGWindowLevel { get }
}
 
@MainActor
public protocol TriggerServiceProtocol {
    func start()
    func stop()
    var onQuickSwitch: (() -> Void)? { get set }
}