webContentProcessWithInterruptionHandler:completion:
Launches a web content extension process asynchronously.
Declaration
+ (void) webContentProcessWithInterruptionHandler:(void (^)()) interruptionHandler completion:(void (^)(BEWebContentProcess *process, NSError *error)) completion;Parameters
- interruptionHandler:
A block the system calls if the web content extension process exits abnormally.
- completion:
A block the system calls when the process finishes launching.
Discussion
Your browser app can run multiple web content extension processes.
The system guarantees that the process launched when it calls your completion handler.
This method is equivalent to calling webContentProcessWithBundleID:interruptionHandler:completion:, passing nil as the bundle identifier.