public class MountableLithoRenderUnit extends LithoRenderUnit
RenderUnit.Binder<MODEL,CONTENT>, RenderUnit.DelegateBinder<MODEL,CONTENT>, RenderUnit.RenderType
mContext, mId, output
Modifier and Type | Method and Description |
---|---|
protected void |
attachBinders(Context context,
java.lang.Object content,
java.lang.Object layoutData,
Systracer tracer)
Bind all attachDetach binder functions.
|
static MountableLithoRenderUnit |
create(Component component,
ComponentContext context,
NodeInfo nodeInfo,
com.facebook.litho.ViewNodeInfo viewNodeInfo,
int flags,
int importantForAccessibility,
int updateState,
Mountable mountable) |
protected void |
detachBinders(Context context,
java.lang.Object content,
java.lang.Object layoutData,
Systracer tracer)
Unbind all attachDetach binder functions.
|
boolean |
doesMountRenderTreeHosts()
Override this method to indicate if a
RenderUnit has nested RenderTreeHost s, it
will ensure that they are notified when this RenderUnit 's bounds change and visibility
events are processed correctly for them. |
java.util.List<RenderUnit.DelegateBinder<?,java.lang.Object>> |
getAttachBinders() |
java.util.Map<java.lang.Class<?>,RenderUnit.DelegateBinder<?,java.lang.Object>> |
getAttachBinderTypeToDelegateMap() |
ContentAllocator<java.lang.Object> |
getContentAllocator() |
java.lang.String |
getDescription() |
Mountable<?> |
getMountable() |
java.util.List<RenderUnit.DelegateBinder<?,java.lang.Object>> |
getMountBinders() |
java.util.Map<java.lang.Class<?>,RenderUnit.DelegateBinder<?,java.lang.Object>> |
getMountBinderTypeToDelegateMap() |
java.lang.Class<?> |
getRenderContentType() |
protected void |
mountBinders(Context context,
java.lang.Object o,
java.lang.Object layoutData,
Systracer tracer)
Bind all mountUnmount binder functions.
|
protected void |
unmountBinders(Context context,
java.lang.Object o,
java.lang.Object layoutData,
Systracer tracer)
Unbind all mountUnmount binder functions.
|
getComponentContext, getId, getLayoutOutput, getMatchHostBounds, isMountableView
addAttachBinder, addAttachBinders, addMountBinder, addMountBinders, getRenderType, onEndUpdateRenderUnit, onStartUpdateRenderUnit
public static MountableLithoRenderUnit create(Component component, ComponentContext context, NodeInfo nodeInfo, com.facebook.litho.ViewNodeInfo viewNodeInfo, int flags, int importantForAccessibility, int updateState, Mountable mountable)
public ContentAllocator<java.lang.Object> getContentAllocator()
getContentAllocator
in class RenderUnit<java.lang.Object>
public boolean doesMountRenderTreeHosts()
RenderUnit
RenderUnit
has nested RenderTreeHost
s, it
will ensure that they are notified when this RenderUnit
's bounds change and visibility
events are processed correctly for them.doesMountRenderTreeHosts
in class RenderUnit<java.lang.Object>
true
to ensure nested RenderTreeHost
s are notified about parent's
bounds change, otherwise false
protected void mountBinders(Context context, java.lang.Object o, java.lang.Object layoutData, Systracer tracer)
RenderUnit
mountBinders
in class RenderUnit<java.lang.Object>
protected void unmountBinders(Context context, java.lang.Object o, java.lang.Object layoutData, Systracer tracer)
RenderUnit
unmountBinders
in class RenderUnit<java.lang.Object>
protected void attachBinders(Context context, java.lang.Object content, java.lang.Object layoutData, Systracer tracer)
RenderUnit
attachBinders
in class RenderUnit<java.lang.Object>
protected void detachBinders(Context context, java.lang.Object content, java.lang.Object layoutData, Systracer tracer)
RenderUnit
detachBinders
in class RenderUnit<java.lang.Object>
public java.util.Map<java.lang.Class<?>,RenderUnit.DelegateBinder<?,java.lang.Object>> getMountBinderTypeToDelegateMap()
getMountBinderTypeToDelegateMap
in class RenderUnit<java.lang.Object>
public java.util.List<RenderUnit.DelegateBinder<?,java.lang.Object>> getMountBinders()
getMountBinders
in class RenderUnit<java.lang.Object>
public java.util.Map<java.lang.Class<?>,RenderUnit.DelegateBinder<?,java.lang.Object>> getAttachBinderTypeToDelegateMap()
getAttachBinderTypeToDelegateMap
in class RenderUnit<java.lang.Object>
public java.util.List<RenderUnit.DelegateBinder<?,java.lang.Object>> getAttachBinders()
getAttachBinders
in class RenderUnit<java.lang.Object>
public java.lang.Class<?> getRenderContentType()
getRenderContentType
in class RenderUnit<java.lang.Object>
public java.lang.String getDescription()
getDescription
in class RenderUnit<java.lang.Object>
public Mountable<?> getMountable()