Row

A Component that renders its children in a row.

Constructors

Link copied to clipboard
constructor(customSimpleName: String?)
constructor(alignContent: YogaAlign?, alignItems: YogaAlign?, justifyContent: YogaJustify?, wrap: YogaWrap?, reverse: Boolean, gapPx: Int?, children: MutableList<Component>? = null)

Types

Link copied to clipboard
Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val onContentDiscarded: (Any?) -> Any??
Link copied to clipboard
open val poolingPolicy: PoolingPolicy
Link copied to clipboard
open override val renderType: RenderUnit.RenderType

Functions

Link copied to clipboard
override fun acceptTriggerEvent(eventTrigger: EventTrigger<Any?>, eventState: Any, params: Array<Any>): Any?
Link copied to clipboard
open fun acquireContent(context: Context, poolScope: PoolScope): Any
Link copied to clipboard
open override fun canPreallocate(): Boolean
Link copied to clipboard
open override fun createContent(context: Context): Any
Link copied to clipboard
Link copied to clipboard
override fun dispatchOnEvent(eventHandler: EventHandler<Any>, eventState: Any): Any?
Link copied to clipboard
operator override fun equals(@Nullable other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <T : Any> getDebugAttribute(attributeKey: AttributeKey<T>): T & Any
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 override fun getPoolKey(): Any
Link copied to clipboard
override fun getSimpleName(): String
Link copied to clipboard
fun getTypeId(): Int
Link copied to clipboard
Link copied to clipboard
override fun hashCode(): Int
Link copied to clipboard
override fun isEquivalentTo(@Nullable other: Component?): Boolean

Compares this component to a different one to check if they are the same

fun isEquivalentTo(@Nullable other: Component?, shouldCompareCommonProps: Boolean): Boolean
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! Components should be manually measured only as part of a LayoutState calculation. This will measure a component and set the size in the outputSize object but the measurement result will not be cached and reused for future measurements of this component.

Link copied to clipboard
open override fun onCreateMountContentPool(poolSizeOverride: Int): MountContentPools.ContentPool
Link copied to clipboard
open override fun poolSize(): Int
Link copied to clipboard
Link copied to clipboard
open fun recycleContent(context: Context, content: Any, poolScope: PoolScope)
Link copied to clipboard
open override fun resolve(resolveContext: ResolveContext, scopedComponentInfo: ScopedComponentInfo, parentWidthSpec: Int, parentHeightSpec: Int, componentsLogger: ComponentsLogger?): ComponentResolveResult

Invokes the Component-specific resolve implementation, returning a ComponentResolveResult. The ComponentResolveResult will have the LithoNode and CommonProps for the resolved component.

Link copied to clipboard
Link copied to clipboard
open override fun <T : Any> setDebugAttributeKey(attributeKey: AttributeKey<T>, value: T & Any)
Link copied to clipboard
override fun toString(): String