Contents

windowType(for:)

Called when the type of the window is needed.

Declaration

optional func windowType(for context: WKWebExtensionContext) -> WKWebExtension.WindowType

Parameters

  • context:

    The context in which the web extension is running.

Discussion

Defaults toWKWebExtension.WindowType.normal if not implemented.