Contents

close(for:completionHandler:)

Called to close the window.

Declaration

optional func close(for context: WKWebExtensionContext, completionHandler: @escaping ((any Error)?) -> Void)
optional func close(for context: WKWebExtensionContext) async throws

Parameters

  • 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

No action is performed if not implemented.