Contents

init(bundleIdentifier:onInterruption:)

Launches a web content process asynchronously.

Declaration

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 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.

See Also

Creating and invalidating extension processes