public static interface MountItemsPool.ItemPool
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
acquire(Context c,
ContentAllocator poolableMountContent)
Acquire a pooled content item from the pool
|
void |
maybePreallocateContent(Context c,
ContentAllocator poolableMountContent)
Called early in the lifecycle to allow the pool implementation to preallocate items in the
pool (as released items)
|
void |
release(java.lang.Object item)
Called when an item is released and can return to the pool
|
java.lang.Object acquire(Context c, ContentAllocator poolableMountContent)
c
- the Android contextrenderUnit
- the RenderUnit for the itemvoid release(java.lang.Object item)
item
- the item to release to the poolvoid maybePreallocateContent(Context c, ContentAllocator poolableMountContent)
c
- the android contextrenderUnit
- the RenderUnit for the item