Contents

webExtensionController(_:didUpdate:forExtensionContext:)

Called when an action’s properties are updated.

Declaration

optional func webExtensionController(_ controller: WKWebExtensionController, didUpdate action: WKWebExtension.Action, forExtensionContext context: WKWebExtensionContext)

Parameters

  • controller:

    The web extension controller initiating the request.

  • action:

    The web extension action whose properties are updated.

  • context:

    The context within which the web extension is running.

Discussion

This method is called when an action’s properties are updated and should be reflected in the app’s user interface.

The app should ensure that any visible changes, such as icons and labels, are updated accordingly.