CKComponentGenerator Class Reference

Inherits from NSObject
Declared in CKComponentGenerator.h

Overview

CKComponentGenerator is responsibile for maintaining scope root, generating component and listening to component state update. It exposes methods to generate component synchronously and asynchronously. All APIs should be called on the affinedQueue that is passed in from CKComponentGeneratorOptions.

– updateModel:

Updates the model used to render the component.

- (void)updateModel:(id<NSObject>)model

Declared In

CKComponentGenerator.h

– updateContext:

Updates the context used to render the component.

- (void)updateContext:(id<NSObject>)context

Declared In

CKComponentGenerator.h

– generateComponentSynchronously

Generate component synchronously on affined queue and return the result.

- (CKBuildComponentResult)generateComponentSynchronously

Declared In

CKComponentGenerator.h

– generateComponentAsynchronously

Generate component asynchronously on a global background queue. CKComponentGeneratorDelegate.componentGenerator:didAsynchronouslyGenerateComponentResult: will be called once it finishes generation.

- (void)generateComponentAsynchronously

Declared In

CKComponentGenerator.h

– ignoreComponentReuseInNextGeneration

Ignore component reuse in next component generation. This should be used if you are going to update CKComponentContext in the hierarchy.

- (void)ignoreComponentReuseInNextGeneration

Declared In

CKComponentGenerator.h

– scopeRoot

The underlying scope root that is maintained by CKComponentGenerator.

- (CKComponentScopeRoot *)scopeRoot

Declared In

CKComponentGenerator.h

– setScopeRoot:

This is a temporary API for code migration. DO NOT USE.

- (void)setScopeRoot:(CKComponentScopeRoot *)scopeRoot

Declared In

CKComponentGenerator.h