The second Android 11 Developer Preview is now available, test it out and share your feedback.

Item

data class Item<T>
kotlin.Any
   ↳ androidx.ui.text.AnnotatedString.Item

The information attached on the text such as a SpanStyle.

Summary

Public constructors

<init>(item: T, start: Int, end: Int)

The information attached on the text such as a SpanStyle.

Properties

Int

The end of the range where item takes effect.

T

The object attached to AnnotatedStrings.

Int

The start of the range where item takes effect.

Public constructors

<init>

Item(
    item: T,
    start: Int,
    end: Int)

The information attached on the text such as a SpanStyle.

Parameters
item: T The object attached to AnnotatedStrings.
start: Int The start of the range where item takes effect. It's inclusive
end: Int The end of the range where item takes effect. It's exclusive

Properties

end

val end: Int

The end of the range where item takes effect. It's exclusive

item

val item: T

The object attached to AnnotatedStrings.

start

val start: Int

The start of the range where item takes effect. It's inclusive