SpecGeneratedComponent

Base class for all component generated via the Spec API (@LayoutSpec and @MountSpec).

Inheritors

Types

Link copied to clipboard
Generated component's state container could implement this interface along with when componentspec specifies state update method with annotation.

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
Link copied to clipboard
Link copied to clipboard
For internal use, only.
Link copied to clipboard
fun dispatchOnEvent(eventHandler: EventHandler, eventState: Any): Any
Link copied to clipboard
fun equals(@Nullable obj: Any): Boolean
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
This indicates the type of the Object that will be returned by mount.
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
Should only be used by logging to provide more readable messages.
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
Compares this component to a different one to check if they are the same This is used to be able to skip rendering a component again.
fun isEquivalentTo(@Nullable other: Component, shouldCompareCommonProps: Boolean): Boolean
abstract fun isEquivalentTo(p: T): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun measure(c: ComponentContext, widthSpec: Int, heightSpec: Int, outputSize: Size)
Measure a component with the given SizeSpec constrain.
fun measure(c: ComponentContext, widthSpec: Int, heightSpec: Int, outputSize: Size, shouldCacheResult: Boolean)
Link copied to clipboard
fun measureMightNotCacheInternalNode(c: ComponentContext, widthSpec: Int, heightSpec: Int, outputSize: Size)
Should not be used!
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
Link copied to clipboard
abstract fun <T> setDebugAttributeKey(attributeKey: AttributeKey<T>, value: T)
open fun <T> setDebugAttributeKey(attributeKey: AttributeKey<T>, value: T)
Link copied to clipboard
Link copied to clipboard
open fun willRender(c: ComponentContext, component: Component): Boolean