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.RenderTypemContext, mId, outputDEFAULT_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, isMountableViewaddAttachBinder, addAttachBinders, addMountBinder, addMountBinders, attachBinders, detachBinders, doesMountRenderTreeHosts, getAttachBinders, getAttachBinderTypeToDelegateMap, getMountBinders, getMountBinderTypeToDelegateMap, getRenderType, mountBinders, unmountBindersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanPreallocate, createPoolableContent, onCreateMountContentPool, poolSizepublic 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()
ContentAllocatorcreateRecyclingPool in interface ContentAllocator<java.lang.Object>public java.lang.Object createContent(Context c)
ContentAllocatorcreateContent in interface ContentAllocator<java.lang.Object>public java.lang.Object getPoolableContentType()
ContentAllocatorgetPoolableContentType in interface ContentAllocator<java.lang.Object>public boolean isRecyclingDisabled()
ContentAllocatorisRecyclingDisabled 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)