Contents

LayerHierarchy

An object that holds a reference to layers rendered in another process’s view.

Declaration

@MainActor class LayerHierarchy

Mentioned in

Overview

This class holds another process’s view to synchronize UI updates across multiple processes in your browser app.

To use this class, create an instance in your browser app’s rendering extension and set its layer to a CALayer that renders content. You render the content in your rendering extension then access it in the browser app’s process for display.

Access the layer hierarchy’s handle, send it to the browser app, and add the handle to a LayerHierarchyHostingView. Then, use the LayerHierarchyHostingTransactionCoordinator class to synchronize updates in the view and the layer.

For more information, see Hosting browser view layers in the rendering extension.

Topics

Creating and invalidating a layer hierarchy

Setting the layer

Getting a handle

See Also

Layer hosting