Contents

renderingProcessWithInterruptionHandler:completion:

Launches a rendering extension process asynchronously.

Declaration

+ (void) renderingProcessWithInterruptionHandler:(void (^)()) interruptionHandler completion:(void (^)(BERenderingProcess *process, NSError *error)) completion;

Parameters

  • interruptionHandler:

    A block the system calls if the rendering extension process exits abnormally.

  • completion:

    A block the system calls when the process finishes launching.

Discussion

Your browser app can run one instance of each of its rendering extensions. The first time you call this method, the system launches your rendering extension. If you subsequently call this method, or you call renderingProcessWithBundleID:interruptionHandler:completion: with nil as the bundle identifier, your completion handler gets a reference to the same process.

The system guarantees that the process launched when it calls your completion handler.

This method is equivalent to calling renderingProcessWithBundleID:interruptionHandler:completion:, passing nil as the bundle identifier.

See Also

Creating and invalidating extension processes