onAlloc

abstract fun onAlloc(index: Int, oldSchoolClientType: OldSchoolClientType, newInstance: Boolean)

Invoked whenever a previously pooled object is re-allocated. This function will be responsible for restoring state to be equivalent to newly instantiated object.

Parameters

index

the index of the new element to allocate.

oldSchoolClientType

the client type used by the new owner.