AnnotatedString.Range


The information attached on the text such as a SpanStyle.

Summary

Public constructors

<T : Any?> Range(item: T, start: Int, end: Int)
Cmn
<T : Any?> Range(item: T, start: Int, end: Int, tag: String)
Cmn

Public properties

Int

The end of the range where item takes effect.

Cmn
T

The object attached to AnnotatedStrings.

Cmn
Int

The start of the range where item takes effect.

Cmn
String

The tag used to distinguish the different ranges.

Cmn

Public constructors

Range

<T : Any?> Range(item: T, start: Int, end: Int)

Range

<T : Any?> Range(item: T, start: Int, end: Int, tag: String)
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

tag: String

The tag used to distinguish the different ranges. It is useful to store custom data. And Ranges with same tag can be queried with functions such as getStringAnnotations.

Public properties

end

val endInt

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

item

val item: T

The object attached to AnnotatedStrings.

start

val startInt

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

tag

val tagString

The tag used to distinguish the different ranges. It is useful to store custom data. And Ranges with same tag can be queried with functions such as getStringAnnotations.