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)

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

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.

String

The scope of this item, its used to distinguish the different items, especially when Item is used to store custom data.

Int

The start of the range where item takes effect.

Public constructors

<init>

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

<init>

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

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
scope: String The scope of this item, its used to distinguish the different items, especially when Item is used to store custom data.

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.

scope

val scope: String

The scope of this item, its used to distinguish the different items, especially when Item is used to store custom data.

start

val start: Int

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