Google is committed to advancing racial equity for Black communities. See how.

AnchorInfo

@Immutable data class AnchorInfo
kotlin.Any
   ↳ androidx.compose.ui.selection.Selection.AnchorInfo

Contains information about an anchor (start/end) of selection.

Summary

Public constructors
<init>(direction: ResolvedTextDirection, offset: Int, selectable: Selectable)

Contains information about an anchor (start/end) of selection.

Properties
ResolvedTextDirection

Text direction of the character in selection edge.

Int

Character offset for the selection edge.

Selectable

The Selectable which contains this Selection Anchor.

Public constructors

<init>

AnchorInfo(
    direction: ResolvedTextDirection,
    offset: Int,
    selectable: Selectable)

Contains information about an anchor (start/end) of selection.

Properties

direction

val direction: ResolvedTextDirection

Text direction of the character in selection edge.

offset

val offset: Int

Character offset for the selection edge. This offset is within individual child text composable.

selectable

val selectable: Selectable

The Selectable which contains this Selection Anchor.