reload(fromOrigin:for:completionHandler:)
Called to reload the current page in the tab.
Declaration
optional func reload(fromOrigin: Bool, for context: WKWebExtensionContext, completionHandler: @escaping ((any Error)?) -> Void)optional func reload(fromOrigin: Bool, for context: WKWebExtensionContext) async throwsParameters
- fromOrigin:
A boolean value indicating whether to reload the tab from the origin, bypassing the cache.
- context:
The context in which the web extension is running.
- completionHandler:
A block that must be called upon completion. It takes a single error argument, which should be provided if any errors occurred.
Discussion
Reloads the tab’s web view via reload() or reloadFromOrigin() if not implemented.