public class MountSpecLithoRenderUnit extends LithoRenderUnit implements ContentAllocator<java.lang.Object>
RenderUnit
encapsulates a Litho output to be mounted using Render Core.Modifier and Type | Class and Description |
---|---|
static class |
MountSpecLithoRenderUnit.LithoBindBinder |
static class |
MountSpecLithoRenderUnit.LithoMountBinder |
RenderUnit.Binder<MODEL,CONTENT>, RenderUnit.DelegateBinder<MODEL,CONTENT>, RenderUnit.RenderType
mContext, mId, output
DEFAULT_MAX_PREALLOCATION
Modifier and Type | Method and Description |
---|---|
static MountSpecLithoRenderUnit |
create(long id,
Component component,
ComponentContext context,
NodeInfo nodeInfo,
com.facebook.litho.ViewNodeInfo viewNodeInfo,
int flags,
int importantForAccessibility,
int updateState) |
java.lang.Object |
createContent(Context c)
Allocates the mountable content (View or Drawable).
|
MountItemsPool.ItemPool |
createRecyclingPool()
Creates an ItemPool for this mountable content.
|
ContentAllocator<java.lang.Object> |
getContentAllocator() |
java.lang.String |
getDescription() |
java.lang.Object |
getPoolableContentType()
Returns an object defining the type of the mount-content.
|
java.lang.Class<?> |
getRenderContentType() |
boolean |
isRecyclingDisabled()
Return true if pooling should be disabled for this mount content.
|
protected void |
onEndUpdateRenderUnit() |
protected void |
onStartUpdateRenderUnit() |
static boolean |
shouldUpdateMountItem(MountSpecLithoRenderUnit current,
MountSpecLithoRenderUnit next,
java.lang.Object currentData,
java.lang.Object nextData) |
getComponentContext, getId, getLayoutOutput, getMatchHostBounds, isMountableView
addAttachBinder, addAttachBinders, addMountBinder, addMountBinders, attachBinders, detachBinders, doesMountRenderTreeHosts, getAttachBinders, getAttachBinderTypeToDelegateMap, getMountBinders, getMountBinderTypeToDelegateMap, getRenderType, mountBinders, unmountBinders
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canPreallocate, createPoolableContent, onCreateMountContentPool, poolSize
public static MountSpecLithoRenderUnit create(long id, Component component, ComponentContext context, NodeInfo nodeInfo, com.facebook.litho.ViewNodeInfo viewNodeInfo, int flags, int importantForAccessibility, int updateState)
protected void onStartUpdateRenderUnit()
onStartUpdateRenderUnit
in class RenderUnit<java.lang.Object>
protected void onEndUpdateRenderUnit()
onEndUpdateRenderUnit
in class RenderUnit<java.lang.Object>
public MountItemsPool.ItemPool createRecyclingPool()
ContentAllocator
createRecyclingPool
in interface ContentAllocator<java.lang.Object>
public java.lang.Object createContent(Context c)
ContentAllocator
createContent
in interface ContentAllocator<java.lang.Object>
public java.lang.Object getPoolableContentType()
ContentAllocator
getPoolableContentType
in interface ContentAllocator<java.lang.Object>
public boolean isRecyclingDisabled()
ContentAllocator
isRecyclingDisabled
in interface ContentAllocator<java.lang.Object>
public java.lang.String getDescription()
getDescription
in class RenderUnit<java.lang.Object>
public ContentAllocator<java.lang.Object> getContentAllocator()
getContentAllocator
in class RenderUnit<java.lang.Object>
public java.lang.Class<?> getRenderContentType()
getRenderContentType
in class RenderUnit<java.lang.Object>
public static boolean shouldUpdateMountItem(MountSpecLithoRenderUnit current, MountSpecLithoRenderUnit next, java.lang.Object currentData, java.lang.Object nextData)