init(bundleIdentifier:onInterruption:)
Launches a web content process asynchronously.
Declaration
init(bundleIdentifier: String? = nil, onInterruption: @escaping () -> Void) async throwsParameters
- bundleIdentifier:
A unique bundle identifier for the content extension, or
nilto 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.