CKAsyncLayer(Subclass) Category Reference

Declared in CKAsyncLayerSubclass.h

– willDisplayAsynchronouslyWithDrawParameters:

Called on the main thread just before an async display operation is begun. Override in a subclass if you desire.

- (id)willDisplayAsynchronouslyWithDrawParameters:(id<NSObject>)drawParameters

Parameters

drawParameters

The draw parameters returned from -drawParameters that will be passed to the async operation.

Return Value

A CGImageRef if you want to specify that async display should be skipped; the returned CGImageRef will be used instead.

Declared In

CKAsyncLayerSubclass.h

– didDisplayAsynchronously:withDrawParameters:

Called on the main thread after an async display has successfully completed, just before the new rendered contents are applied via setContents:. Override in a subclass if you desire.

- (void)didDisplayAsynchronously:(id)newContents withDrawParameters:(id<NSObject>)drawParameters

Parameters

newContents

The resulting CGImageRef that will be assigned to the layer’s contents property.

drawParameters

The parameters used to asynchronously display the layer.

Declared In

CKAsyncLayerSubclass.h