Contents

webContentProcessWithBundleID:interruptionHandler:completion:

Launches a web content extension process asynchronously.

Declaration

+ (void) webContentProcessWithBundleID:(NSString *) bundleID interruptionHandler:(void (^)()) interruptionHandler completion:(void (^)(BEWebContentProcess *process, NSError *error)) completion;

Parameters

  • bundleID:

    The bundle identifier of the web content extension to launch, or nil to use the default bundle identifier for this app’s web content extension.

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

See Also

Creating and invalidating extension processes