litho-testing
0.47.0
litho-testing
/
com.facebook.litho.testing
/
TrackedItemPool
Tracked
Item
Pool
class
TrackedItemPool
(
lifecycle
:
Any
,
size
:
Int
)
:
MountItemsPool.DefaultItemPool
Constructors
Functions
Properties
Constructors
Tracked
Item
Pool
Link copied to clipboard
fun
TrackedItemPool
(
lifecycle
:
Any
,
size
:
Int
)
Functions
acquire
Link copied to clipboard
open
override
fun
acquire
(
c
:
Context
?
,
poolableMountContent
:
ContentAllocator
<
*
>
?
)
:
Any
?
maybe
Preallocate
Content
Link copied to clipboard
open
override
fun
maybePreallocateContent
(
p0
:
Context
,
p1
:
ContentAllocator
<
Any
>
)
release
Link copied to clipboard
open
override
fun
release
(
item
:
Any
)
:
Boolean
Properties
current
Size
Link copied to clipboard
var
currentSize
:
Int
=
0