TestComponent

Deprecated

Base class for test components which expose lifecycle information.

Deprecated

Component should not be directly subclassed, write a layout spec or mount spec instead

Inheritors

Properties

Link copied to clipboard
val Companion: ContentAllocator.Companion
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun acceptTriggerEvent(eventTrigger: EventTrigger, eventState: Any, params: Array<Any>): Any
Link copied to clipboard
open fun acquireContent(context: Context, poolScope: PoolScope): Any
Link copied to clipboard
Link copied to clipboard
open fun createContent(context: Context): Any
abstract fun createContent(p: Context): Content
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun dispatchOnEvent(eventHandler: EventHandler, eventState: Any): Any
Link copied to clipboard
open fun dispatchOnEventImpl(eventHandler: EventHandler, eventState: Any): Any
Link copied to clipboard
fun equals(obj: Any): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <T> getDebugAttribute(attributeKey: AttributeKey<T>): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getEventState(eventHandler: EventHandler): Any
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getOnContentDiscarded(): (Any) -> Unit
Link copied to clipboard
open fun getPoolingPolicy(): PoolingPolicy
Link copied to clipboard
open fun getPoolKey(): Any
Link copied to clipboard
open fun getRenderType(): RenderUnit.RenderType
Link copied to clipboard
Link copied to clipboard
open fun <T> getTreePropFromParent(parentTreePropContainer: TreePropContainer, key: Class<T>): T
Link copied to clipboard
fun getTypeId(): Int
Link copied to clipboard
Link copied to clipboard
fun hashCode(): Int
Link copied to clipboard
open fun isBound(): Boolean
Link copied to clipboard
open fun isEquivalentProps(@Nullable other: Component, shouldCompareCommonProps: Boolean): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isMounted(): Boolean
Link copied to clipboard
Link copied to clipboard
fun measure(c: ComponentContext, widthSpec: Int, heightSpec: Int, outputSize: Size)
Link copied to clipboard
fun measureMightNotCacheInternalNode(c: ComponentContext, widthSpec: Int, heightSpec: Int, outputSize: Size)
Link copied to clipboard
open fun onCreateMountContentPool(poolSizeOverride: Int): MountContentPools.ContentPool
Link copied to clipboard
open fun poolSize(): Int
Link copied to clipboard
Link copied to clipboard
open fun recycleContent(context: Context, content: Any, poolScope: PoolScope)
Link copied to clipboard
Reset the tracking of which methods have been called on this component.
Link copied to clipboard
Link copied to clipboard
open fun <T> setDebugAttributeKey(attributeKey: AttributeKey<T>, value: T)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun willRender(c: ComponentContext, component: Component): Boolean