init(bundleIdentifier:onInterruption:)
Launches a networking extension process asynchronously.
Declaration
init(bundleIdentifier: String? = nil, onInterruption: @escaping () -> Void) async throwsParameters
- bundleIdentifier:
The bundle identifier of the networking extension to launch, or
nilto use the default bundle identifier for this app’s networking extension. - onInterruption:
A block that the system calls if the networking extension process exits abnormally.
Discussion
Your browser app can run one instance of each of its networking extensions. The first time you initialize this object, the system launches your networking extension. If you subsequently initialize new instances of NetworkingProcess using the same bundle identifier, they refer to the same process.
The system guarantees that the process launched when this initializer returns.