SelectableRichText
class SelectableRichText(text: CharSequence, textStyle: TextStyle? = null, style: Style = Style, usePerformantTruncation: Boolean = RenderCoreConfig.usePerformantTruncation, useTruncationCaching: Boolean = RenderCoreConfig.useTruncationCaching) : PrimitiveComponent
A Litho component that renders selectable text.
This is similar to RichText but enables text selection, allowing users to select and copy text content. It uses SelectableRichTextPrimitive which renders a native Android TextView with android.widget.TextView.setTextIsSelectable enabled.
Usage:
SelectableRichText(
text = "Some selectable text",
textStyle = myTextStyle,
)Content copied to clipboard
Constructors
Link copied to clipboard
constructor(text: CharSequence, textStyle: TextStyle? = null, style: Style = Style, usePerformantTruncation: Boolean = RenderCoreConfig.usePerformantTruncation, useTruncationCaching: Boolean = RenderCoreConfig.useTruncationCaching)
Functions
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun resolveDeferred(calculationContext: CalculationContext, componentContext: ComponentContext, parentContext: ComponentContext): ComponentResolveResult
Link copied to clipboard
Link copied to clipboard