<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macOS: 14.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/WebContentProcess/init(bundleIdentifier:onInterruption:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "s:16BrowserEngineKit17WebContentProcessV16bundleIdentifier14onInterruptionACSSSg_yyctYaKcfc"
  },
  "title" : "init(bundleIdentifier:onInterruption:)"
}
-->

# init(bundleIdentifier:onInterruption:)

Launches a web content process asynchronously.

```
init(bundleIdentifier: String? = nil, onInterruption: @escaping () -> Void) async throws
```

## Parameters

`bundleIdentifier`

A unique bundle identifier for the content extension, or `nil` to use the default web content extension bundle identifier.

`onInterruption`

A block that the system calls if the web content extension process ends abruptly.

## Discussion

Initializing a [`WebContentProcess`](/documentation/BrowserEngineKit/WebContentProcess) object launches a new instance of a web content extension. Control returns from this method only after the process for the new web content extension launches.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)