Contents

init(configuration:)

Returns a web extension controller initialized with the specified configuration.

Declaration

init(configuration: WKWebExtensionController.Configuration)

Parameters

  • configuration:

    The configuration for the new web extension controller.

Return Value

An initialized web extension controller, or nil if the object could not be initialized.

Discussion

This is a designated initializer. You can use init() to initialize an instance with the default configuration. The initializer copies the specified configuration, so mutating the configuration after invoking the initializer has no effect on the web extension controller.

See Also

Related Documentation