Instance Method

getPropertiesWithCompletionHandler(_:)

Retrieves the properties of the webpage.

Declaration

func getPropertiesWithCompletionHandler(_ completionHandler: @escaping (SFSafariPageProperties?) -> Void)

Parameters

completionHandler

A block to call when the properties object is returned.

Discussion

If the extension cannot access the page—for example, the extension has web access permissions set to None in the Info.plist—the properties object passed to the completion handler is nil. See SFSafariPageProperties.