Compose UI Text API Reference
Installation
implementation("androidx.compose.ui:ui-text:1.9.0-beta02")
Classes
- AndroidFont
- AnnotatedString
- BackspaceCommand
- BaselineShift
- Bullet
- CommitTextCommand
- DeleteAllCommand
- DeleteSurroundingTextCommand
- DeleteSurroundingTextInCodePointsCommand
- DeviceFontFamilyName
- EditProcessor
- EditingBuffer
- EmojiSupportMatch
- ExperimentalTextApi
- FileBasedFontFamily
- FinishComposingTextCommand
- FontFamily
- FontListFontFamily
- FontLoadingStrategy
- FontStyle
- FontSynthesis
- FontWeight
- GenericFontFamily
- Hyphens
- ImeAction
- ImeOptions
- InternalPlatformTextApi
- InternalTextApi
- KeyboardCapitalization
- KeyboardType
- LineBreak
- LineHeightStyle
- LinkAnnotation
- LoadedFontFamily
- Locale
- LocaleList
- MoveCursorCommand
- MultiParagraph
- MultiParagraphIntrinsics
- ParagraphStyle
- PasswordVisualTransformation
- Placeholder
- PlaceholderVerticalAlign
- PlatformImeOptions
- PlatformLocale
- PlatformParagraphStyle
- PlatformSpanStyle
- PlatformTextStyle
- ResolvedTextDirection
- ResourceFont
- SetComposingRegionCommand
- SetComposingTextCommand
- SetSelectionCommand
- SpanStyle
- StringAnnotation
- SystemFontFamily
- TextAlign
- TextDecoration
- TextDirection
- TextFieldValue
- TextGeometricTransform
- TextGranularity
- TextIndent
- TextInputService
- TextInputSession
- TextLayoutInput
- TextLayoutResult
- TextLinkStyles
- TextMeasurer
- TextMotion
- TextOverflow
- TextRange
- TextStyle
- TransformedText
- TtsAnnotation
- UrlAnnotation
- VerbatimTtsAnnotation
Interfaces
- EditCommand
- Font
- InputEventCallback
- LinkInteractionListener
- OffsetMapping
- Paragraph
- ParagraphIntrinsics
- PlatformTextInputService
- TextInclusionStrategy
- Typeface
- VisualTransformation
Functions
- AnnotatedString
- buildAnnotatedString
- capitalize
- coerceIn
- createFontFamilyResolver
- decapitalize
- drawText
- Font
- FontFamily
- fromHtml
- getSelectedText
- getTextAfterSelection
- getTextBeforeSelection
- lerp
- Paragraph
- ParagraphIntrinsics
- resolveAsTypeface
- resolveDefaults
- substring
- TextRange
- toFontFamily
- toLowerCase
- toSpan
- toUpperCase
- Typeface
- withAnnotation
- withLink
- withStyle