Instance Method

getPagesWithCompletionHandler(_:)

Calls the completion handler with all of the tab’s active and preloading pages.

Declaration

func getPagesWithCompletionHandler(_ completionHandler: @escaping ([SFSafariPage]?) -> Void)

Parameters

completionHandler

A block to call when the tab’s pages are retrieved.

Discussion

The tab’s pages include the active page and other pages that Safari might be loading in the background; for example, Top Hits.

See Also

Accessing Pages

func getActivePage(completionHandler: (SFSafariPage?) -> Void)

Calls the completion handler passing the active page in the tab.