Returns the unique type identifier used for CGLayerRef objects.


CFTypeID CGLayerGetTypeID(void);

Return Value

The type identifier for CGLayer objects.


A type identifier is an integer that identifies the opaque type to which a Core Foundation object belongs. You use type IDs in various contexts, such as when you are operating on heterogeneous collections.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software