MountBehavior
inline fun <ContentType : Any> MountBehavior(contentAllocator: ContentAllocator<ContentType>, noinline mountConfigurationCall: MountConfigurationScope<ContentType>.() -> Unit): MountBehavior<ContentType>
Generates an unique id and creates a com.facebook.rendercore.primitives.MountBehavior with it.
Parameters
contentAllocator
Provides a View/Drawable content.
mountConfigurationCall
A function that allows for applying properties to the content.
inline fun <ContentType : Any> MountBehavior(noinline description: () -> String, contentAllocator: ContentAllocator<ContentType>, noinline mountConfigurationCall: MountConfigurationScope<ContentType>.() -> Unit): MountBehavior<ContentType>
Generates an unique id and creates a com.facebook.rendercore.primitives.MountBehavior with it.
Parameters
description
A lambda that returns the description of the underlying RenderUnit. Mainly for debugging purposes such as tracing and logs. Maximum description length is 127 characters. Everything above that will be truncated.
contentAllocator
Provides a View/Drawable content.
mountConfigurationCall
A function that allows for applying properties to the content.