setZoomFactor(_:for:completionHandler:)
Called to set the zoom factor of the tab.
Declaration
optional func setZoomFactor(_ zoomFactor: Double, for context: WKWebExtensionContext, completionHandler: @escaping ((any Error)?) -> Void)optional func setZoomFactor(_ zoomFactor: Double, for context: WKWebExtensionContext) async throwsParameters
- zoomFactor:
The desired zoom factor for the tab.
- 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
Sets pageZoom of the tab’s web view if not implemented.