Contents

LayerHierarchyHandle

A reference to a layer hierarchy that your app shares between processes.

Declaration

class LayerHierarchyHandle

Mentioned in

Overview

By sharing a reference, or handle, to your app’s layer hierarchy between processes, you can coordinate layer updates across multiple processes. Get a handle from a LayerHierarchy object, then share it with another process using one of the serialization methods.

Use createXPCRepresentation() and init(xpcRepresentation:) to share layer handles across your app’s processes. Apps with existing Mach-based interprocess communication implementations can use encode(_:) and init(port:data:) methods to share layer handles.

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

Topics

Sharing a layer hierarchy handle using XPC

Sharing a layer hierarchy handle using Mach

Creating a layer hierarchy handle

See Also

Layer hosting