getActiveWindow(completionHandler:)
Calls the completion handler with the active browser window.
Declaration
class func getActiveWindow(completionHandler: @escaping @Sendable (SFSafariWindow?) -> Void)class func activeWindow() async -> SFSafariWindow?Parameters
- completionHandler:
A block to call when the active browser window is returned.
Discussion
If there is no active Safari window, the value of activeWindow is nil, and the completion handler is not called.