public class RenderState<State,RenderContext> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
RenderState.Delegate<State> |
static interface |
RenderState.HostListener |
static class |
RenderState.LayoutContext<RenderContext>
A LayoutContext encapsulates all the data needed during a layout pass.
|
static interface |
RenderState.LazyTree<State>
Represents a function capable of creating a tree.
|
Constructor and Description |
---|
RenderState(Context context,
RenderContext renderContext,
RenderState.Delegate<State> delegate) |
RenderState(Context context,
RenderState.Delegate<State> delegate) |
Modifier and Type | Method and Description |
---|---|
void |
attach(RenderState.HostListener hostListener) |
void |
detach() |
int |
getId() |
RenderTree |
getUIRenderTree() |
void |
measure(int widthSpec,
int heightSpec,
int[] measureOutput) |
void |
preMeasure(int widthSpec,
int heightSpec,
int[] measureOutput) |
void |
setTree(RenderState.LazyTree<State> lazyTree) |
void |
setVersionedTree(RenderState.LazyTree<State> lazyTree,
int version,
int widthSpec,
int heightSpec,
int[] measureOutput) |
public RenderState(Context context, RenderState.Delegate<State> delegate)
public RenderState(Context context, RenderContext renderContext, RenderState.Delegate<State> delegate)
public void setVersionedTree(RenderState.LazyTree<State> lazyTree, int version, int widthSpec, int heightSpec, int[] measureOutput)
public void setTree(RenderState.LazyTree<State> lazyTree)
public void measure(int widthSpec, int heightSpec, int[] measureOutput)
public void preMeasure(int widthSpec, int heightSpec, int[] measureOutput)
public void attach(RenderState.HostListener hostListener)
public void detach()
public RenderTree getUIRenderTree()
public int getId()