Contents

zoomFactor(for:)

Called when the zoom factor of the tab is needed.

Declaration

optional func zoomFactor(for context: WKWebExtensionContext) -> Double

Parameters

  • context:

    The context in which the web extension is running.

Discussion

Defaults to pageZoom of the tab’s web view if not implemented.

See Also

Related Documentation