Type Method

getActiveWindow(completionHandler:)

Calls the completion handler with the active browser window.

Declaration

class func getActiveWindow(completionHandler: @escaping (SFSafariWindow?) -> Void)

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.

See Also

Working with Windows