Android 12 Developer Preview is here! Try it out, and give us your feedback!

TextIndent

@Immutable class TextIndent
kotlin.Any
   ↳ androidx.compose.ui.text.style.TextIndent

Specify the indentation of a paragraph.

Summary

Public constructors
<init>(firstLine: TextUnit = 0.sp, restLine: TextUnit = 0.sp)

Specify the indentation of a paragraph.

Public methods
TextIndent
copy(firstLine: TextUnit = this.firstLine, restLine: TextUnit = this.restLine)

operator Boolean
equals(other: Any?)

Int

String

Properties
TextUnit

the amount of indentation applied to the first line.

TextUnit

the amount of indentation applied to every line except the first line.

Companion properties
TextIndent

Constant fot no text indent.

Public constructors

<init>

TextIndent(
    firstLine: TextUnit = 0.sp,
    restLine: TextUnit = 0.sp)

Specify the indentation of a paragraph.

Parameters
firstLine: TextUnit = 0.sp the amount of indentation applied to the first line.
restLine: TextUnit = 0.sp the amount of indentation applied to every line except the first line.

Public methods

copy

fun copy(
    firstLine: TextUnit = this.firstLine,
    restLine: TextUnit = this.restLine
): TextIndent

equals

operator fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String

Properties

firstLine

val firstLine: TextUnit

the amount of indentation applied to the first line.

restLine

val restLine: TextUnit

the amount of indentation applied to every line except the first line.

Companion properties

None

@Stable val None: TextIndent

Constant fot no text indent.